Saturday, May 8, 2010

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

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

How to uninstall WP Super Cache

Edit the file uninstall.php in your plugins/wp-super-cache/ directory and set UNINSTALL_WPSUPERCACHE to a non blank value.

define( 'UNINSTALL_WPSUPERCACHE', '1' );

Open your browser and load wp-content/plugins/wp-super-cache/uninstall.php directly. You must be logged in, and you must confirm the action. If you do not delete the plugin immediately, after the script runs, please comment out the define() above to stop someone else running it.

To manually uninstall:

1. Remove the WP_CACHE define from wp-config.php. It looks like define( 'WP_CACHE', true );
2. Clear the cache in the backend page and then deactivate the plugin on the plugins page.
3. Remove the Super Cache mod_rewrite rules from your .htaccess file.
4. Remove the files wp-content/advanced-cache.php and wp-content/wp-cache-config.php
5. Remove the directory wp-content/cache/
6. Remove the directory wp-super-cache from your plugins directory.

If all else fails and your site is broken

1. Remove the WP_CACHE define from wp-config.php. It looks like define( 'WP_CACHE', true );
2. Remove the rules (see above) that the plugin wrote to the .htaccess file in your root directory.
3. Delete the wp-super-cache folder in the plugins folder.
4. Optionally delete advanced-cache.php, wp-cache-config.php and the cache folder in wp-content/.

No comments:

Post a Comment