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.

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.
Comment Using Facebook
One Response to this Article | Share your Opinions/Comments
We moderate comments to prevent spam. Moderation is done within few hours. Please try and stay on topic and refrain from using abusive language. If you think there is a problem with this post, please email the post author or send us an email at tips@techie-buzz.com with the URL and the problem you see and we will rectify it as soon as we can.




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!