We create beautiful & user-friendly websites and provide quality web development services worldwide.
Contact us to get started on your project.


How to Solve “You do not have sufficient permissions to access this page” WordPress Error Message

Published by Veron Ang | 10

How to Resolve 'You do not have sufficient permissions to access this page' WordPress Error Message

Last night, I updated a client’s site from WordPress 2.8 to the current WordPress 3.1.1. The 2.x to 3.x update is a major one and I was expecting to hit some stumbling blocks, especially with the custom plugins written by their previous developer.

As expected, the custom plugins’ settings pages yielded the dreaded blank screen with the “You do not have sufficient permissions to access this page” error message. The error occurs because it is looking for a page that doesn’t actually exist.

…/wp-admin/options-general.php?page=reallycoolplugin instead of
…/wp-admin/options-general.php?page=really cool plugin.

WordPress 3 strips out the spaces in the plugin slug name, hence resulting in the broken URL.

Thankfully, solving it is easy enough. If you encounter the same issue, this may fix it.

  1. Edit the problematic plugin file on a text editor. Look for the add_options_page function. It would look something like this:
    add_options_page('My Plugin Options', 'My Plugin', 'manage_options', 'my unique identifier', 'my_plugin_options');
  2. Rename the menu slug, “my unique identifier” in this case, so that it does not have spaces in it. For example:
    add_options_page('My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options');

There are many possible causes for the “You do not have sufficient permissions to access this page” error message and this is just one example. If you have encountered the same error and managed to solve it in a different way, leave a comment here to share with us.

About the Author

Veron Ang is a , developer and WordPress expert at Sparklette Studio. She has been building websites for as long as she can remember, and graduated with a bachelor's degree in computer science from the National University of Singapore.


  • Thanks. It solved my problem. After lots of searching I found your solution.


  • Thanks alot! It solved my problem. :)

  • Thanks dude. you solve my problem

  • […] WP 3.0 and later will automatically remove spaces from menu slugs, resulting in a broken menu link. See this post for more details and a […]

  • I have been having this problem here and there on specific plugin options pages. I tried your solution, simply adding a dash to replace the space in the plugin code where you indicated. Unfortunately, it doesn’t work for me. It returns this error:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘wp_lightbox_plugin options’ was given in /home/myserver/public_html/mysite.com/wp-includes/plugin.php on line 403

    Strangely, reverting to a space in the code doesn’t bring me back to options page as before. I still get the above error.

    Any thoughts?

  • Save my day, thanks a lot.

  • THANKS! After a lot of searching around. It works.

  • Very good article. Thanks and keep posting.

  • Thanks for the post for posting

  • Thanks for your answer.its working good

Leave a comment