WordPress Plugins Disappearing Dashboard: 7 Quick Fixes That Actually Work
You log into your WordPress dashboard to make a quick update, and suddenly notice…
WordPress Sorry You Are Not Allowed to Access This Page
The “Sorry, you are not allowed to access this page” message is WordPress telling you that the currently logged-in user account doesn’t have the permission level needed to view or use a specific area of the dashboard. It’s not a glitch — it’s WordPress enforcing its built-in access control system.
You’ll most often see it when trying to open wp-admin, edit a post, install a plugin, or change site settings. The frustrating part is that it can appear even on an account you’re certain should have full administrator access.
The good news is this is almost always fixable without reinstalling WordPress. The root cause is typically a misconfigured user role, a corrupted capability entry in the database, or a plugin that’s silently stripping permissions away.
If you have another admin account, log in with it. Go to Users → All Users, find the affected account, and check its Role column. If it shows anything other than “Administrator,” click Edit, change the role to Administrator, and save.
You should see: The role updated to “Administrator” and a green success notice at the top of the Users screen.
Go to Plugins → Installed Plugins, select all plugins, and use the Bulk Actions dropdown to deactivate them all. Try accessing the restricted page again. If it loads, reactivate plugins one by one until the error comes back — that plugin is your culprit.
You should see: The previously blocked page now loads correctly once all plugins are off.
Log into your hosting control panel and open phpMyAdmin. Select your WordPress database, then browse the wp_usermeta table. Find the row for your user ID where meta_key equals wp_capabilities. The meta_value field should contain exactly this:
a:1:{s:13:"administrator";b:1;}
If it’s empty, missing, or shows a different role, click Edit, paste in the correct value above, and save.
You should see: A success message in phpMyAdmin. Reloading wp-admin should now grant you full access.
If you have SSH access to your server, run this command — replacing username with the actual WordPress login name:
wp user set-role username administrator
You should see: Output that reads “Success: Added role.” The user now has full admin access immediately.
As a last resort, open phpMyAdmin and insert a new row into wp_users with a username, email, and MD5-hashed password. Then in wp_usermeta, add a row setting wp_capabilities to a:1:{s:13:"administrator";b:1;} and another row setting wp_user_level to 10 for that new user ID. Log in with the new account.
You should see: A fully working admin dashboard. You can then repair or delete the broken account from inside WordPress.
Get free WordPress & AI tips
Join 500+ readers. No spam, unsubscribe anytime.
Yes. Even the very first account created during WordPress installation can lose its capabilities if the database gets corrupted, a plugin overwrites the meta value, or someone manually edits wp_usermeta incorrectly. The fix is identical — restore the correct capabilities value directly in the database.
Absolutely. Use phpMyAdmin through your hosting control panel (cPanel, Plesk, etc.) to directly edit the wp_usermeta table and restore the correct capabilities value. WP-CLI over SSH is another solid option. Neither method requires being logged into WordPress at all.
No. A core update won’t repair corrupted database entries or undo a plugin conflict. You need to address the root cause directly. If a specific plugin update triggered the problem, updating or rolling back that plugin might resolve it.
On multisite, roles are managed per sub-site rather than globally. A super admin has network-wide access, but a regular administrator only controls the sites they’re explicitly added to. If a user tries to access a site they’re not assigned to, this error appears. Fix it by going to Network Admin → Sites, selecting the relevant site, and adding the user under its Users tab with the Administrator role.