Solved: Random thumbnails missing Solved: Random thumbnails missing
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Solved: Random thumbnails missing

Started by thejake420, May 09, 2006, 11:56:43 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

thejake420

Edit: Problem solved.
(Mod, please close this thread, but leave the fix available for others who make the same mistake.)

Solution: It was due to the fact that I had removed swf from the allowable filetypes (while manually editing allowed filetypes to specifically disallow rar files for security reasons.) When I replaced swf as an allowed filetype, the thumbs (and everything else) appeared properly once again.
---------------------------


Gallery URL: http://ww.jakesjokes.com/gallery/

Example screenshot in case you can't recreate the issue:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.jakesjokes.com%2Fimg%2Fmissingthumb.gif&hash=de5e708ccbca1aae39c80373b8b3f279a87892d6)

The gallery (1.4.5) was working fine, everything was perfect. No changes have been made since the time when everything was displaying correctly. This problem has been recreated on two separate computers.

When I hover over the 1x1 "image", I get the ALT text corresponding to the correct thumb/image (in this case, the filename of the swf file for which the thumb should show... cursor doesn't show in screenshot). For what it's worth, when I "right-click, properties" on the missing thumb, I get the gallery's URL instead of the thumbnail's url, as it would normally do if the image were displaying properly.

The appropriately named thumbs (thumb_filename.jpg, etc.) are confirmed to exist in the proper locations. (The correct thumbnails display properly when called via CPMFetch on the site's homepage, so the thumbnsials are obviously "there" and in the right place.)

The thumbnails associated with SWF files do not appear in any CPG pages, including the "batch add files" page, etc. (They previously did.) When I am on the batch add files page, and right-click / properties on the missing image (red x), I get the (probably hardcoded) dimensions of 48x55, the size that the thumbnail would appear on that page, but again the address comes up as www.site.com/gallery/ instead of www.site.com/gallery/albums/(folder)/thumb_filename.jpg

The only similarity I've noticed between the affected items is that they all happen to be albums containing SWF files... not uploaded at the same time, not in the same folders, not even in the same categories. It's beyond strange.

This happened once before and I cleared my browser cache, etc. seemed to resolve itself... Possibly an issue with retreiving the thumb info from the DB? I'm stumped.

I tried to use admin tools to rebuild the thumbs in one of the albums, but got this response:
Quote
Updating thumbnails and/or resized images, please wait...
ERROR creating : albums/flash-games-group-1/thumb_flash-game-jakesjokes-1011.swf
ERROR creating : albums/flash-games-group-1/normal_flash-game-jakesjokes-1011.swf
ERROR creating : albums/flash-games-group-1/thumb_flash-game-jakesjokes-1012.swf
ERROR creating : albums/flash-games-group-1/normal_flash-game-jakesjokes-1012.swf
ERROR creating : albums/flash-games-group-1/thumb_flash-game-jakesjokes-1001.swf
ERROR creating : albums/flash-games-group-1/normal_flash-game-jakesjokes-1001.swf
(... continues through the album's contents with the same errors)

That looks fishy to me... is it strange that it is trying to create swf files instead of jpg?

Jake

Paver

Thanks for returning to give your solution. 

But for the future, it's *much* easier to read a thread as it's supposed to be read, from top to bottom, from post to post.  Replying to your original message with the solution is much easier to read the history since most of us understand the singular direction of time.   :)

thejake420

Quote from: Paver on May 10, 2006, 02:35:43 AM
Thanks for returning to give your solution.
Always. :) I hate it when I find a thread about a problem I'm having, and the poster says "Never mind, I fixed it", but they don't say how they fixed it or what caused it in the first place, etc.

Quote(...) since most of us understand the singular direction of time.
*Sigh* Must you humans always be so linear...? (grin)


Jake