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...

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...

How to fix 500 internal server error and 503 server busy error?

  500 and 503 errors can be caused by an incorrect PHP version or extensions, a PHP malfunction,...

How to fix 403 forbidden error in WordPress?

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

Fix WordPress redirect error - ERR_TOO_MANY_REDIRECTS

A redirect loop or too many redirects error can occur if multiple redirects from different...