WordPress Theme Folder Deleting Error

Discussion in 'WordPress' started by Jalpari, Mar 17, 2009.

  1. #1
    very strange problem i can not delete unwanted wordpress themes folder (files has been deleted but empty folder still exist , i try to delete 10 times)
     
    Jalpari, Mar 17, 2009 IP
  2. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Most likely because the host is running as mod_php (DSO) Apache module for the PHP interpreter. If you uploaded the theme using WordPress, chances are the files in the theme directory are owned by nobody/99.

    You need to ask your host to chown (fix ownerships) the files in that theme directory, or all files for that matter, so that it matches the username of your account, then you can delete it. Or just ask them to delete it for you!
     
    diligenthost, Mar 17, 2009 IP
  3. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #3
    After deleting when i will re upload that themes what will happen?
     
    Jalpari, Mar 18, 2009 IP
  4. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,615
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #4
    If you have SSH access download WinSCP and delete folder you want.
     
    Big0ne, Mar 18, 2009 IP
  5. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #5
    use filezilla and connect to your server and then delete.
     
    olddocks, Mar 18, 2009 IP
  6. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The same thing would happen, the files would be owned by the Apache process user (nobody), and you can't delete/edit them. Any decent host would have tools set in place for this kind of situation where you can reset the ownerships of the files yourself, without support intervention.

    What you can do is try to run a script via PHP that deletes that folder, because Apache will run it as user 'nobody' and be able to delete it's own files.
    Even still if your uid/gid isn't at the right level, you won't be able to delete the folder/files.
    Same problem persists, with FTP your logged in at your own username.
     
    diligenthost, Mar 18, 2009 IP
  7. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #7
    it could be possible that the folder ownership is root or other username. That is why you are not able to delete it. You have to change the file and group ownership to nobody or apache first. Try that in filezilla. You have change the file and group ownership to nobody.
     
    olddocks, Mar 18, 2009 IP
  8. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can't change the ownership of files using FileZilla, only permissions.
     
    diligenthost, Mar 18, 2009 IP
  9. dickieknee

    dickieknee Active Member

    Messages:
    441
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    80
    #9
    hi there this is a server issue, i have a similar error and was using filezilla and could not delete the directory, logged onto file server and changed the properties tried to delete from filezilla again no good, tried to delete from server could not delete,

    contacted host owner and it took them several hours to achieve the deletion...
     
    dickieknee, Mar 18, 2009 IP
  10. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #10
    I upload through filezilla
     
    Jalpari, Apr 3, 2009 IP
  11. fish

    fish Well-Known Member

    Messages:
    450
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #11
    Not sure if this would work or not, but in the past when I've had trouble deleting empty directories (not necessarily WP theme ones), I usually just go into the cPanel file manager and delete it from there. Let us know if that works for you.
     
    fish, Apr 5, 2009 IP
  12. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #12
    It wouldn't work as well, cPanel's file manager is just an FTP client over PHP
     
    diligenthost, Apr 5, 2009 IP
  13. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #13
    have you uploaded in ascii mode in filezilla?
    You should use binary mode.

    Using ascii mode causes weird problems.
     
    olddocks, Apr 7, 2009 IP
  14. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #14
    I call my host and they fix apache module
     
    Jalpari, Apr 8, 2009 IP