You do not have sufficient permissions to access this page

You Do Not Have Sufficient Permissions, FixMyWP guide header image

WordPress warning after an upgrade

If you have changed your WordPress database table prefix (usually when moving your site to another URL or directory), or your latest WordPress upgrade didn’t complete as it should, you may run into the following dead-end error:

You do not have sufficient permissions to access this page

The fix depends on the cause, but the first step to repair permissions in WordPress is the same.

  1. Take a backup of your database, then visit https://yoursite.com/wp-admin/upgrade.php. If the database upgrade did not finish, WordPress will ask you to run it again. On older installs you can instead download the Force Upgrade for WordPress script, save it as force-upgrade.php, upload it to the root of your site, run it and delete it when done. This script was written for WordPress versions from 2013, so try the built-in upgrade page first.
  2. If the warning persists, you need to dig deeper and open your WordPress database in phpMyAdmin. Browse the options table and look for the option_name “wp_user_roles” and change it to your new prefix, for example “pre_user_roles”. Then open the usermeta table and rename the meta_key values “wp_capabilities” and “wp_user_level” the same way (for example “pre_capabilities” and “pre_user_level”). Save the changes and try to access your Dashboard once more.
★★★★★
We had a new client who couldn’t access their WordPress dashboard and all of their blog posts were missing. … FixMyWP quickly solved the login issue and repaired the WordPress database. The site was up and running again, preventing further problems for us and for the client.
Barbara Day
daysworkdesign.com

If you are still locked out after these steps, post a comment below, or let us fix it for you.

Site down or showing an error?

White screen, “There has been a critical error on this website”, a database connection error or a site that won’t load. We find the cause and get it back up. Flat rate of $199.

See site down fixesNot sure? Answer 4 quick questions

In this article

Need a hand with your site?

Answer four quick questions and see your flat price before you pay. Most fixes are done the same day or within 24 business hours.

Related articles