In WP-Members 2.6, some changes were made to the way that the plugin references itself for the WP admin menu structure. There were two small places that a necessary change was omitted.
If you click on “Settings” on the plugin admin page, you will receive a message “You do not have sufficient permissions to access this page.” You can still access the settings for the plugin from the WP admin menu. On the left sidebar menu in the WP admin, click on Settings > WP-Members to get to the settings.
Similarly, in the Users > WP-Members menu, the top menu that allows you to change the list from all users, users not exported, users not activated, etc, will give you the same “You do not have sufficient permissions to access this page” message. This does not eliminate your ability to access the functions such as activating users. Users can still be activated an exported; it simply doesn’t allow you to change the list of users displayed based on certain criteria.
A fix for this will be included in what will become WP-Members 2.6.1 which will be primarily a bug fix release. At this time, I am not rushing this bug fix release out the door because this particular bug is simply an annoyance, rather than something that shuts down the plugin.
In the meantime, if you would like to apply the fix for these bugs, both of them are simple changes to wp-members-admin.php.
The first change for the settings link is found at line 28. The page parameter of wp-members.php needs to be changed to wpmem-settings.
Change the line from this:
$settings_link = '<a href="options-general.php?page=wp-members.php">' . __('Settings') . '</a>';
To this:
$settings_link = '<a href="options-general.php?page=wpmem-settings">' . __('Settings') . '</a>';
For the bulk user management screen, the change is in the same wp-members-admin.php file at line 837 (that’s a long way down there, so if you don’t have an editing tool that gives line numbers, just do a search for code as shown below)
Similar to the first change, we are changing the page parameter from wp-members-admin.php, to wpmem-users.
Change the line from this:
$link = "users.php?page=wp-members.php";
To this:
$link = "users.php?page=wpmem-users";
As I mentioned, these fixes will be included in the bug fix release.
Enjoyed this article?
Don't miss a single post. Subscribe to our RSS feed!