[SOLVED] Thumbnails not displaying following server migration

amy_nia

Joined: 2013-10-23
Posts: 3
Posted: Thu, 2013-10-24 02:47

I have run into trouble when I migrated Gallery2 from one hosting company to another. My thumbnails and resizes don't display. I have cleared the cache and rebuilt the thumbnails. I receive a pile of errors when the thumbnails are rebuilt that I can't easily interpret:

Quote:
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/cache/entity/0/1/13.inc)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/cache/derivative/0/1/13.dat)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/cache/entity/0/1/12.inc)
getParameter lock.system for core plugin
fopen(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/locks/0/1/13,
wb+, 0)
flock(Resource id #118, 6, )
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/cache/derivative/0/1)
is_dir(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/cache/derivative/0/1)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/modules/core/classes/helpers/../../../../modules/archiveupload/classes/ArchiveExtractToolkit.class)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/modules/core/classes/helpers/../../../../modules/ffmpeg/classes/FfmpegToolkit.class)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/modules/core/classes/helpers/../../../../modules/netpbm/classes/NetPbmToolkit.class)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/modules/core/classes/helpers/../../../../modules/gd/classes/GdToolkit.class)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/modules/core/classes/helpers/../../../../modules/imagemagick/classes/ImageMagickToolkit.class)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/cache/entity/0/0/10.inc)
getParameter removeMetaDataSwitch for imagemagick plugin
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/cache/module/imagemagick/0/0/0.inc)
tempnam(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/,
imgk_)
getParameter path for imagemagick plugin
getParameter binary for imagemagick plugin
getParameter jpegQuality for imagemagick plugin
getcwd()
chdir(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/)
Executing: ( "/usr/bin/convert" "-quality" "75" "-size" "150x150"
"-geometry" "150x150" "-strip"
"/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/albums/1998hiking/woak1.jpg"
"/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/imgk_zcLDLM"
)
2>/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/g2dbgbZv45m
getParameter exec.expectedStatus for core plugin
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/g2dbgbZv45m)
filesize(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/g2dbgbZv45m)
unlink(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/g2dbgbZv45m)
Regular Output:
Error Output:
Status: (expected 0)
unlink(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/imgk_zcLDLM)
chdir(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2)
realpath(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/modules/core/classes/../../../)

Error (ERROR_TOOLKIT_FAILURE)in
modules/imagemagick/classes/ImageMagickToolkit.class at line 618
(GalleryStatus::error)
in modules/imagemagick/classes/ImageMagickToolkit.class at
line 369 (ImageMagickToolkit::_transformImage)
in modules/core/classes/GalleryDerivative.class at line 484
(ImageMagickToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 313
(GalleryDerivative_core::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line
175 (GalleryDerivative_core::rebuildCache)
in
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at
line 703 (GalleryDerivativeImage_core::rebuildCache)
in modules/core/classes/GalleryCoreApi.class at line 843
(GalleryDerivativeHelper_advanced::rebuildCache)
in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class
at line 66 (GalleryCoreApi::rebuildDerivativeCache)
in modules/core/classes/GalleryCoreApi.class at line 830
(GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
in modules/core/classes/BuildDerivativesTask.class at line 92
(GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in modules/core/AdminMaintenance.inc at line 104
(BuildDerivativesTask::run)
in ??? at line 0 (AdminMaintenanceController::runTask)
in modules/core/classes/GalleryTemplateAdapter.class at line
762
in
g2data/smarty/templates_c/%%1212600500/%%3A^3A8^3A818B59%%theme.tpl.php
at line 146 (GalleryTemplateAdapter::trailer)
in lib/smarty/Smarty.class.php at line 1251
in modules/core/classes/GallerySmarty.class at line 90
(Smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 228
(GallerySmarty::fetch)
in main.php at line 318 (GalleryTemplate::display)
in main.php at line 87
in main.php at line 80

Help! And many thanks.


Gallery version = 2.0.1 core 1.0.0.1
PHP version = 5.4.17-pl0-gentoo cgi-fcgi
Webserver = Apache/2.2.22 (Unix) FrontPage/5.0.2.2635
Database = mysql 5.0.91
Toolkits = ArchiveUpload, Ffmpeg, NetPBM, Gd, ImageMagick
Operating system = Linux atl4vux133 3.2.45-netsol #1 SMP Wed Sep 11 18:53:35 UTC 2013 x86_64
Browser = Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36

 
amy_nia

Joined: 2013-10-23
Posts: 3
Posted: Thu, 2013-10-24 11:25

I have some additional information, but no solution yet. I believe Gallery2 doesn't know where the Imagemagick binary files are. I went into Site Admin > Imagemagick and changed the path to "/usr/local/bin/". I tested the settings, and got errors:

Quote:
Binary Name Pass/Fail
identify
Failed
Error messages:
Problem executing binary:
File does not exist
identify
Failed
Error messages:
Problem executing binary:
File does not exist
convert
Failed
Error messages:
Problem executing binary:
File does not exist
composite
Failed
Error messages:
Problem executing binary:

The debugging output told me this:

Quote:
is_dir(/usr/local/bin/)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/)
file_exists(/usr/local/bin/gm)
file_exists(/usr/local/bin/identify)
file_exists(/usr/local/bin/gm)
tempnam(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/,
imgk_)
file_exists(/usr/local/bin/convert)
unlink(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/imgk_I0ljZX)
file_exists(/usr/local/bin/gm)
file_exists(/usr/local/bin/combine)
file_exists(/usr/local/bin/composite)
file_exists(/usr/local/bin/gm)
tempnam(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/,
imgk_)
Executing: ( "/usr/local/bin/composite" "-geometry" "+0+0"
"/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/modules/imagemagick/data/test.jpg"
"/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/modules/imagemagick/data/test.gif"
"/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/imgk_mQrRpb"
)
2>/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/g2dbg0XVuQo
getParameter exec.expectedStatus for core plugin
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/g2dbg0XVuQo)
filesize(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/g2dbg0XVuQo)
unlink(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/g2dbg0XVuQo)
Regular Output:
Error Output:
Status: (expected 0)
file_exists(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/imgk_mQrRpb)
unlink(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2/g2data/tmp/imgk_mQrRpb)
chdir(/data/23/3/25/35/3188361/user/3561178/htdocs/gallery2)

I am still stumped. Any help would be greatly appreciated!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-10-24 23:59
Quote:
Binary Name Pass/Fail
identify
Failed
Error messages:
Problem executing binary:
File does not exist
identify
Failed
Error messages:
Problem executing binary:
File does not exist
convert
Failed
Error messages:
Problem executing binary:
File does not exist
composite
Failed
Error messages:
Problem executing binary:

try a toolkit that works.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
amy_nia

Joined: 2013-10-23
Posts: 3
Posted: Tue, 2013-11-05 15:53

Just to close the loop on this, my site is now working. I ended up upgrading my version of Gallery2, switching to use the GD toolkit, increasing memory settings, and probably a ton more than I can no longer remember. I may have viewed every single document and every single Forum post, but I got it done.

My URL is here: http://www.washingtonwomenoutdoors.org/gallery2/main.php.

Thanks for everything!