I have just migrated a site to a new server.
All seemed to go well but now I am getting an error "Sorry, you are not allowed to access this page.".
I have access to FTP and to PHP MyAdmin.
I can login, and see myself logged in on the front end, but I do not have a dropdown to see the "dashboard". As you can see from this screenshot, I can visit /wp-admin
and I can login. To me this stinks of a permissions issue. As soon as I am logged in I am no longer able to visit /wp-admin
and get the error.
I used PHP MyAdmin to create a new user via SQL.
I changed the qt_usermeta
> wp_capabilities
to a:1:{s:13:"administrator";s:1:"1";}
I ensured wp_user_level
has a meta_value
of 10
I renamed the plugins folder to plugins-disabled.
I renamed wordfence-waf.php to --wordpress-waf.php
I renamed .htaccess to htaccess.txt
I changed the PHP version from 7.2 down to 5.6 in case the theme did not support it.
I ensured all folders were 755 and files were 655.
I turned on WP_DEBUG but received no errors.
Can anyone think of anything I may have missed? This stinks of a permissions issue to me.