I cannot access my admin page after disabled all of my plugins via wp-admin/plugins.php. Initially, I was trying to activate Multisite. Now, despite logged in into my admin acount, the wp-admin only says 'Sorry, you are not allowed to access this page' (or something in that line, cause I set the language in Indonesian).
I am using Wordpress 5.4.1 with PHP 7.1. It is hosted on a shared hosting and I can access using cpanel.
Installed plugins:
- Akismet
- Jetpack
- Loginizer
- Woocommerce
- AMP
- Auto Upload Images
- GDPR Cookie Consent
- Disqus
- Menu Image
- Polylang
- WP Github Sync
Things I've tried:
- Renaming wp-plugins folder to disable all plugin (doesn't work)
- Emptying active-plugins entry in wp_options table (doesn't work)
- Enabling WP_DEBUG (debug_log list nothing abnormal)
If you need more info, please tell me. Any help will be appreciated :)
I cannot access my admin page after disabled all of my plugins via wp-admin/plugins.php. Initially, I was trying to activate Multisite. Now, despite logged in into my admin acount, the wp-admin only says 'Sorry, you are not allowed to access this page' (or something in that line, cause I set the language in Indonesian).
I am using Wordpress 5.4.1 with PHP 7.1. It is hosted on a shared hosting and I can access using cpanel.
Installed plugins:
- Akismet
- Jetpack
- Loginizer
- Woocommerce
- AMP
- Auto Upload Images
- GDPR Cookie Consent
- Disqus
- Menu Image
- Polylang
- WP Github Sync
Things I've tried:
- Renaming wp-plugins folder to disable all plugin (doesn't work)
- Emptying active-plugins entry in wp_options table (doesn't work)
- Enabling WP_DEBUG (debug_log list nothing abnormal)
If you need more info, please tell me. Any help will be appreciated :)
Share Improve this question asked May 22, 2020 at 22:24 BanitamaBanitama 112 bronze badges 2- Did you edit a WordPress plugins.php file? – Tony Djukic Commented May 23, 2020 at 2:43
- @TonyDjukic Umm no, I edited them via the menu inside the administration page. – Banitama Commented May 23, 2020 at 8:05
2 Answers
Reset to default 2Well I agree with @Faye. It might be due to the activated theme which is depending on one of the plugin you deactivated. But rather than doing all of the steps you can simply rename the active theme in the wp-content/themes folder via FTP or cPanel. This will deactivate the theme and if it's the theme problem then you will be able to access the admin page.
Sounds like your theme is dependant on one of those plugins and disabling it is causing grief. You'll need to swap themes to get your admin back up. Make sure you have a default wordpress theme in your folders, like twentynineteen.
From phpMyadmin, follow these instructions:
- Click on the wp_options table.
- Under the option_name column, locate the template entry. You may need to navigate beyond the first page of entries.
- Click Edit next to the template entry.
- In the option_value column, change the value to the name of your chosen theme. The new value must be the same as your theme's folder name.
- To save, click Go.
- Click Edit next to the stylesheet entry.
- In the option_value column, change the value to the name of the chosen theme. The new value must be the same as your theme's folder name(ex. twentynineteen).
- To save, click Go.
If you can then see your admin, then we can be sure your theme needs one of those disabled plugins. Flick them all back on, switch back to your original theme, and everything should work again. Then disable them one by one and find out which one is causing the break when removed.
Once you identify the plugin causing the problem, you can start troubleshooting.
Good luck!