ButlerBlog

chad butler's weblog

  • About
  • Blog
  • WordPress Plugins
  • Contact
Home / Web / WordPress / WP-Members / WP-Members 2.6 bug fix – You do not have sufficient permissions to access this page

WP-Members 2.6 bug fix – You do not have sufficient permissions to access this page

By Chad Butler 6 Comments

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!

  • Facebook
  • Twitter
  • Email
  • Print
  • More
  • LinkedIn
  • Reddit
  • Tumblr
  • Pocket
  • Pinterest

Filed Under: WP-Members Tagged With: plugins, WP-Members

About Chad Butler

Chad Butler is a freelance writer and web developer. He has developed several popular WordPress plugins and has written for forbes.com, sfomag.com, and investopedia.com. He also runs a small organic farm in east Georgia.

Join Us!

I will never share your information. No spam. No junk. No kidding. Unsubscribe anytime.


Recent Posts:

  • The Right Product at the Right Time
  • Top 3 Time Wasters
    Keeping You From Success
  • Top 8 Tips to Create Your Own Website Easily With WordPress
  • How to Fix wp_mail
    Settings for WordPress Email
  • 7 Reasons Why Social Networking Can Help Your Business
  • Understanding WordPress wp_mail and
    how to fix it
  • Prevent WordPress email sent
    to spam with this
  • Easy wp mail SMTP settings for WordPress
  • The Importance of Supporting Developers
    of Free Open Source Software
  • How to Run an Effective Meeting





Archives

  • About
  • Blog
  • Archive
  • Contact

Site powered by WordPress, running on the Genesis Framework from StudioPress.

Unless otherwise noted, content on this site is © 2006-2021 ButlerBlog and may not be reproduced without express written permission from the author.

Some content may include affiliate links for which this site receives a small commission.

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.