There was a problem loading the comments.

How to Fix 'Sorry, You Are Not Allowed to Access This Page'

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Quick answer: This error means WordPress thinks your account lacks permission for the admin area. Common causes are a user-role or capabilities problem in the database, a mismatched table prefix, a PHP version change after a migration, or a plugin conflict. It often appears right after a migration or update.

1. Rule out a plugin or theme

Deactivate plugins by renaming the wp-content/plugins folder via FTP, and switch to a default theme. If access returns, reactivate items one at a time to find the cause.

2. Check the database table prefix

After a migration, the prefix in wp-config.php ($table_prefix) must match the actual database tables. A mismatch strips your capabilities. Confirm they agree - for example both wp_.

3. Restore your user role

If your account lost its administrator role, use phpMyAdmin to check the wp_usermeta table for your user's wp_capabilities and wp_user_level entries, ensuring the prefix and administrator role are correct.

4. Confirm the PHP version

A big jump in PHP version during a move can break an outdated plugin and trigger this. Match a supported PHP version and update plugins.

Frequently asked questions

It started right after moving hosts - why?
Migrations commonly change the table prefix or PHP version, both of which cause this exact error.

Can I create a new admin user to regain access?
Yes - adding an administrator via the database or a temporary snippet restores access while you fix the root cause.

On SoftSys managed WordPress hosting our team resolves post-migration permission issues for you, since we handle the migration end to end.


Share via
Did you find this article useful?  

Related Articles

Tags

© Softsys Hosting