Support Forum

Custom Profile Fields issue again

RK Ruben Kalitzki
Ruben Kalitzki
Member

I’m still confused with the new issue on my Custom Profile Fields. I don’t know its bugged or I’m missing something in my child theme. I’m really need your help.

This is my simple code at spProfileShow.php

                # show profile info
                sp_ColumnStart('tagClass=spProfileShowInfoSection spRight&width=65%', 'profileInfo');
                    sp_ProfileShowDisplayName('', __sp('Username'));
                    sp_ProfileShowFirstName('', __sp('First Name'));
                    sp_ProfileShowLastName('', __sp('Last Name'));
                    sp_ProfileShowLocation('', __sp('Location'));
                    sp_ProfileShowWebsite('', __sp('Website'));
                    sp_ProfileShowBio('', __sp('Bio'));
sp_CustomProfileFieldsProfileDisplay('Birthday', $spProfileUser–>ID, 'Birthday');
sp_CustomProfileFieldsProfileDisplay('Gender', $spProfileUser–>ID, 'Gender');
sp_CustomProfileFieldsProfileDisplay('City', $spProfileUser–>ID, 'City');
sp_CustomProfileFieldsProfileDisplay('steam', $spProfileUser–>ID, 'Steam');

                sp_ColumnEnd('', 'profileInfo');
            sp_SectionEnd('tagClass=spClear', 'profileBasic');

###START
sp_SectionStart('tagClass=spProfileShowDetailsSection', 'profileDetails');
                # show user identities
                sp_ColumnStart('tagClass=spProfileShowIdentitiesSection spLeft&width=45%', 'profileIdentities');
                    echo '<p>'.__sp('Favorites').'<br /><hr>';
sp_CustomProfileFieldsProfileDisplay('Hobby', $spProfileUser–>ID, 'Hobby');
sp_CustomProfileFieldsProfileDisplay('Music', $spProfileUser–>ID, 'Music');
sp_CustomProfileFieldsProfileDisplay('Food', $spProfileUser–>ID, 'Food');
sp_CustomProfileFieldsProfileDisplay('Drink', $spProfileUser–>ID, 'Drink');
sp_CustomProfileFieldsProfileDisplay('Movie', $spProfileUser–>ID, 'Movie');
sp_CustomProfileFieldsProfileDisplay('Game', $spProfileUser–>ID, 'Game');
                sp_ColumnEnd('', 'profileIdentities');
                # show user stats
                sp_ColumnStart('tagClass=spProfileShowStatsSection spRight&width=45%', 'profileStats');
                    echo '<p>'.__sp('Hardware').'<br /><hr>';
sp_CustomProfileFieldsProfileDisplay('Operating System', $spProfileUser–>ID, 'Operating System');
sp_CustomProfileFieldsProfileDisplay('Monitor', $spProfileUser–>ID, 'Monitor');
sp_CustomProfileFieldsProfileDisplay('Mouse', $spProfileUser–>ID, 'Mouse');
sp_CustomProfileFieldsProfileDisplay('Mousepad', $spProfileUser–>ID, 'Mousepad');
sp_CustomProfileFieldsProfileDisplay('Keyboard', $spProfileUser–>ID, 'Keyboard');
sp_CustomProfileFieldsProfileDisplay('Headset', $spProfileUser–>ID, 'Headset');
sp_CustomProfileFieldsProfileDisplay('Mainboard', $spProfileUser–>ID, 'Mainboard');
sp_CustomProfileFieldsProfileDisplay('CPU', $spProfileUser–>ID, 'CPU');
sp_CustomProfileFieldsProfileDisplay('Graphics Card', $spProfileUser–>ID, 'Graphics Card');
sp_CustomProfileFieldsProfileDisplay('Cooling System', $spProfileUser–>ID, 'Cooling System');
                sp_ColumnEnd('', 'profileStats');
            sp_SectionEnd('tagClass=spClear', 'profileDetails');
###END

The issue is…

  1. It has same value between some user profile
  2. We can’t see the other admin profiles although we login with admin user on the forum.

Many thanks for your respond.

14 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Are you suggesting in (1) that you see another persons data when looking at a users profile? And (2) that you can’t open an admins profile? If so what DO you see? What is the chain of events?

RK Ruben Kalitzki
Ruben Kalitzki
Member

Sorry before if my English isn’t good.

Yellow Swordfish said
(1) that you see another persons data when looking at a users profile?

I only see the default profile of another persons but not for Custom-Profile.

(2) that you can’t open an admins profile? If so what DO you see? What is the chain of events?

I only can see the default profile of another admins profile but not for Custom-Profile because its same like me.

YS Yellow Swordfish
Yellow Swordfish
Member

When did this start happening?
Did anything change that might have had an effect?
Can we assume that all of these custom fields DO exist and are filled in my users on their profile form?

And- are there any SQL/Database errors in the log?

RK Ruben Kalitzki
Ruben Kalitzki
Member

Yellow Swordfish said
When did this start happening?

