Fix UNINSTALL_WPSUPERCACHE Must Be Set To A Non-blank Value

In my post about Techie Buzz’s Architecture, I had stated that I used a WordPress plugin for caching   called W3 Total Cache. I love that plugin and have been using it for over a year now. However, prior to that I used another popular caching plugin called WP Super Cache which did the job well too.

However, I removed the plugin for some reasons and started using W3 Total Cache instead. Today, while performing a regular maintenance, I decided to remove plugins that I am not using anymore. One of the plugins I was removing was WP Super Cache. However, while uninstalling the plugin I was getting an error:

UNINSTALL_WPSUPERCACHE must be set to a non-blank value in uninstall.php

The problem was that it was looking for a non-empty value for a field. Now, I could have simply deleted the plugin folder using FTP, however, it would mean that there would be unwanted settings and files lying around on the server. However, I   was able to fix the error and uninstall the plugin.

If you are looking to fix this issue, here are the steps you need to follow:

Step 1: Use FTP or WordPress inbuilt plugin editor to edit the wp-super-cache/uninstall.php file.

Fix WP Super Cache Uninstall Problem

Step 2: Find the text

define( ‘UNINSTALL_WPSUPERCACHE’, ” );

and replace it with

define( ‘UNINSTALL_WPSUPERCACHE’, ‘1’ );

Save the file and try to uninstall the plugin again. It should work this time. Additionally, make sure to follow the other uninstallation notes for WP Super Cache too.

Published by

Keith Dsouza

I am the editor-in-chief and owner of Techie Buzz. I love coding and have contributed to several open source projects in the past. You can know more about me and my projects by visiting my Personal Website.I am also a social networking enthusiast and can be found active on twitter, you can follow Keith on twitter @keithdsouza. You can click on my name to visit my Google+ profile.

  • http://alohathemes.com scott

    Thank you so much! Your solution worked great for me. The line that needed to be edited was line 19 in my file. Thanks again!