“You do not have sufficient permissions to access this page.” on plugin admin page after update to WordPress 3.0

Well, if you are having problem with your WordPress plugins after an upgrade to WordPress 3.0, this article might just help you. The error you will being seeing on your WordPress plugins will most likely be located on the admin side of WordPress. You will most likely see the message "You do not have sufficient permissions to access this page." and starts debugging and looking for clues on what is happened suddenly with the new upgrade of WordPress 3.0. (that what happens to me) You will most likely find yourself looking at the function user_can_access_admin_page() which return false and cause you debugging all these in the first place. Then, you will find yourself stuck at line 1407 of wp-admin/includes/plugins.php with the following code.

7 thoughts on ““You do not have sufficient permissions to access this page.” on plugin admin page after update to WordPress 3.0

  1. Worked like a charm! thanks for this article - I spent an hour chasing my tail before finding this. There seem to be several issues that will cause the "permissions" error message which makes diagnosing these problems a lot more difficult.

  2. Great. But where should I put your code? In functions.php or plugins.php?

  3. @Fabio: this code shouldn't be placed anywhere. You should try to find add_options_page and ensure that the slug parameter does not have spaces for its name. 🙂

  4. You hack code where would I put that in the plugins.php. I want to bypass this as the slug I just can't find for a couple of my plugins that don't allow me access?

    I just want to know where to put the hack now.

  5. I am absolutely dying here. I've been locked out of my own blog for weeks. I'm trying to try this fix (the 20th thing I've tried)...but wp-admin/includes/plugins.php only has 787 lines...and a grep for "_wp_submenu_nopriv" comes back with "not found". SOMETHING is screwy here (WP 3.0)

Comments are closed.