WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


[function.getimagesize]
Can't produce thumbnails in category view

Version: 2.3.7
Example URL: http://urbanlines.net/gallery/index.php?action=displaycat&catid=79
printPrint


[function.getimagesize]
Ducnan Clarke
Member
Avatar

Usergroup: Member
Joined: Dec 19, 2003
Location: Stoke, UK
Total Topics: 7
Total Posts: 20
Posted 10/03/06 - 06:43 PM:
quote post
#1
Any idea why some of my images are barfing when asking them to show thumbnails as in the example page? All the images are from the same camera and editing software.

I get one error message for each of the failed thumbnails:

Warning: getimagesize() [function.getimagesize]: Read error! in /homepages/21/d86207139/htdocs/urbanlines.net/gallery/classes/onelink.php on line 2231

I can view the images themselves fine however.

Sorry about the recent flurry of questions. Should have been upgrading more regularly I reckon.

_____________________
See my galleries at
- http://urbanlines.net
- http://bugrunners.co.uk
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 10/03/06 - 10:01 PM:
quote post
#2
It seems to be saying it can find the file thumb_x.jpg yet it isn't readable or isn't an image file. Appears to be some sort of odd upgrade issue... http://urbanlines.net/gallery/attachments/thumb_c... wasn't showing up, so I went to http://urbanlines.net/gallery/thumbnail.php?id=13... to bypass the caching and that made it work again when I went back to the category. Try regenerating attachments.
Ducnan Clarke
Member
Avatar

Usergroup: Member
Joined: Dec 19, 2003
Location: Stoke, UK
Total Topics: 7
Total Posts: 20
Posted 10/04/06 - 12:43 AM:
quote post
#3
Found the problem. Had a poke around in the attachments directory and found that the problem thumbnails were there, but 0 bytes. For some reason the regenerate did nothing to overwrite them. I simply deleted all the 0 byte ones;
rm $(find . -size 0)
and reloaded the page and they are there again.

Love it when a plan comes together.

_____________________
See my galleries at
- http://urbanlines.net
- http://bugrunners.co.uk
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.