Deactivate All Plugins When Not Able to Access WP-Admin

Often times during troubleshooting, you will be recommended deactivate all plugins and activate them one by one. What’s worst is sometimes you get locked out of your WordPress admin panel, so you can’t even deactivate the plugins in an easy way. In this article, we will show you how to deactivate all WordPress plugins when not able to access wp-admin area.

There are two methods to disabling your plugins. One requires you to use FTP, and the other requires you to use phpMyadmin.

Deactivate All Plugins Using FTP

For this method, you will need to either use FTP client or your hosting Filemanager.

  • First, you need to connect to your website using FTP client, or File Manager in Cpanel.
  • Once connected, you need to navigate to the /wp-content/folder.
  • Inside wp-content folder, you will see a folder called plugins. This is where WordPress stores all plugins installed on your website.
    Deactivate All Plugins When Not Able to Access WP-Admin
  • Right-click on the plugins folder and select Rename option. Change the name of the plugins folder ( Example: plugins-deactivate). Once you do this, all of your plugins should be deactivated.

If the issue was with your plugins, then you should be able login to your WordPress admin area. Once you do that, go back to your /wp-content/folder and rename “plugins.deactivate” back to plugins. Now you can activate one plugin at a time until your site breaks again. At which point, you will know exactly which plugin caused the issue.

 Deactivate all plugins using phpMyAdmin

You can also deactivate all plugin using phpMyadmin.

  • First, login to your hosting control panel.
  • You need to access phpMyAdmin tool. In cPanel, it is usually  located in databases section. However, your hosting control panel might look different.
    Deactivate All Plugins When Not Able to Access WP-Admin
  • Select your WordPress database. After that, you will be able to see WordPress tables.
  • You need to open the wp_options table (wp_is a default WordPress table prefix. Prefix might be different on your site). In the wp_options table, you should see rows with different options. Find the active_plugins option and then click on the Edit link.
    Deactivate All Plugins When Not Able to Access WP-Admin
  • On the next screen, you will need to change the option_value field to a:0:{} and then click on a Go button.
    Deactivate All Plugins When Not Able to Access WP-Admin

Congratulations! You have successfully deactivate all WordPress plugins using phpMyAdmin.