WordPress Admin – Sorry, you are not allowed to access this page

Last Updated On March 29, 2018
You are here:
< Back

The issue was caused by modified table prefixes on WordPress MySQL database. Even though the correct prefix was entered in wp-config.php file, there were some leftover references to the old prefix in some MySQL tables. Specifically:

_usermeta table had bunch of references to the old prefix in meta_key column
_options table had one reference in option_name column (_user_roles)
Replacing old prefixes with the correct ones resolved the issue.

Leave a Reply