How to manually disable WordPress plugins

I recently tried to update one of my WordPress plugins that somehow managed to bring my whole site down. I was unable to go to wp-admin to disable the plugin. I had to first disable all the WordPress plugins manually (through phpMyAdmin on my server) so I can get to wp-admin page, and then reinstall the plugin that caused the problem.

The best thing about this approach is that you don’t lose your existing configuration settings for the WordPress plugins (except for the one that caused issues in the first place).

Here are the detailed steps on how I went about getting my site back up.

1. Disable all the WordPress plugins manually

  1. Go to the cPanel of your web-server, and click on phpMyAdmin.
  2. Click on the database for your wordpress
  3. All the wordpress plugins are specified in the wp_options table’s ‘active_plugins‘ row. We need to remove the entry for the problematic plugin from this row’s ‘option_value’ column, so WordPress will disable all the plugins. Run the following sql statement to obtain the ‘active_plugins’ row.
    PgSQL
    1
    2
    SELECT option_value FROM wp_options
    WHERE option_name LIKE '%active_plugins%'

    You should get something like below that defines all the active plugins you had.
    1
    a:9:{i:0;s:19:"plugin1/plugin1.php";i:1;s:45:"plugin2/plugin1.php";}
  4. Update the active_plugins after removing the value for the pulgin that caused issues from the value above. In my case it was plugin1, so the sql to update the row looked as follows:
    PgSQL
    1
    2
    3
    UPDATE wp_options
    SET option_value = 'a:9:{i:1;s:45:"plugin2/plugin1.php";}'
    WHERE wp_options.option_name = 'active_plugins';

    Note that I removed the part that says “i:0;s:19:”plugin1/plugin1.php”;” from the original result I got.

2. Go to wp-admin section of your WordPress blog

If you followed all the above steps, you should now be able to go back to your WordPress blog and get it to load without any errors. Navigate to the wp-admin page for your blog and login as the WordPress administrator.

3. Re-enable all the plugins

At this point, WordPress would have disabled all your other plugins.

  1. Go to Plugins->Installed Plugins section under your Dashboard
  2. Activate all the plugins, except for the one that caused problems
  3. Load the live site on a different browser/tab to make sure those plugins are workings

4. Fix the problematic plugin

If you want to keep using that plugin, the best way is to just delete the plugin and reinstall it. The downside is you will have to reconfigure the plugin to suit your needs!

Let me know if you have used any other means to solve the same issue!

6 Responses to How to manually disable WordPress plugins

  1. WordPress has a quick 1 button installation when you use fantastico scripts. Your hosting provider will usually have cPanel (aka Control Panel) which in turn has the fantastico scripts that you need to use to install WordPress.
    Mark

  2. thank u for giving information

  3. Thanks for the tutorial. I had similar problem when I updated my wordpress version. I spent many hours trying to solve the problem and in the end I was able to solve. I did a post on my experience so that others can learn: http://utibeetim.com/simply-steps-to-disable-all-wordpress-plugins-through-phpmyadmin/

  4. Thank You! Thank You! Thank You! I got my website up and running with WordPress, but I know nothing about what is going on in the background with the coding or the database. I found out from other searches on my problem that disabling the plugins is what I needed to do. This was the first site I found that gave me step by step instructions, that I so very much needed, on how to do just that. I got my Admin Panel back up and running. Thank you again!

  5. Superb piece of information. This helped me a lot to get my blog up and running, after I encountered with a complex plugin error. Easy and step by step process to understand. Thanks a lot :)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>