Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Custom Profile Fields issue again
Avatar
Ruben Kalitzki
Member
Free Members
sp_UserOfflineSmall Offline
May 6, 2015 - 11:08 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 6, 2015 - 3:06 pm

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ruben Kalitzki
Member
Free Members
sp_UserOfflineSmall Offline
May 6, 2015 - 10:17 pm

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 7, 2015 - 1:43 am

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ruben Kalitzki
Member
Free Members
sp_UserOfflineSmall Offline
May 7, 2015 - 5:54 am

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...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 7, 2015 - 6:01 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ruben Kalitzki
Member
Free Members
sp_UserOfflineSmall Offline
May 7, 2015 - 10:14 am

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.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
May 7, 2015 - 12:33 pm

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 7, 2015 - 12:48 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ruben Kalitzki
Member
Free Members
sp_UserOfflineSmall Offline
May 7, 2015 - 1:07 pm

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).

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625