Its look like we already got the issue but maybe we don’t check it because we still use simple-press 5.5.5 and already update the Custom-Profile to the newest version and the Default theme too.

Did anything change that might have had an effect?

As additional, we already update our WordPress to the newest version, its 4.2.1

Can we assume that all of these custom fields DO exist and are filled in my users on their profile form?

Not all the Custom-Profile will be filled but when we login from the first admin that have filled the Custom-Profile and open the other user profile, we will see our Custom-Profile in the user although the user didn’t fill it.

And- are there any SQL/Database errors in the log?

I will let other admin know to check the log file if they have it because we only use shared hosting.

If you don’t mind, how about if I give you access to our site to check the issue?

 

Many thanks for your respond…

YS Yellow Swordfish
Yellow Swordfish
Member

The error log I was meaning is in the forum admin > toolbox > error log. Take a look at it to see if there are any database errors. It WILL say they are database errors and errors have a background of pink. Please don’t just paste everything in reply!

Yes – we would be willing to take a look. If you want to sign us up fort membership … Please PM credentials to both myself, to ‘Mr Papa’ and to ‘Ike’. Please include in the PM a link to your site, a link to this thread and brief reminder of the problem. And one of us will take a look for you.

RK Ruben Kalitzki
Ruben Kalitzki
Member

Yellow Swordfish said
The error log I was meaning is in the forum admin > toolbox > error log. Take a look at it to see if there are any database errors. It WILL say they are database errors and errors have a background of pink. Please don’t just paste everything in reply!

I already check it, its look have 1 error and 6 warnings.

The error is
function: sp_add_cache
error: Duplicate entry ‘0*group’ for key ‘PRIMARY’

Yes – we would be willing to take a look. If you want to sign us up fort membership … Please PM credentials to both myself, to ‘Mr Papa’ and to ‘Ike’. Please include in the PM a link to your site, a link to this thread and brief reminder of the problem. And one of us will take a look for you.

Yes, I’m still have membership until 6th June and please check your inbox, I already sent PM to you.

Many thanks for your help.

IK Ike
Ike
Member

Just using the first admin account you sent via PM, I can see that you have SP core, plugin and theme updates to do. I would recommend updating everything.

Also, when looking at themes it says there is a problem with the current theme (Either the theme CSS file or overlay file is missing). It looks to me like everything is being loaded OK, but it would be good to get that fixed too.

And lastly, I can see in the browser console there is a jquery conflict of some type that should be resolved.

I’m not saying that any or all of these issues are responsible, but it’s definitely worth fixing them up before looking further just to rule them out.

YS Yellow Swordfish
Yellow Swordfish
Member

I agree with Ike’s comments above but would also like you to try something for me…

Go to the forum admin > Toolbox > Housekeeping and run the task to ‘Reset Users Plugin Data’ and tell me if that changes anything on the profile issue.

RK Ruben Kalitzki
Ruben Kalitzki
Member

Hello guys,

so I reset the useres plugin data and updated the forum its still the same.

When logged in as “Skipy” (the account with all the custom fields filled) the other profiles adapt the custom fields.

When logged in as “theadmin” (no custom fields filled) and check for “Skipy”-Profile the fields are empty (because empty fields also get adapted and overwrite the fields from the other profiles).

IK Ike
Ike
Member

Have you made any progress with the theme problem, the required updating and jquery conflict?

RK Ruben Kalitzki
Ruben Kalitzki
Member

Ike said

Have you made any progress with the theme problem, the required updating and jquery conflict?

Where exactly can you see a theme problem and the jquere conflict?

btw the super long “file: /mnt/webq/d0/16/54301416/problem-with-post-edit-buttontdocs/wp-content/plugins/simple-press/forum/content/classes/sp-group-view-class.php

line: 248

function: sp_add_cache

error: Duplicate entry ‘0*group’ for key ‘PRIMARY'” Error is still there

 

Thanks for a reply

IK Ike
Ike
Member

When I checked in the admin panel under Forum > Themes, it displayed an error with the current theme at the top of the list, It was a warning stating that the overlay or stylesheet was missing.

The jquery conflict was spotted through the browser inspector / console.

Like I said, it’s really a good idea to get everything working as it should before diagnosing a problem, as often (but of course not always) the problem is resolved as a result – especially odd unexplainable issues like this one!

RK Ruben Kalitzki
Ruben Kalitzki
Member

So the jquery thing is some kind of conflict of my avada theme, but I can’t update it because it would totally blow my current css work and complete layout (because they changed the default layout completely).

I tried to activate some other themes on SP but the error is still there:

http://i.imgur.com/xCg7XUQ.jpg

 

Also tried with Caching Plugin (WP Rocket) deactivated, the custom profile fields are acting the same.

IK Ike
Ike
Member

Without eliminating the jquery error and the theme problem I wouldn’t really want or know how to make further suggestions..

Is there any way you can create a child of your WP theme? That should allow you to update.

Are the theme files that are missing (according to the error) actually missing? Or are they there?