I have a multi-site installation of Gallery 2. I recently moved from Fedora 4, where I did the Gallery installation myself, to Fedora 9, where the Gallery 2 installation was handled by yum. The install/upgrade script seems to say I'm successful, but I get a LOT of errors when I try to generate thumbnails. The full sized images are there if I click through the default thumbnail image. I'm sure it's something simple I did wrong, but don't know what it is.
Here are SOME of the error messages I'm getting when I try to regenerate the thumbnails and resized images:
file_exists(/home/cccds/g2data/cache/entity/5/8/5800.inc)
file_exists(/home/cccds/g2data/cache/derivative/5/8/5800.dat)
file_exists(/home/cccds/g2data/cache/entity/1/6/169.inc)
getParameter lock.system for core plugin
fopen(/home/cccds/g2data/locks/5800, wb+, 0)
flock(Resource id #121, 6, )
(mysql): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (5800)
(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
AND g2_Schema.g_type = 'entity' AND g2_PluginMap.g_active = 1
(mysql): 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
(5800) 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
file_exists(/home/cccds/g2data/cache/derivative/5/8)
is_dir(/home/cccds/g2data/cache/derivative/5/8)
file_exists(/usr/share/gallery2/modules/dcraw/classes/DcrawToolkit.class)
file_exists(/usr/share/gallery2/modules/gd/classes/GdToolkit.class)
file_exists(/usr/share/gallery2/modules/netpbm/classes/NetPbmToolkit.class)
file_exists(/usr/share/gallery2/modules/archiveupload/classes/ArchiveExtractToolkit.class)
file_exists(/usr/share/gallery2/modules/swf/classes/SwfToolkit.class)
realpath(/usr/share/gallery2/modules/core/classes/../../../)
realpath(/home/cccds/public_html/gallery/)
(mysql): update g2_SequenceEventLog set id=LAST_INSERT_ID(id+1);
(mysql): UPDATE g2_EventLogMap SET g_userId=6, g_type='Image Error',
g_summary='Unable to build image', g_details='Error (ERROR_BAD_PATH) :
Invalid path: modules/swf/classes/SwfToolkit.class <b>in</b>
modules/core/classes/helpers/GalleryFactoryHelper_simple.class <b>at
line</b> 171 (GalleryCoreApi::error) \n<b>in</b>
modules/core/classes/helpers/GalleryFactoryHelper_simple.class <b>at
line</b> 201 (GalleryFactoryHelper_simple::newInstance)
\n<b>in</b> modules/core/classes/GalleryCoreApi.class
<b>at line</b> 175
(GalleryFactoryHelper_simple::newInstanceById) \n<b>in</b>
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class
<b>at line</b> 551 (GalleryCoreApi::newFactoryInstanceById)
\n<b>in</b> modules/core/classes/GalleryCoreApi.class
<b>at line</b> 1104
(GalleryDerivativeHelper_advanced::mergeOperations) \n<b>in</b>
modules/core/classes/GalleryDerivative.class <b>at line</b> 583
(GalleryCoreApi::mergeDerivativeOperations) \n<b>in</b>
modules/core/classes/GalleryDerivative.class <b>at line</b> 359
(GalleryDerivative::fetchFinalOperations) \n<b>in</b>
modules/core/classes/GalleryDerivative.class <b>at line</b> 274
(GalleryDerivative::_rebuildCache) \n<b>in</b>
modules/core/classes/GalleryDerivativeImage.class <b>at
line</b> 153 (GalleryDerivative::rebuildCache)
\n<b>in</b>
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class
<b>at line</b> 844 (GalleryDerivativeImage::rebuildCache)
\n<b>in</b> modules/core/classes/GalleryCoreApi.class
<b>at line</b> 997
(GalleryDerivativeHelper_advanced::rebuildCache) \n<b>in</b>
modules/core/classes/helpers/GalleryDerivativeHelper_simple.class
<b>at line</b> 50 (GalleryCoreApi::rebuildDerivativeCache)
\n<b>in</b> modules/core/classes/GalleryCoreApi.class
<b>at line</b> 984
(GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
\n<b>in</b> modules/core/classes/BuildDerivativesTask.class
<b>at line</b> 113
(GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
\n<b>in</b> modules/core/AdminMaintenance.inc <b>at
line</b> 128 (BuildDerivativesTask::run) \n<b>in</b> ???
<b>at line</b> 0 (AdminMaintenanceController::runTask)
\n<b>in</b> modules/core/classes/GalleryTemplateAdapter.class
<b>at line</b> 1092\n<b>in</b>
/home/cccds/g2data/smarty/templates_c/%%626616196/matrix/%%3A^3A8^3A818B59%%theme.tpl.php
<b>at line</b> 75 (GalleryTemplateAdapter::trailer)
\n<b>in</b> lib/smarty/Smarty.class.php <b>at
line</b> 1255\n<b>in</b>
modules/core/classes/GallerySmarty.class <b>at line</b> 61
(Smarty::fetch) \n<b>in</b>
modules/core/classes/GalleryTemplate.class <b>at line</b> 241
(GallerySmarty::fetch) \n<b>in</b> main.php <b>at
line</b> 506 (GalleryTemplate::display) \n<b>in</b>
main.php <b>at line</b> 104\n<b>in</b> main.php
<b>at line</b> 88\n<b>in</b> main.php <b>at
line</b> 3\n\nRequest variables: Array\n(\n [controller] =>
core.AdminMaintenance\n [form] => Array\n (\n
[action] => Array\n (\n [runTask]
=> 1\n )\n\n )\n\n [taskId] =>
BuildDerivativesTask\n [authToken] => 9dad85e89bea\n)\n',
g_location='http://www.cccds.org/gallery/main.php?g2_controller=core.AdminMaintenance&g2_form%5Baction%5D%5BrunTask%5D=1&g2_taskId=BuildDerivativesTask&g2_authToken=9dad85e89bea',
g_client='71.93.35.174', g_timestamp=1233072433,
g_referer='http://www.cccds.org/gallery/main.php?g2_view=core.SiteAdmin&g2_subView=core.AdminMaintenance'
WHERE g_id=636
This continues on for a LONG time, but I'm sure all this has a common cause.
Back on the maintenance page, I see this:
Build all thumbnails/resizes Tue 27 Jan 2009 08:14:11 AM PST
Success
run now
Ensure data files for all derivatives (thumbnails, etc) have been built and rebuild broken ones.
Last Run Details:
Checked 2993 items
2993 items failed
My system information is:
Gallery URL = http://www.cccds.org/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 apache2handler
Webserver = Apache/2.2.9 (Fedora)
Database = mysql 5.0.51a, lock.system=flock
Toolkits = Dcraw, Gd, NetPBM, ArchiveUpload, Swf, Ffmpeg, Exif
Acceleration = none, none
Operating system = Linux louise.hallikainen.org 2.6.25-14.fc9.x86_64 #1 SMP Thu May 1 06:06:21 EDT 2008 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Rows in GalleryAccessMap table = 74
Rows in GalleryAccessSubscriberMap table = 618
Rows in GalleryUser table = 12
Rows in GalleryItem table = 617
Rows in GalleryAlbumItem table = 21
Rows in GalleryCacheMap table = 0
So... What simple thing am I doing wrong?
THANKS!
Harold