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.

  • 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.

Get More Content Like This

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

Recent Posts:

  • How I Saved Thousands Per
    Year on MailChimp Email Marketing
  • 5 Common Issues with WordPress Security & How to Fix Them
  • 5 Things You Need To
    Know About Cybercrime For 2018
  • 9 Landing Page Goofs That
    Make You Lose Business [Infographic]
  • 5 reasons I use WP-Members for building membership sites
  • The Risk of Relying on Free Plugins
  • Creativity Extortion Part 2 – Turning
    Negative into Positive as a Freelancer
  • Creativity Extortion Working as a
    Freelance Designer, Developer, or Writer
  • The Premium Support Business Model
  • Word-based Passwords Plugin for WordPress

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-2019 ButlerBlog and may not be reproduced without express written permission from the author.

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