Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorctlsmite
    • CommentTimeSep 29th 2007 edited
     
    I ran the upgrade script and got a couple dozen errors like this one:

    Moving jennifer___clifton/ninja_and_samurai/kitty1.jpg -> images/jennifer___clifton/ninja_and_samurai/kitty1.jpg
    Error: could not move file!

    Now my photos (hundreds of them!) appear to have been deleted off my server. I can't see them anywhere.

    Please tell me something can be done. Thanks.
    •  
      CommentAuthormike
    • CommentTimeOct 1st 2007
     
    Wow, I'm really sorry. I don't know how that could happen. There is a line in the upgrade script that goes like this -
    if (!rename("images/" . $row['path'], $new_path)) {
    echo "<li>Error: could not move file!</li>";
    $errors++;
    }


    However, there is no code in there that deletes the files! The rename function should not delete the source file unless it actually moves it successfully. This is base PHP functionality. What version of PHP do you have? Are you sure they aren't somewhere on your server hiding?

    Mike