Hey guys,
New at this and a client just uploaded some pics from a NEW camera (might be a hint) and now there are no thumbnails. When I click on the "thumbnail" I get the larger sized pic.
Using Gallery 2.3 and ImageMagick:
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.8 cgi-fcgi
Webserver = Apache
Database = mysqlt 5.1.56-log, lock.system=flock
Toolkits = LinkItemToolkit, jpegtran, ImageMagick, Thumbnail
Acceleration = none, none
Operating system = Linux hp37.hostpapa.com 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1
Rows in GalleryAccessMap table = 47
Rows in GalleryAccessSubscriberMap table = 597
Rows in GalleryUser table = 2
Rows in GalleryItem table = 595
Rows in GalleryAlbumItem table = 8
Rows in GalleryCacheMap table = 0
I think the new camera's picture size is too big??? anyways, when I click on test settings in ImageMagick, I get errors:
is_dir(/usr/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(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/identify)
getParameter exec.beNice for core plugin
Executing: ( "/usr/bin/identify"
"/home/nort8180/public_html/fotoshop/workgal/modules/imagemagick/data/test.gif"
) 2>"/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgHZ89g5"
getParameter exec.expectedStatus for core plugin
file_exists(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgHZ89g5)
filesize(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgHZ89g5)
unlink(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgHZ89g5)
Regular Output:
/home/nort8180/public_html/fotoshop/workgal/modules/imagemagick/data/test.gif
GIF 50x50 50x50+0+0 8-bit PseudoClass 8c 232B 0.000u 0:00.000
Error Output:
Status: 0 (expected 0)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/, imgk_)
file_exists(/usr/bin/convert)
Executing: ( "/usr/bin/convert" "-size" "200x200" "-geometry" "200x200"
"/home/nort8180/public_html/fotoshop/workgal/modules/imagemagick/data/test.gif"
"gif:/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/imgk_jmudmW" )
2>"/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdYohrN"
file_exists(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdYohrN)
filesize(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdYohrN)
fopen(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdYohrN,
r, 0)
feof(Resource id #90)
fgets(Resource id #90, 4096)
feof(Resource id #90)
fgets(Resource id #90, 4096)
feof(Resource id #90)
fgets(Resource id #90, 4096)
feof(Resource id #90)
fclose(Resource id #90)
unlink(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdYohrN)
Regular Output:
Error Output:
libgomp: Thread creation failed: Cannot allocate memory
Status: 1 (expected 0)
unlink(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/imgk_jmudmW)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/combine)
file_exists(/usr/bin/composite)
is_executable(/usr/bin/composite)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/, imgk_)
Executing: ( "/usr/bin/composite" "-geometry" "+0+0"
"/home/nort8180/public_html/fotoshop/workgal/modules/imagemagick/data/test.jpg"
"/home/nort8180/public_html/fotoshop/workgal/modules/imagemagick/data/test.gif"
"gif:/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/imgk_VDYhyE" )
2>"/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdo1iFv"
file_exists(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdo1iFv)
filesize(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdo1iFv)
fopen(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdo1iFv,
r, 0)
feof(Resource id #92)
fgets(Resource id #92, 4096)
feof(Resource id #92)
fgets(Resource id #92, 4096)
feof(Resource id #92)
fgets(Resource id #92, 4096)
feof(Resource id #92)
fclose(Resource id #92)
unlink(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/g2dbgdo1iFv)
Regular Output:
Error Output:
libgomp: Thread creation failed: Cannot allocate memory
Status: 1 (expected 0)
unlink(/home/nort8180/public_html/fotoshop/workgal/g2data/tmp/imgk_VDYhyE)
chdir(/home/nort8180/public_html/fotoshop/workgal)
I think the problem is: libgomp: Thread creation failed: Cannot allocate memory
I've read that you can change a setting in the includes/config.php file:
ini_set('memory_limit', -1);
but I can't find this config.php file...
Will this fix my issue here? I need help...
Thanks! 
Posts: 7890
That will allocate more memory to PHP, but IM is running in its own thread, so that would not benefit.
These new cameras w/ 8, 12, or 16 megapixel images are ridiculously huge for the web.
Problem is, telling a client they cannot use their shiny new camera at such high settings won't fly.
Possible solutions:
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7890
oh, and config.php is located: /home/nort8180/public_html/fotoshop/workgal/config.php
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7
Thanks for your help!
You mention using GD instead. I saw that suggestion somewhere before, and it seemed like an easy switch to make.
Would switching to GD change anything for the end user? Would the web page that displays the thumbs/pictures be any different? I know the owner of the store uploads his pictures using some kind of wizard... would this change?
Also, how easy is it to change over to GD? is it just a matter of changing a config file? Is there somewhere that has instructions to perform what I need to do? This is a 'live' website and I don't want to mess everything up. I'd like the changes that I make be seamless to everyone.
Thanks!
Guy
Posts: 7
OK, I think I managed to switch to GD. It created 1 new thumbnail, but is failing on the rest again...
This is what I have in my event logs:
Error (ERROR_TOOLKIT_FAILURE)in modules/gd/classes/GdToolkit.class at line 487 (GalleryCoreApi::error)
in modules/gd/classes/GdToolkit.class at line 362 (GdToolkit::_getImageResource)
in modules/core/classes/GalleryDerivative.class at line 452 (GdToolkit::performOperation)
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 g2data/smarty/templates_c/%%3755207390/carbon/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 143 (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
Request variables: Array
(
[controller] => core.AdminMaintenance
[form] => Array
(
[action] => Array
(
[runTask] => 1
)
)
[taskId] => BuildDerivativesTask
[authToken] => 9796c3ee642c
)
What is going on???
Posts: 7
What's interesting is that if I make a new album and add pictures from another album that has thumbnails, I still don't get thumbnails.
I run "Maintenance - Build all thumbnails/resizes" and I get the error above.
My brain hurts from trying to play with this.. lol
I need help...
Guy
Posts: 7890
how big are these images? HxW and filesize?
can you upload a reasonably sized image?
is this shared hosting?
You have php 5.3.8, is this gallery 2.3.1 or just 2.3.0?
php 5.3.x requires 2.3.1
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 7
It doesn't seem to have anything to do with size because if I take a photo that has been in an album from his older camera, it won't give me the thumbnail either. So it's not just new pics from the new camera, it's existing pics that have thumbnails because they were added a long time ago, but when I add them now, no thumbnail.
I'm not sure what version of gallery I have.. I know it's 2.3.?????? how can I check this?
Also, I just downloaded gallery 2.3.1 and I'm running a test on that website. I'm adding the same content/pictures to the test one to see if it works out.
If I get everything working ok on the test one, I might just replace the "live" one with the test one...
One question though if I go this route... the "live" one has been customized (colors, changed the "gallery" picture in the top left corner with the company logo... Is this info in a config file somewhere? If so, can I just copy that config file to the test gallery and it will look the same? Or am I just better to manually edit the test gallery's config file to match the "live" version? What other options are in that config file? I don't want to carry over the same problems I'm currently having with the "live" one to my test one.
Thanks for the help so far!
Guy
Posts: 7890
just copy the theme being used on the live site to the test site.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 12
Take a look at http://gallery.menalto.com/node/103689. It's the same issue, with the same hosting company.
James Holdcroft
Posts: 7
Thanks Holdcroft, yes, it looks like the same issue! and yes, I'm using hostpapa.
My solution was to install a new copy of Gallery2, and rebuild the gallery from scratch. Luckily the gallery isn't too big or complicated... but nice to know I wasn't the only one having this issue.
Guy