Please help! My gallery has been running well when today I suddenly encountered some problem:
1. When I uploaded new photos, the thumbnails always broken. I've tried clear my browser's cache and run "Delete Database Cache" and "Build All Thumbnails/Resize" and "Optimize Database" from the Admin Maintenance Tool to no avail.
2. When I ran "Build All Thumbnails/Resizes", there was always failed thumbnails, ranging from 2 to 6 thumbnails. It kept on changing.
The Debug Output for failed items is very very long, I copied the first topmost part only here:
Debug output for failed items:
file_exists(/home2/freefire/public_html/ztampfest/g2data/cache/entity/3/5/350.inc)
file_exists(/home2/freefire/public_html/ztampfest/g2data/cache/derivative/3/5/350.dat)
file_exists(/home2/freefire/public_html/ztampfest/g2data/cache/entity/3/5/357.inc)
file_exists(/home2/freefire/public_html/ztampfest/g2data/cache/derivative/3/5/357.dat)
fopen(/home2/freefire/public_html/ztampfest/g2data/locks/350, wb+, 0)
flock(Resource id #334, 6, )
(mysqlt): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (350)
(mysqlt): SELECT g2_DerivativeImage.g_width, g2_DerivativeImage.g_height,
g2_Derivative.g_derivativeSourceId, g2_Derivative.g_derivativeOperations,
g2_Derivative.g_derivativeOrder, g2_Derivative.g_derivativeSize,
g2_Derivative.g_derivativeType, g2_Derivative.g_mimeType,
g2_Derivative.g_postFilterOperations, g2_Derivative.g_isBroken,
g2_ChildEntity.g_parentId, g2_Entity.g_id, g2_Entity.g_creationTimestamp,
g2_Entity.g_isLinkable, g2_Entity.g_linkId,
g2_Entity.g_modificationTimestamp, g2_Entity.g_serialNumber,
g2_Entity.g_entityType, g2_Entity.g_onLoadHandlers FROM g2_DerivativeImage,
g2_Derivative, g2_ChildEntity, g2_Entity WHERE g2_DerivativeImage.g_id IN
(350) AND g2_Derivative.g_id=g2_DerivativeImage.g_id AND
g2_ChildEntity.g_id=g2_DerivativeImage.g_id AND
g2_Entity.g_id=g2_DerivativeImage.g_id
Now, I'm not sure if this is related or not, but my webhosting recently performed some server migration/upgrading. Could this do something with the problem I suddenly experiencing with my Gallery?
Will upgrading my gallery to version 2.3 help solve the problem?
Thanks a lot in advance for any help any of you can give!
Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.9 cgi
Webserver = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.67-community, lock.system=flock
Toolkits = Gd, LinkItemToolkit, SquareThumb, ImageMagick
Acceleration = none/900, none/900
Operating system = Linux box101.ucwebhost.com 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8
~fhung~
Posts: 22892
try db locking --Site admin -> general setion; Locking System
upgrade due to security issues and other bug fixes.
What is the toolkit priority?
php info link:
FAQ: What information is required when I ask for help in the forums?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 49
Thanks, I tried the DAtaBase Locking, but it doesn't help.
Toolkit Priority: I tried various priority to see if it would help, but it didn't. Currently I have NetPBM as the first priority then Image Magick, then Gd.
I'll try upgrading the gallery - perhaps it would solve the problem. I need to upgrade it anyway. Or... is it wiser to fix the problem first before any attempt to upgrade?
Thanks!
~fhung~
Posts: 22892
Could be a memory issue I am just guessing since you wont post a php info link as described in the FAQ.
Or it could be:
FAQ: Thumbnails / resized images don't appear but if i use www in front of my url it works. Full sized images are fine. How to fix?
FAQ: When I upload an image, G2 doesn't seem to create sized images or thumbnails... also, when I enter an album for the first time it takes a LONG time to load. What is the deal, yo?
Could be lots of things but since you said your host made some changes I would test the image toolkits and see if they actually work.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 49
My gallery is here.
I have added the PHP info link following the steps in the FAQ.
I have also tested the image toolkits and they work.
The broken thumbnails still didn't show when I put in www in front of my url.
FYI, only a few thumbnails are broken, plus cannot create thumbnails for new uploaded image but the gallery was working fine before will all the thumbnails present.
Thanks a lot,
~fhung~
Posts: 22892
please disable the square thumbnail module and try to add an item again. Results?
if it does not work enable buffered debug mode:
FAQ: How to set/use Gallery in debug mode?
add an inage and post the results.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 49
Thanks, floridave - the thumbnails are working fine now.
What I don't understand is that I've been using the Square Thumbnails all the time and it worked fine no problem until a few days ago. Is this somekind of bug? Will I be able to use Square Thumbnails again when I have upgraded to 2.3?
Thanks again, much appreciate your patience and help!
~fhung~
Posts: 22892
Could be a toolkit issue.
try to reenable the module and try again.
You have to upgrade anyway.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 49
Okay, I'm going to upgrade my gallery now and then try the module again later.
Thanks a lot for everything, floridave
All the best,
~fhung~
Posts: 49
Have successfully upgraded my gallery to 2.3 and reactivated the Square Thumbnails module. So far all seems to work fine.
Thanks again for all your help!
~fhung~