WordPress Tutorials and Blog Posts

Disable a WordPress Plugin Without Access to Your Admin Area

Normally disabling a WordPress plugin is very simple and straightforward. How easy? You can login to admin area, click the Plugins tab and click Deactivate next to the plugin. You can see an example below with Akismet:

tutuploadsmedia_1301326774564.png

However, sometimes a plugin can make things more complicated. Some plugins can cause problems with logging into your admin area. That's exactly what happened to one of our members. They changed a setting inside a plugin and suddenly started getting these errors when trying to login:

[faultcode] => CLIENT
[faultactor] =>
[faultstring] => Could not log in.
[detail]=> The cid was not found or the password was incorrect.

So, what do you do if you can't login to your WordPress admin and disable a a plugin? You have two choices:

Choice 1: Disable the Files

tutuploadsmedia_1301327624317.png

One choice is to disable the plugin's files.

  1. Login to your site's files using the file manager provided by your webhosting company or using an FTP program such as Filezilla.
  2. Browse to the /wp-content/plugins/ folder.
  3. Find the folder of the plugin you wish to disable.
  4. Rename that folder as in the image below:
tutuploadsmedia_1301327772649.png

Now you can try to login to your WordPress site. You should get a message telling you that the plugin has been disabled.

tutuploadsmedia_1301327876333.png

Now you can set up about solving the initial problem with the plugin, either by deleting the plugin entirely or by researching and fixing the initial error.

Choice 2: Disable via the Database

The second option is more complicated and that is to disable the plugin via the database. First, you'll need to access the database for your WordPress site. phpMyAdmin is a popular tool for this that's provided by many hosts and it's the one we'll use in this tutorial.

Once you've logged into the database, look for the wp_options table:

tutuploadsmedia_1301329129668.png

You're looking for a row with the option called active_plugins as below:

tutuploadsmedia_1301329331439.png

If you want to turn off all the plugins on your site, you can simply delete this entire row by clicking on the red X button beside it. That won't cause any lasting harm except for turning off the plugins.

tutuploadsmedia_1301329670120.png

If you want to disable just one plugin, click on the pencil icon instead:

tutuploadsmedia_1301329784722.png

You'll now see a screen like the one below:

tutuploadsmedia_1301329856896.png

All you need to do here is change one thing. Change the a:1 before your plugin name to a:0. So in this case, the original line is:

tutuploadsmedia_1301329959629.png

and you will change that to:

tutuploadsmedia_1301329987412.png

To save your changes and finish disabling the plugin, click Go in the bottom-right corner.

tutuploadsmedia_1301330079695.png

Now you can set up about solving the initial problem with the plugin, either by deleting the plugin entirely or by researching and fixing the initial error.

Comments

 
Matthew
#1 Matthew 2012-01-07 15:50

Thank you for this article. I was pulling my hair out trying to figure out how to access my admin area. Some wp plug-ins truly suck! Thanks again!
 
 
Nick
#2 Nick 2012-01-12 06:44

You're very welcome, Matthew! Glad you got thing sorted! :)

You should check out our Wordpress Beginner and Intermediate classes at www.ostraining.com/online

Kind regards,
Nick
 
 
Julie
#3 Julie 2012-08-29 04:35

THANK YOU!! Very helpful.
 
 
Jatin Gupta
#4 Jatin Gupta 2012-09-08 20:21

this tutorial not works on WordPress 3.4.1.
because there no active_plugins in wp_options table: please reply me...

i want to disable single wp plung-ins...
 
 
pedro
#5 pedro 2012-11-07 20:54

Thank u very much this info was extremely useful thank u again
 
 
bikash dash
#6 bikash dash 2012-12-03 18:03

Thanks you save me from a heart attack!!
 
 
Crackethill
#7 Crackethill 2013-03-01 02:43

BRILLIANT!! I used choice #2 and it works just fine. Thanks a million.
 
 
moclezo
#8 moclezo 2013-04-12 16:42

THANKS THANKS VERY VERY much, I come from Kenya and I was in q lot of stress after my site crashed,I tried several sites and they were not giving more options and step by step approach,am extremely happy,thanks
 
 
mohan
#9 mohan 2013-04-19 12:30

thanks a lot.
 
 
Michaelk
#10 Michaelk 2013-04-28 07:56

amazing answer. thanks
 

Add comment


Security code
Refresh

blog-ad

Start Online Training

Members get access to all our video training. That's 1,141 training sessions in Joomla, Drupal, WordPress and Coding.

Manage All Your Joomla Sites

adminicredible

With Admincredible you can update and manage all your Joomla sites. If you have 5 or 500 sites, Admincredible will make your life easier! Visit Admincredible.com.

Latest Comments

The License for Our Tutorials

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:

  • You can re-use these tutorials.
  • You can modify these tutorials.
  • You must link back to our original tutorial.
  • You can't use these tutorials commercially.

Click here to read the full license.

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.