最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp admin - How can I fix, Sorry, you are not allowed to access this page. I have tried the usual

programmeradmin4浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论