WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Super Cache] Cannot delete cache folder after uninstall

[Plugin: WP Super Cache] Cannot delete cache folder after uninstall

  • I installed WP-Super-Cache but couldn’t get it to work. I had the same problem with the Mod Rewrite as here. Anyway, I figure WP-Cache will be enough for my needs. So I set about uninstalling. All went fine but I cannot remove the cache folder. I chmod it to 777 but permission is denied – the owner/group is httpd and this might be the problem. I had the same problem with the advanced-cache.php (folder-looking file) but moving it into another folder and then deleting that folder (of which I was the owner/group) worked. This approach does not work with the cache folder since I do not have permission to move it. I even backed up my wp-content folder, without the rogue cache folder, and tried to delete the wp-content folder on the server. Of course everything else deleted except the cache folder!

    Any help on how I can remove this dang folder is much appreciated!

Viewing 15 replies - 1 through 15 (of 24 total)
  • simulationelson
    Member

    @simulationelson

    You said it! This is starting to bug me badly. Can we hear any reply from the author?

    BUMP

    I followed the directions for uninstalling, however, I can not delete the /wp-content/cache folder. What do I do?

    Same problem: cannot delete or open advanced-cache.php

    please tell us how to uninstall wp-cache!

    Ask your host to restore the permissions on it for you. This sort of thing only happens on certain hosts.

    the advanced-cache.php has 777 chmod, what should I ask for?
    If I try to delete or change permission:

    550 Could not change perms on advanced-cache.php: No such file or directory

    Moreover, what if it stuck again?

    what should I ask for?

    Err… ask them to fix it? Seems obvious to me.

    Moreover, what if it stuck again?

    Then you ask them to fix it again.

    Well I mean: couldn’t I ask them to avoid this problem in the future so I shall be able to fix it by myself?

    I don’t understand how is it possible I cannot delete a folder and “they” can.

    thanks

    Well I mean: couldn’t I ask them to avoid this problem in the future so I shall be able to fix it by myself?

    You can try, sure. I doubt you’ll have much success with that though. It’s a matter of their main webserver configuration, it seems unlikely they’re going to go to the large amount of trouble to fix what is really a rather minor issue if they have not done it already.

    I don’t understand how is it possible I cannot delete a folder and “they” can.

    They know the root password. You do not. A root user can do anything.

    all right, that’s more than enough! many thanks, I am waiting them to fix that.
    I am not sure to try again installing a plugin with such an issue, at least in my own host provider case.

    It’s not an issue with the plugin, it’s an issue with the server itself. You don’t own the files created by the webserver user, nor do you have permissions to modify them. The security is too strict, basically. There’s ways around this issue, but they have to be explicitly set up in advance.

    Check some of your uploaded images that you’ve put there via the WordPress uploader. Bet you a nickel that you can’t manually delete some of them either. 🙂

    I tried some, I can delete them, anyhow you are right, the problem is on the server side 🙁
    so I am afraid to install it again in order to avoid further headache.

    Thanks for the solution Otto. I had hoped that going through the host’s tech support could be avoided but ah well…

    I agree with passegua on the issue being with WP Super Cache in a more global sense, since it is what created the problem folder in the first place. It’s not that I don’t completely and utterly respect Donncha O Caoimh’s excellent work, but there surely must be a way that this folder can be created without having to revert to the host everytime it needs to be uninstalled?

    Dr C – you could clear the cache, and then write a short bit of code in a php file like this:
    rmdir( 'cache/supercache/' );
    rmdir( 'cache' );

    Put that file in the wp-content directory and call it directly. That’ll remove the cache folder.

    I’ll see if I can add that to the plugin.

    Thanks for replying Donncha. When I went back to apply your fix the permissions had been changed and I was able to delete it directly – I was not previously able to do this. Perhaps the host has changed something in the meanwhile?

    Anyway, thanks for you help. I presume that between Otta’s and your fix this topic is now resolved?

    I tried this

    rmdir( ‘cache/supercache/’ );
    rmdir( ‘cache’ );

    but when I open it, it just turn back the text
    rmdir( ‘cache/supercache/’ );
    rmdir( ‘cache’ );

    Any solution?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘[Plugin: WP Super Cache] Cannot delete cache folder after uninstall’ is closed to new replies.