WTH: php Coder for simple fix

Discussion in 'Programming' started by SimThePhpCoder, Sep 11, 2008.

  1. #1
    the error

    Warning: rename(/home/elymecom/public_html/wpskins.org/testrun/wp-content/themes/BlueSense,testrun/wp-content/themes/3880) [function.rename]: Directory not empty in /home/elymecom/public_html/wpskins.org/submit-theme.php on line 376
    On update:
    Quote:
    Warning: rename(testrun/wp-content/themes/3880/BlueSense,testrun/wp-content/themes/BlueSense_temp) [function.rename]: Directory not empty in /home/elymecom/public_html/wpskins.org/update-theme.php on line 332
    Theme updated 
    Code (markup):
    PM me for the site.

    will pay 10$ to whoever fixes.
     
    SimThePhpCoder, Sep 11, 2008 IP
  2. AimHigher

    AimHigher Member

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    It can't rename the directory because there are files in it.

    If you want to move the folder and its contents to another directory then:

    1. Create a new directory using mkdir();.
    2. Loop through the original directory using readdir() and move all the files to the new directory using move();
    3. Delete the original files/directory using unlink();
     
    AimHigher, Sep 11, 2008 IP
  3. SimThePhpCoder

    SimThePhpCoder Well-Known Member

    Messages:
    949
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    there are other rename errors too. i think the problem is the files are not extracting

    Warning: rename(/home/elymecom/public_html/wpskins.org/testrun/wp-content/themes/HandbagSnob11,/home/elymecom/public_html/wpskins.org/testrun/wp-content/themes/3973) [function.rename]: No such file or directory in /home/elymecom/public_html/wpskins.org/submit-theme.php on line 376
     
    SimThePhpCoder, Sep 11, 2008 IP
  4. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Its a CMS right, check your home directory setting in your config.php
     
    javaongsan, Sep 11, 2008 IP
  5. FanAddict

    FanAddict Notable Member

    Messages:
    7,017
    Likes Received:
    376
    Best Answers:
    0
    Trophy Points:
    230
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Here is some more information......


    Warning: rename(/home/elymecom/public_html/wpskins.org/testrun/wp-content/themes/BlueSense,testrun/wp-content/themes/3880) [function.rename]: Directory not empty in /home/elymecom/public_html/wpskins.org/submit-theme.php on line 376

    Code of line 376:
    rename($themes_url . '/' . str_replace(".zip",'',$_FILES["themeUpload"]["name"]), 'testrun/wp-content/themes/' . $new_id);

    --------------------------------
    Warning: rename(testrun/wp-content/themes/3880/BlueSense,testrun/wp-content/themes/BlueSense_temp) [function.rename]: Directory not empty in /home/elymecom/public_html/wpskins.org/update-theme.php on line 332
    Theme updated

    Code of line 332:
    rename($themes_url."/".$id."/".$file, $themes_url."/".$old_name[0]."_temp");
     
    FanAddict, Sep 16, 2008 IP
  6. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    are you using a windows server?
     
    javaongsan, Sep 16, 2008 IP
  7. FanAddict

    FanAddict Notable Member

    Messages:
    7,017
    Likes Received:
    376
    Best Answers:
    0
    Trophy Points:
    230
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Operating system Linux

    That's what is showing up in my CP.
     
    FanAddict, Sep 16, 2008 IP
  8. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    looks like you trying to change your wordpress theme dynamically. Can you provide your server access or the codes. PM me the details.
     
    javaongsan, Sep 16, 2008 IP