Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Solved: Random thumbnails missing  (Read 3054 times)

0 Members and 1 Guest are viewing this topic.

thejake420

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 79
  • Jakes Jokes - the largest joke site on the web
    • Jakes Jokes
Solved: Random thumbnails missing
« on: May 09, 2006, 11:56:43 pm »

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:
(http://www.jakesjokes.com/img/missingthumb.gif)

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
« Last Edit: May 10, 2006, 02:35:57 am by Paver »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Solved: Random thumbnails missing
« Reply #1 on: May 10, 2006, 02:35:43 am »

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.   :)
Logged

thejake420

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 79
  • Jakes Jokes - the largest joke site on the web
    • Jakes Jokes
Re: Solved: Random thumbnails missing
« Reply #2 on: May 10, 2006, 03:33:44 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
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.