How to deactivate plugins when not able to access WordPress admin?

Often during troubleshooting, you may need to deactivate all plugins and activate them one by one. In this article, we will show you how to deactivate all WordPress plugins when you cannot access the WordPress Admin Dashboard.

 

Using FTP/File Manager


  • Go to cPanel > File Manager.

    Or, DirectAdmin > User > System Info & Files > File Manager.
    Or, Login to FTP.

  • Navigate to the [wp-content] directory.

  • Rename the [plugins] directory to [bk-plugins].

  • Go to WP Admin > Plugins.

  • Done!

 

Using phpMyAdmin


  • Go to cPanel > phpMyAdmin.

    Or, DirectAdmin > User > Extra Features > phpMyAdmin.

  • Click the database on the left.

    You can find the database name in the [wp-config.php] file in your WordPress install directory:

    define( 'DB_NAME', 'databasename' );

  • Click "wp_options" table.

    Your table name might be different, e.g., "XX_options".

  • Click "Edit" located to the left of "active_plugins".

  • Enter the following in the text box next to "option_value":

    a:0:{}

  • Click "Go".

  • Done!

 

  • 249 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset or regenerate the .htaccess file in WordPress?

A [.htaccess] file is a configuration file that tells your server how to handle certain things on...

How to fix the 403 forbidden error in WordPress?

In this article, we will show you how to easily fix the 403 forbidden error in WordPress. What...

Fix incorrect PHP handler or session path

  Server software and configuration can vary from provider to provider, which in turn causes...

How to fix errors after migrating WordPress?

  Migrations from cPanel-based servers are usually seamless. But sometimes, a few issues might...

Fix missing MySQL extension or PHP extension or session error

  The most common reason for the error is using an invalid PHP handler/directive in the...