How to Deactivate WordPress Plugins to Fix wp-admin Locked Out Issue?

How to deactivate WordPress plugins to fix wp-admin locked out

WordPress blogs experience error while accessing WordPress admin panel end up with white screen. Your admin panel will be locked out and you will be unable to access WordPress admin panel. In such case, one of the recommend method to troubleshoot this error is to deactivate all the plugins you have installed in your site.

You may know the ways to deactivate plugins easily from WordPress dashboard but when you are unable to access WordPress dashboard you can only deactivate the plugins using one of the below methods. In this tutorial you will learn how to deactivate plugins using two methods:

  • Method-1: Deactivate WordPress plugins using FTP client.
  • Method-2: Deactivate WordPress plugins from phpMyAdmin.

Method-1: Deactivate WordPress plugins using FTP client

You can use FTP client like FileZilla or Coreftp to access your web server files and folders.

Download FTP client FileZilla and install into your computer.

Download FileZillla

Once installed, open FileZilla and connect using FTP login credentials provided by your hosting provider and click on Quick Connect button.

Ftp connect to server

FileZilla have two section, PC section at the left and Server Section at the right. From Server section open public_html folder.

Open Public html

You will see WordPress core files and folder. Double-click on wp-content folder where you will find plugins folder. Plugins folder contains all the plugins you have installed into your website.

You need to rename the plugins folder name to any name e.g. plugins.fix which will deactivate all the installed plugins.

To do that, right-click on the plugins folder and click on Rename. Change the name of the plugin to any name e.g.plugins.fix. this will deactivate all the plugins installed in your website.

How to deactivate WordPress plugins to fix wp-admin locked out issue

In most cases, deactivating all the plugins will fix the issue and you will be able to access WordPress admin panel.

Now, you can find the faulty plugins that is locking your admin panel activating one by one. Go back to wp-content folder and rename the plugins.fix folder to default name Plugins.

Login to your WordPress Dashboard and Activate the plugins one by one until you find the faulty plugins that breaks your site.


Method-2: Deactivate WordPress plugins from phpMyAdmin.

You can also deactivate all the plugins from cPanel. Login to the cPanel e.g. www.yoursite.com/cpanel using username and password. From the cPanel dashboard click on phpMyAdmin under Database.

phpmyadmin

It will take you to phpMyAdmin screen in another tab. From the left side, expand your WordPress site database clicking on plus sign and click on wp-options.

How to deactivate WordPress plugins to fix wp-admin locked out issue

Note: You will see wp before the table name. wp is the table prefix and can be different in your site.

In wp-options table you will see many rows, find active_plugins using Next and Previous button and click on edit.

You need to replace default option_value with a:0:{} and click on Go button. You have saved the changes and deactivate all the installed plugins in your site.

How to deactivate WordPress plugins to fix wp-admin locked out issue

Your all installed WordPress plugins are deactivated and you should be able to login to your WordPress admin panel.

If you want to reactivate the plugins you need to go back and access your web server then rename plugins.fix folder to default name plugins. Once renamed login to WordPress dashboard and activate the plugins one by one.


We hope this guide on how to deactivate WordPress plugins to fix wp-admin locked out issue is helpful. You may also like to see the guide on 12 best WordPress plugins?. If you find this guide helpful, please share and follow on facebook  and twitter.

You may also like...