Support » Plugin: New User Approve » User count stuck

  • Hi there,

    The user counter on the left hand menu in the admin dashboard appears to be stuck with this plugin in my install. So on the wordpress admin menu I see the Users menu item with a number 5 in the white circle next to it. That number used to be the number of subscribers who needed approving, but now it is a constant 5.

    If I deactivate the plug in then the number goes away (as you would expect) and if I reactivate it then it returns with the number 5. I have even tried deleting the plugin and reinstalling, but it still comes back up with the number 5. Clearing cache in the browser doesn’t help either.

    Is something caching? Is there a way to flush this plugin to get it to recognise that I don’t have 5 users waiting for approval? (it remains on 5 regardless of the actual number waiting)

    Many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • JueSena

    (@juesena)

    Yes, I have the same problem with my sites – could you please solve this issue?

    mansoorf

    (@mansoorf)

    Hi Guys
    Yeah I have this problem too after upgrading to new upgrade.
    bug report please.

    Hi Guys,
    having the same Problem.

    First sorry for my bad english. I try to express myself understandably.

    Because of the many errors that are reported, I am not sure wether the plugin is maintained at the moment.
    Nevertheless, it has some advantages compared to more recent plugins like “wp-approve-user”.
    Therefore, here is a temporary solution to this error:

    The problem is that the variable being queried in the function “public function pending_users_bubble” (user-list.php line 418) is not updated.
    In order to achieve this, I have inserted a few lines in the “new-user-approve.php”.

    1. After the function “public function delete_new_user_approve_transient ()” in line 393 a comparable function for the corresponding transient variable:

    public function delete_new_user_approve_count_transient() 
    {
    delete_transient( 'new_user_approve_user_statuses_count' );
    }

    2. The appropriate actions after line 49: “add_action (‘deleted_user’, array ($ this, ‘delete_new_user_approve_transient’));”:

    add_action( 'user_register', array( $this, 'delete_new_user_approve_count_transient' ), 11 );
    add_action( 'new_user_approve_approve_user', array( $this, 'delete_new_user_approve_count_transient' ), 11 );
    add_action( 'new_user_approve_deny_user', array( $this, 'delete_new_user_approve_count_transient' ), 11 );
    add_action( 'deleted_user', array( $this, 'delete_new_user_approve_count_transient' ) );

    This should work from the next registration or the next editing of a new user.

    Remember: It is just a workaround to fix the error. Has worked for me, but of course I take no guarantee. Besides, I do not want to get in the way of the developer of the plugin either.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘User count stuck’ is closed to new replies.