My system got pretty confused between the Gallery install I originally had and that which came with a Fedora upgrade. I've uninstalled the one that came with Fedora and am now using my original install. It is working well for SOME multisites, but the thumbnail rebuild blows up on another.
Here's a multisite that works: http://louise.hallikainen.org/BroadcastHistory/gallery2/main.php
Here's the one I'm really having thumbnail problems with: http://www.kcpralumni.org/gallery/main.php
Below is the install info and SOME of the error messages. I did not include them all since there are a LOT of them. I'm hoping someone can see one problem that is causing all of them.
THANKS!
Harold
Gallery2 Info================
Gallery URL = http://www.kcpralumni.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.9 apache2handler
Webserver = Apache/2.2.13 (Fedora)
Database = mysqli 5.1.37, lock.system=flock
Toolkits = Swf, ArchiveUpload, Ffmpeg, NetPBM, Gd, ImageMagick
Acceleration = none, none
Operating system = Linux louise.hallikainen.org 2.6.30.5-43.fc11.x86_64 #1 SMP Thu Aug 27 21:39:52 EDT 2009 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009090905 Fedora/3.0.14-1.fc10 Firefox/3.0.14
Rows in GalleryAccessMap table = 120
Rows in GalleryAccessSubscriberMap table = 684
Rows in GalleryUser table = 15
Rows in GalleryItem table = 682
Rows in GalleryAlbumItem table = 40
Rows in GalleryCacheMap table = 0
========================================
Partial debug output for failed items in thumbnail rebuild:
file_exists(/home/jpeek/g2data/cache/entity/2/2/2254.inc)
file_exists(/home/jpeek/g2data/cache/derivative/2/2/2254.dat)
file_exists(/home/jpeek/g2data/cache/entity/2/2/2252.inc)
getParameter lock.system for core plugin
fopen(/home/jpeek/g2data/locks/2254, wb+, 0)
flock(Resource id #104, 6, )
(mysqli): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (2254)
(mysqli): 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
(mysqli): 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
(2254) 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/jpeek/g2data/cache/derivative/2/2)
is_dir(/home/jpeek/g2data/cache/derivative/2/2)
file_exists(/home/harold/public_html/gallery2/modules/swf/classes/SwfToolkit.class)
realpath(/home/harold/public_html/gallery2/modules/core/classes/../../../)
realpath(/home/jpeek/public_html/gallery/)
(mysqli): SET NAMES "utf8"
(mysqli): update g2_SequenceEventLog set id=LAST_INSERT_ID(id+1);
(mysqli): 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/jpeek/g2data/smarty/templates_c/%%1683007610/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] => 58f3ccb64dd3\n)\n',
g_location='http://www.kcpralumni.org/gallery/main.php?g2_controller=core.AdminMaintenance&g2_form%5Baction%5D%5BrunTask%5D=1&g2_taskId=BuildDerivativesTask&g2_authToken=58f3ccb64dd3',
g_client='192.168.1.1', g_timestamp=1255906674,
g_referer='http://www.kcpralumni.org/gallery/main.php?g2_view=core.SiteAdmin&g2_subView=core.AdminMaintenance'
WHERE g_id=492
realpath(/home/harold/public_html/gallery2/modules/core/classes/../../../)
realpath(/home/jpeek/public_html/gallery/)
Error (ERROR_BAD_PATH) : Invalid path:
modules/swf/classes/SwfToolkit.class in
modules/core/classes/helpers/GalleryFactoryHelper_simple.class at
line 171 (GalleryCoreApi::error)
in modules/core/classes/helpers/GalleryFactoryHelper_simple.class
at line 201 (GalleryFactoryHelper_simple::newInstance)
in modules/core/classes/GalleryCoreApi.class at line 175
(GalleryFactoryHelper_simple::newInstanceById)
in
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at
line 551 (GalleryCoreApi::newFactoryInstanceById)
in modules/core/classes/GalleryCoreApi.class at line 1104
(GalleryDerivativeHelper_advanced::mergeOperations)
in modules/core/classes/GalleryDerivative.class at line 583
(GalleryCoreApi::mergeDerivativeOperations)
in modules/core/classes/GalleryDerivative.class at line 359
(GalleryDerivative::fetchFinalOperations)
in modules/core/classes/GalleryDerivative.class at line 274
(GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line
153 (GalleryDerivative::rebuildCache)
in
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at
line 844 (GalleryDerivativeImage::rebuildCache)
in modules/core/classes/GalleryCoreApi.class at line 997
(GalleryDerivativeHelper_advanced::rebuildCache)
in
modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at
line 50 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 984
(GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/classes/BuildDerivativesTask.class at line
113 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in modules/core/AdminMaintenance.inc at line 128
(BuildDerivativesTask::run)
in ??? at line 0 (AdminMaintenanceController::runTask)
in modules/core/classes/GalleryTemplateAdapter.class at line
1092
in
/home/jpeek/g2data/smarty/templates_c/%%1683007610/matrix/%%3A^3A8^3A818B59%%theme.tpl.php
at line 75 (GalleryTemplateAdapter::trailer)
in lib/smarty/Smarty.class.php at line 1255
in modules/core/classes/GallerySmarty.class at line 61
(Smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 241
(GallerySmarty::fetch)
in main.php at line 506 (GalleryTemplate::display)
in main.php at line 104
in main.php at line 88
in main.php at line 3
copy(/home/harold/public_html/gallery2/modules/core/classes/../data/broken-image.gif,
/home/jpeek/g2data/cache/derivative/2/2/2254.dat)
getParameter permissions.file for core plugin
getParameter permissions.directory for core plugin
file_exists(/home/jpeek/g2data/cache/module/_all/0/0/GalleryMimeTypeHelper_mimeData.inc)
file_exists(/home/jpeek/g2data/cache/derivative/2/2/2254.dat)
filesize(/home/jpeek/g2data/cache/derivative/2/2/2254.dat)
(mysqli):
SELECT
g2_Derivative.g_id
FROM
g2_Derivative
WHERE
g2_Derivative.g_derivativeSourceId IN (2254)
Posts: 22892
Disable the square thumbnail module.
Test the image toolkits you have activated.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 33
Thanks for the response! I do not have square thumbnails enabled. Image toolkits enabled are Dcraw, Ffmpeg, Gd, ImageMagick, NetPBM.
Attempting to rebuild thumbnails at http://www.kcpralumni.org/gallery/main.php generates all those error messages, and no thumbnails.
Rebuilding thumbnails at http://louise.hallikainen.org/BroadcastHistory/gallery2/main.php works fine. They're both working off the same codebase (http://louise.hallikainen.org/gallery2). Both have the same toolkit settings.
As I recall, during install, there's a test of toolkits as they are installed. I don't see an easy way to run the test now, but the fact that it works on other galleries using the same codebase may indicate they are ok.
More ideas?
THANKS!
Harold
Posts: 33
I just found where the image toolkits can be tested. ffmpeg failed, so I disabled it.
Still doesn't generate thumbnails on http://www.kcpralumni.org/gallery/main.php .
THANKS!
Harold
Posts: 22892
verify file integrity:
FAQ: How can I make sure that my installation files are all intact?
Next is to uninstall, reinstall, configure test and activate image toolkits. Start with IM then netPBM then GD as a last resort.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 22892
What where is this swf module?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 33
Hmmm that's interesting! I ran out of time to work on this for this week, so I did an image restore of the hard drive using an image I created Friday night, so I got rid of the mess I created over the weekend. I am back to two copies of gallery2, one in the Fedora install, one that I did before the Fedora upgrade. I'll work on this some more next weekend. The swf module is, I think, something to either allow playing of swf or build thumbnails for swf. I don't see it in the current install, but do see it in a backup. Here it is in my backup:
/home/harold/public_html/gallery2bak/modules/swf/classes/SwfToolkit.class
Maybe that's it?
Thanks for all the help on this! I'll get back on it next weekend, but appreciate any ideas that come up meanwhile.
Harold
Posts: 22892
I would assume so since I have never seen a module of that name before and there is no codex page for it.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 33
So... how do I figure out what's causing this non-existent module to be called? I don't see a plugin listed for it.
Thanks!
Harold
Posts: 22892
Did not know about this module so never even tested it. So... see if you can disable it via:
FAQ: How can I deactivate a module when I am unable to login?
Dave
____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 33
THANKS! That seems to have fixed it on one site. I'm going through the rest of them.
THANKS!!!
Harold