forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: nickels55 on February 07, 2008, 03:24:58 pm

Title: Thumbnail files not being created since server switch
Post by: nickels55 on February 07, 2008, 03:24:58 pm
I just changed web hosts, and now my one gallery isn't working. There are no errors, the files just aren't created. Instead of the preview there is just the filename. If I right click on the filename to see where coppermine is looking, there is no file in that spot.

For example:
xxxxx.myservername.com/albums/jan08/normal_VA0190BL.jpg
(missing/not created on upload)
and
xxxxx.myservername.com/albums/jan08/thumb_VA0190BL.jpg
(missing/not created on upload)
These are missing because these files were not automatically created when I uploaded the file.
 
However the full size photo shows up:
xxxxx.myservername.com/albums/jan08/VA0190BL.jpg
But there is a catch! The full size image only shows up if I ftp the photos to the server and batch add them.
If I add them by single upload using the web browser, none of the previews or full image is created.

I am sure this is a result of switching servers, something didn't move correctly or is missing.
What is interesting is that I have another gallery on my server in a different folder, and it continues to function normally.
The host can probably fix it for me, but I was hoping someone here may know what is going on.

Thanks for any info. If it will help I will give the url for this gallery so you can see what is happening.
On a side note, batch uploading looks for directories in the folder "albums" not "albums/userpicts" - I am not sure if this makes any difference.
Title: Re: Thumbnail files not being created since server switch
Post by: Stramm on February 07, 2008, 03:40:40 pm
Check permissions and ownership of the picture files and folders.
Title: Re: Thumbnail files not being created since server switch
Post by: nickels55 on February 07, 2008, 04:00:16 pm
The permissions are fine - all the folders are "755"
Title: Re: Thumbnail files not being created since server switch
Post by: nickels55 on February 07, 2008, 04:15:26 pm
UPDATE:
I think that this info will help troubleshoot the problem.

Remember how I said these files were missing:
xxxxx.myservername.com/albums/jan08/normal_VA0190BL.jpg
xxxxx.myservername.com/albums/jan08/thumb_VA0190BL.jpg

Well, these files appeared after a long delay, but they had the wrong permissions (640).

Another test, same results. The files take forever to appear in the folder so something is messing up the auto image preview creation, and when they are created they have the wrong permissions. If I don't upload the file to the server (use browser upload method) it seems that it doesn't work at all.
Title: Re: Thumbnail files not being created since server switch
Post by: nickels55 on February 07, 2008, 04:53:54 pm
Sorry about all the posts.... can't you edit posts on this forum?

Anyway, I've narrowed it down to the files being generated getting the incorrect permissions, everything else is fine.
So what do I do to make sure the preview files get the correct 644 permission instead of 640? I submitted a ticket to my host, maybe they'll figure it out.
Title: Re: Thumbnail files not being created since server switch
Post by: nickels55 on February 07, 2008, 08:58:38 pm
PROBLEM SOLVED

The setting was under Config -> 'Files and thumbnails advanced settings'.  I
changed it so new directories will be 755 and new files 644.
Title: Re: Thumbnail files not being created since server switch
Post by: Stramm on February 07, 2008, 10:02:50 pm
Thanks for coming back and posting your solution.