Needs review
Project:
Flash gallery
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 May 2008 at 18:24 UTC
Updated:
28 Jun 2008 at 14:21 UTC
Jump to comment: Most recent file
For new galleries only the simplwviewer "Startscreen" is shown.
I'm adding new galleries with image import. After this the new gallery is visible at /fgallery. But if I click on it only the simplwviewer "Startscreen" is visible. No pictures are displayed.
Going to the Flash Galleries admin page and enabling build thumbnail library solves the problem. But this is inconvenient and takes very long because it's recalculating everything for every gallery.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | add_thumbs.patch | 1.56 KB | pluess |
Comments
Comment #1
pluess commentedThere's another problem. Once the images are deleted, the preview images in flash/thumbs directory are not deleted.
Comment #2
pluess commentedThe first problem occurs, because flash_gallery_nodeapi is never called with a valid preview image if the images are imported with the image import module. The problem can be solved by implementing hook_image_alter of the image module.
The second problem happens because flash_gallery_nodeapi tries to access the original image file, which has already been deleted by image_delete. The check has been softened to just check whether the file to delete really exists.
The attached patch contains fixes for both problems.