Not signed in (Sign In)

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

    • CommentAuthorpkearney
    • CommentTimeMar 15th 2009 edited
     
    Hi All,

    We've had to move to a new server and now our plogger galleries don't completely work (you can still view them most of the time without an error), but we do get one when viewing an individual photo (like here)

    http://www.goldendellanticacasa.com/galleries/?level=picture&id=34

    We have more problems when we access the admin part of the site and want to upload or manage pages.

    I've worked out that a lot of this is down to file and folder permissions now, but we have also been moved to a server that now had PHP5, so I don't know if there are other problems being introduced becasue of this...

    I've set the,

    /thumbs
    /images
    /uploads

    all to be 777, and this then let me upload new images without erroring, but I still get errors, if for example I go to the the manage page for a particular album /ehere you can preview the albums thumbnails) I get this error (for each thumbnail in the page)

    Warning: copy(/home/goldende/public_html/galleries/thumbs/lrg-57-immagine2.jpg) [function.copy]: failed to open stream: Permission denied in /home/goldende/public_html/galleries/plog-functions.php on line 502

    but it does display the thumbnails OK.

    What else should I be looking at?

    If this doesn't work, I want to have a go at re-creating the galleries, is there a way to backup a gallery, then import that data to a newly installed gallery?

    Thanks for any pointers

    Regards

    Paul
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 16th 2009
     
    pkearney,

    You're getting this error because of folder permissions again. However, this particular error is due to your original size image being smaller or equal in size to the "Intermediate Image Size" you set in your Admin -> Options and Plogger thinking it needs to update your thumbnails (either the Intermediate size was changed or the timestamp was altered during the server transfer). The script is attempting to copy the original image to the thumbs folder, renaming it in the process. However, it cannot correctly copy the file because the folder permissions for the collection and/or album within the images/ folder do not allow the script access. However, your original thumbs are still there, so it's still displaying the old thumbnail.

    To get this to work on your server (or if you want to add images to a certain folder or delete those on your server), you would need to CHMOD all subfolders under the 'images/' folder to 0777. However, this leaves many folders with open permissions that is not necessarily good practice for security measures.

    The other option is to download the newest code from the SVN and run the upgrade (only CHMOD the folders it asks you to during the upgrade process as well). This should reset all the path permission issues you are dealing with.