Sorry, you are not allowed to access this page.

When you change WordPress database table prefix then you may end up getting this error for /wp-admin pages. You can login but you may not access any admin pages.

There is a thread on wordpress.org which has proposed various solutions:

https://wordpress.org/support/topic/wp-admin-sorry-you-are-not-allowed-to-access-this-page-1/

There are too many solution proposed which are not required. No need to disable theme/plugins, no need to change .htaccess file etc.

To fix this issue use phpMyAdmin and search for the older prefix in database tables and rename all of them to new prefix one by one but be careful as you may make mistake. Once all the prefix values are changed then it will fix the issue.

Don’t forget to change $table_prefix value in wp-config.php


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.