I have tried to upload a number of photos but after the upload is complete the thumbnails show as broken. I have tried clearing the cache but I looked into where the thumbnails should be created to and they're not their - the folder is even missing....

Any ideas???

Comments

Moloc’s picture

Do you use the private file system? See #1274464: Thumbnails are not created and displayed when using private file system

Are there any related log file entries in /admin/reports/dblog ?

sphankin’s picture

Nope - using a public file system.

I have an error message... not sure what I need to do though...

Warning: unlink(C:\php\UploadTemp\php18D.tmp) [function.unlink]: Permission denied in plupload_handle_uploads() (line 343 of C:\Domains\website.org.uk\wwwroot\beta\sites\all\modules\plupload\plupload.module).

Thanks.

Moloc’s picture

sphankin’s picture

The patch removes the error but the thumbs are still missing...

Moloc’s picture

Upload a new image
- Does the folder /sites/default/files contain your image? (This is the default location for uploading)
- Your gallery does not show the image?
-- Open a broken image-url in your browser (not just clicking on the image). What do you see?

sphankin’s picture

Uploaded a new image...
- Folder /sites/default/files contains the original image
- Right click thumbnail and look at thumbnail URL - http://www.website.org.uk/beta/sites/default/files/styles/square_thumbna...
- Copy and paste into browser - no image
- Check for image via FTP - no images in folder - image does not exist
- Click on broken thumbnail - original image opens in lightbox
- Only error is ****Notice: Undefined property: stdClass::$media_gallery_image_info_where in template_preprocess_media_gallery_media_item_thumbnail() (line 145 of C:\Domains\website.org.uk\wwwroot\beta\sites\all\modules\media_gallery\media_gallery.theme.inc).****

Moloc, thanks for helping - its driving me mad!

Moloc’s picture

- Right click thumbnail and look at thumbnail URL - http://www.website.org.uk/beta/sites/default/files/styles/square_thumbna...

If you are in the gallery view, the style of the thumbnail (on a default installation) should be media_gallery_thumbnail and not square_thumbnail. (Nevertheless, both styles should work.)
Your lightbox seems to work. Then the stlye media_gallery_large works.

- Copy and paste into browser - no image

- Do you get a white page with no content?
- Do you get a drupal rendered page? Is there a message?
- Do you get an error on the screen/log?

Does this issue have any similarities to issue #1231776: No images visible / thumbnails not generated? See screenshot, possible solutions,... .
You could try to disable, uninstall and install/enable the media_gallery module again (note: you will loose all media_galleries). Does this fix the problem?

sphankin’s picture

Hi Moloc,

I looked at the similar issue and have followed the steps... the solution did not seem to work however - like onny, the thumbnail WORK when clean urls is disabled. As soon as you enable clean urls the thumbnails fail to be created. (The thumbnails that have already been created stay working).

Update - also like onny - the thumbnails that weren't working when I uploaded with clean urls start to work when clean urls is disabled... i can then enable clean urls and the thumbnails stay - so i've found a work around but it's not that practical!

Any more ideas now we know it is a clean url problem?

Thanks!

Moloc’s picture

Status: Active » Closed (duplicate)

As you say, that this seem to be the same issue, i think we can close this one.

Further comments should be commented in #1231776: No images visible / thumbnails not generated.