Skip to:
Content
Pages
Categories
Search
Top
Bottom

Wrong Member Count


  • IHaveToDoThis
    Participant

    @ihavetodothis

    Hey all,

    The “members” tab on my site-wide activity stream is showing the wrong member count and member are not showing up in the members list. It says 22 on BP, but according to my WP dashboard subscribers list I have 28.

    I had two new registers in the past hour and neither one will show up in the members list on the front end although they do show up in the backend. The activity stream does show they registered as a member as well. I just did a major design change but I’ve been creating fake accounts and they showed up the member list although I didn’t notice the number glitch until today.

    What could be going on that new registers would populate under members two days ago with no changes but not today? I did remove my caching plugin (W3) because it was glitching the HTML on my registration page. But I’m not sure how not having a caching plugin would interfere with how BP runs.

    I’ve been digging around the members-functions file but I honestly don’t know where to start. Any pointers. I want to get this fixed asap, as you can imagine.

Viewing 9 replies - 1 through 9 (of 9 total)

  • danbp
    Participant

    @danbp

    This phenomenom is normal.

    Once a user has registered, he is considered as pending untill he connect and login to the site.

    Many user register, receive an activation key and come back a few hours or day later to connect for the first time as site mebers.

    That’s why you have 28 entries in the table and 22 on members directory. 6 entries have never connected.

    You can follow such members via members admin, under pending list.

    Similar topic


    IHaveToDoThis
    Participant

    @ihavetodothis

    Hey,

    Thanks a lot for the info, but the members aren’t under pending. They actually are under subscribers in the back end dashboard, they just don’t show up in the BP members directory. I did find a similar topic here but the plugin that fixed their problem doesn’t exist anymore.

    Is deleting the users and re-creating them the only way to fix this? Or do you think once the users log on and do something they will populate in the members directory?

    Thanks again Dan!


    newdermeo
    Participant

    @newdermeo

    URGENT PROBLEM!

    I am having the same problem. I just logged on as the administrator to delete a user and the only user that showed up on the list was myself. The wierd thing is that when you look at the user count for all users, all users are there, however, clicking on that link still only brings up my user. I deactivated all of my plugins and one by one began activating them again. I got to the BuddyPress Version 2.2.3.1 and activated it and that is when I could duplicate the problem. This is only recent and I am sure that I did an upgrade recently. Sunday was the last time I logged in and there were no problems at the time. For the time being I have left the rest of my plugins deactivated and I would be happy to give you access if you need a password or username to get in. My site is http://www.putznutzcabinfever.com. For the time being, and for security purposes I will be reactivating a spam plugin and one that limits the menu. These are STOP SPAM and ULTIMATE USER. So, you can go back to deactivating all plugins when you look into it. I just don’t want to allow signups or public access to some of the pages.

    If I can help in any way, I will be happy to.


    mrjarbenne
    Participant

    @mrjarbenne

    If you go into Tools/BuddyPress there is a function called Data to Repair: Count Total Members which might help. Otherwise I have noticed that occasionally user count is updated when the user actually starts participating on the site, not immediately after they register. I can’t test this, but I feel like I noticed something similar previously, and it sorted itself out.


    RemonaStormborn
    Participant

    @remonastormborn

    I’m having sync problems too.
    BP members: 146
    WP members: 370

    Some are only in the BP list and not the WP list so I can’t edit their roles or pretty much anything. WordPress 4.2.2, BuddyPress 2.3.2.1, housestormborn.com


    newdermeo
    Participant

    @newdermeo

    What RemonStormborn is having a problem with is exactly what is happening for me. This changed after one update. Which one, I do not know. I have waited several months to reinstall Buddypress hoping things would be different but it is not.


    Hammy Havoc
    Participant

    @hammyhavoc

    Having this issue too; had 20,000+ spam users, deleted them, still says I’ve got over 20,000 users when in actuality I only have a few dozen.


    Mohamed Elamine
    Participant

    @mewebpro

    We have same problem, bp_members_pagination_count() not exclude spam users, I created this code to fix (should add it to bp-custom.php) :

    function exclude_spam_users( $retval ) {
    	global $wpdb;
    	$sql = "SELECT ID FROM {$wpdb->users} WHERE user_status != 0";
    	$exclude_spam_users = $wpdb->get_col( $sql );
    	if (!empty( $exclude_spam_users )) {
              $retval['exclude'] = implode( ',', wp_parse_id_list( $exclude_spam_users ) );		
    	}
    	return $retval;
    }
    add_filter( 'bp_before_has_members_parse_args', 'exclude_spam_users' );

    gaysurfers
    Participant

    @gaysurfers

    Thanks Mohamed but your function removes the exclusion of spam users.
    I have 6822 users in my db – none of them are spammers (user_status != 0)
    The MEMBERS tab still shows only 5724 members.
    Does it mean that 1118 members have NOT yet connected and logged-in to the site ? (they are not in pending list in ADMIN)
    Is there a way to get the MEMBERS tab to count the same number of members as the ACTIVITY page ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar