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

admin - Error "Sorry, you are not allowed to access this page"

programmeradmin1浏览0评论

I renamed plugins folder, removed unused themes, checked wp_capabilities for my website, It's getting error like below after login page and redirecting to home page.

I renamed plugins folder, removed unused themes, checked wp_capabilities for my website, It's getting error like below after login page and redirecting to home page.

Share Improve this question edited Jan 25, 2019 at 10:58 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Jan 25, 2019 at 10:35 webmaxwebmax 31 silver badge2 bronze badges 1
  • hopefully you backed up the site so that you can go back and restore things. – klewis Commented Jan 26, 2019 at 2:07
Add a comment  | 

2 Answers 2

Reset to default 0

First thing you need to do is take a backup of your current state. Then we start debugging.

A lot of things could cause this error so we have to first determine the root cause. To do this go to your wp-admin folder and in the wp-config.php file add the following line of code:

define( 'WP_DEBUG', true );

This will allow you to see the error that is on each page. Be sure to remove the code when you're done.

When we know the error or the cause of the error it will be easier to solve. Some simple things you can start with is turning off all plugins, reverting to default theme, etc.

Please see if the url used accessing the page is right. Please refer the link for creating plugin menu pages https://developer.wordpress/reference/functions/add_menu_page/ and https://developer.wordpress/reference/functions/add_submenu_page/

发布评论

评论列表(0)

  1. 暂无评论