Not signed in (Sign In)

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

    • CommentAuthorMilorad
    • CommentTimeSep 18th 2005
    whenever I go to remove a picture I get the nicely formatted error "Picture has invalid path, ignoring delete request"

    I'm running plogger on a windows server, and since uploads work perfectly well I can attest that its not a permissions issue. The picture is removed from the DB, but the files remain.

    Can you please help me correct this? I'm really loving plogger so far, especially the square thumbnails thing, and the RSS. I can't wait to get stuck into uploading all my photos.

    Perhaps there's a path I can 'tweak' someplace in the code?
    • CommentTimeSep 19th 2005 edited
    I'm actually quite surprised you got Plogger running on a Windows server at all.. do the thumbnails actually appear?

    The problem is that Plogger is coded with 'nix style pathnames (using forward slashes) and your Windows server is setup with a filesystem that uses back slashes to seperate pathnames.

    You'll have to go through the code and change all the forward slashes to back slashes. To tell you the truth, this may be more trouble than it's worth! There is quite a bit of code to sift through. Good luck, let me know if you get it to work.
    • CommentAuthorhubris
    • CommentTimeSep 20th 2005
    Hi milorad,

    I've been reading the comment of the admin, and I can suggest you get a program like EditPlus 2.0.

    If you open all (I then I really mean all) files, you can change that slashie-problem with only a few mouseclicks. EditPlus has the option to find and change something in all open files.

    Might be usefull !!

    Good luck !!
    • CommentAuthorMilorad
    • CommentTimeSep 20th 2005
    having some experience with PHP under windows, I can safely say that either slash works. I'm sure this is built in to compensate for cross-platform issues.

    Yes indeed the thumbnails work, in fact, all of it works, except for the deleting of fiiles. I was hoping there might be a server path variable at work someplace. In my experience these tend to translate differently, and its therefore best that all paths remain relative...

    I guess I'll dig through the code and see what I can find. I have a reasonable grasp of concepts but I'm lacking the php specifics to make this an easy prospect :)

    Thanks for your suggestion too, Hubris. I'm already using a good editor, I couldnt imagine life without one. There's a lot of 'tweaking' required to get things working under windows sometimes.

    Its not really a PHP issue, its just that most people use *nix, and so most coders don't spend a lot of time making things windows-friendly.

    Thanks again to both of you.
    • CommentTimeSep 21st 2005
    I implemented the path checking for the case where an invalid path (for example ../../../../../var/www/index.php) has somehow been entered into the pictures table - possibly through a bug in the code.

    So, the code tries really hard to make sure that the file is actually in the Plogger images directory before actually trying to delete it

    You'll find the check in admin/plog-admin-functions.php on lines 151-155. Would be really nice if you could make that work in Windows as well