• Resolved bensinjin

    (@bensinjin)


    I’m using php 5.6.30 and wp-members 3.1.9 and get “PHP Fatal error: Class ‘WP_Members_Admin_User_Search’ not found in class-wp-members-admin-api.php on line 67” when a user with the edit_users role attempts to log in. It looks to me it’s not properly loading the file that contains the WP_Members_Admin_User_Search class when attempting: $this->user_search = new WP_Members_Admin_User_Search(); in the constructor.

    Has anyone else ran into this? I’m stuck unable to upgrade .. I was thinking it may be a php version issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    If it’s version 3.1.9 (not 3.1.9.1), then there are some files missing. There were about 150 downloads out the door before I was able to determine that the additional files were not added in the SVN repo. Take a look at the filesystem. If there is no file wp-members/admin/includes/class-wp-members-user-search.php then you’ll need to delete and reinstall 3.1.9.1 via FTP.

    If you have 3.1.9.1 and the class-wp-members-user-search.php exists, then I’d take a look at the permissions for the user this is happening to. The file loads with a group of files that exist if the user has ‘list_users’ capability, but the class is loaded if the user has ‘edit_users’ capability (this is going to change in 3.2, BTW). It would be very odd to have edit_users caps without ‘list_users’ but it could be possible if a custom role was created and list_users was not included. If this is the case, is it a custom role? If so, look into why it has edit_users but not list_users caps.

    Thread Starter bensinjin

    (@bensinjin)

    Thanks for the response (also I am using 3.1.9.1 my mistake!) – you were right, this particular user didn’t have the “list_users” permission but did have the “edit_users” permission (a bit odd probably but I don’t exactly maintain this site so I’m not sure why this is the case). After giving her the list_users permission I was able to log in, cheers!

    Plugin Author Chad Butler

    (@cbutlerjr)

    Glad that worked out.

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

The topic ‘Fatal error: Class ‘WP_Members_Admin_User_Search’ not found’ is closed to new replies.