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.
Image may be NSFW.
Clik here to view.
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.
Subscribe to More Channels: Android Gurus | Windows Phone Gurus | Health & Medicine
The post Fix UNINSTALL_WPSUPERCACHE Must Be Set To A Non-blank Value appeared first on Techie Buzz.