A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
sfmembers missing names
Aug 12, 2010
3:31 pm
Daniel
Guest

Hello,

I've had this problem since v. 4.2, just upgraded to 4.3.2 -

 

The sfmembers table in my DB is missing about half the display_names, they're just blank, with the rest of the information being ok.

 

Is there something I can do to fix this? I'm a decent PHP developer so I should be able to make a query for it, but I'd rather treat the cause and not the symptom. Any ideas why this happened?

 

Thanks alot!

Aug 12, 2010
6:43 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

so this is standard wp (ie not multisite)?

check your users table and see if the users really have a display name set for them…  also visit forum – users – member information and see if the users without display names have ever visited the forum

Aug 31, 2010
1:26 am
Daniel
Guest

Extremely late reply… Sorry about that.

 

This is a standard WP site, and the users have a display name in the wp_users table.

You might be right in that they never have visited the forum. The missing users dont show up under forum -> users -> member information at least.

 

Is this correct behaviour? It's annoying that you can't add a user to a usergroup just because that user has never visited the forum. I also find it odd that it results in a sfmembers row without the display_name

 

Thank you for your help and the great plugin

 

Oh and I (temporarily) fixed my issue with this query:

 

UPDATE `wp_sfmembers` SET `wp_sfmembers`.`display_name` = (SELECT
`user_login` FROM `wp_users` WHERE `wp_users`.`ID` = `wp_sfmembers`.`user_id`)
WHERE `wp_sfmembers`.`display_name` = ""
Aug 31, 2010
3:59 am

SP Master
Forum Posts: 22214
Member Since:
Nov 9, 2008
Offline

Something got missed clearly as the current user base should have a complete record created in sfmembers. To do this we look for a users 'capabilities' entry in the usermeta table. If that is not there then the user does get added to sfmembers but would get added later when a first forum visit was made. Could it be that some or all of the users in question did not have a capabilities record for any reason? Odd but it has been known before.

Your query there clearly corrects the problem which is good. Maybe we will never know the cause Confused

Yellow Swordfish
Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: woody, steve.engelking, prasanna
72 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2625

Members: 7361

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10890

Posts: 79531

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22211), Mr Papa (23688)