Sorry, you are not allowed to access this page.

by Ajay Singh, Mar 7, 2024 No comments

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

You must be logged in to post a comment.