jettabaker
Member
Posted 1 year ago #
I want to replicate my blog with all the same plugins and theme and tailor page content to match the blog.
- I copied the files to a new folder
- Copied the database files to new tables with a different prefix
- Updated the wp-config file to reflect the new prefix
- Reset the active_plugins by updating them to 'a:0:{}'
- Renamed the plugins folder on the server
- Created a new and empty plugins folder
But after entering my password I was getting the message
You do not have sufficient permissions to access this page
. I changed the siteurl to not include the http:// and then back to include it and now it takes the password but remains on the login screen.
Is it possible that the user activation key needs to be reset?
Is there a way to create that key without responding to an email?
jettabaker
Member
Posted 1 year ago #
jettabaker
Member
Posted 1 year ago #
OK, went back and recreated the password using the manual phpmyadmin instructions and still unable to log in. Just getting
You do not have sufficient permissions to access this page.
message. Any suggestions???
jettabaker
Member
Posted 1 year ago #
That message seems to be coming from the menu.php file `$menu = add_menu_classes($menu);
if ( !user_can_access_admin_page() ) {
do_action('admin_page_access_denied');
wp_die( __('You do not have sufficient permissions to access this page.+') );
}
`Note that I added the "+" to verify it was the proper file causing the issue.
jettabaker
Member
Posted 1 year ago #
OK! here is the answer friends! v 3.0.1
if you renamed your database tables anything other than wp_, there are some meta_keys you need to change on the usermeta table. Change the wp_ to whatever you made the prefix for your tables; I used demo_ so I changed the wp_capabilities to demo_capabilities. There is also one of these on the options table and do a search of your database to see if there are any hard coded table names (I had one for wp_posts). After doing this my sufficient permissions error message disappeared and my dashboard finally showed up.