[SOLVED] Unable to create thumbnails

grimbasement

Joined: 2008-04-18
Posts: 4
Posted: Fri, 2009-10-30 18:21

I've been trying to figure out why I'm unable to create thumbs. Here's a bit of background I had the gallery set up since version 1 without an issue until the most recent upgrade when the entire thing just blew up. So I uninstalled gallery moved all the directories to another directory, reinstalled and uploaded all the images using the from local server option. All the pictures transferred but without creating any thumbnails. I checked to make sure if ImageMagick was installed, I also followed the directions in this thread but was unclear what "flag" I was looking for when I looked at the db in phpMyAdmin. I changed a few of the values in the dirivative g_isbroken to one (1) but I don't want to have to change them individually (If it will even work). I also ran the maintenance to rebuild the thumbnails. So if anyone has any idea as to how I can proceed I'd be appreciative. LMK what other logs you'd like to see.

Gallery URL = http://www.grimbasement.com/grimsgallery/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.10 cgi
Webserver = Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.81-community, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, jpegtran, LinkItemToolkit, SquareThumb, Thumbnail
Acceleration = none/0, none/0
Operating system = Linux BOX7.VISTAPAGES.COM 2.6.18-128.4.1.el5 #1 SMP Tue Aug 4 20:23:34 EDT 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0
Rows in GalleryAccessMap table = 31
Rows in GalleryAccessSubscriberMap table = 2271
Rows in GalleryUser table = 2
Rows in GalleryItem table = 2270
Rows in GalleryAlbumItem table = 114
Rows in GalleryCacheMap table = 0

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-10-30 18:33

Let's simplify a few things first:

Quote:
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, jpegtran, LinkItemToolkit, SquareThumb, Thumbnail

Login and go to Site Admin > Plugins, then uninstall the following
ArchiveUpload
Exif
Getid3
jpegtran
LinkItemToolkit
SquareThumb
Thumbnail

Now for image toolkits you should only have ImageMagick installed. Go to Site Admin > ImageMagick and click Test Settings. Does it pass everything?

If so, go to Site Admin > Maintenance and rebuild your thumbnails and resizes.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
grimbasement

Joined: 2008-04-18
Posts: 4
Posted: Fri, 2009-10-30 19:17

I guess I should have pointed out that imagemagick tests all check out fine. I uninstalled all of the plugins except imagemagick and the Linkitem toolkit as I didn't see that on in the list... I ran the thumbnail create script from the maintenance menu and still fails to create the thumbs...

As one might expect the thumbnail error output for a >3000 item gallery is pretty long but here's a bit of it:

Quote:
file_exists(/home/grimtcom/public_html/grimsgallery/g2data/cache/entity/6/2/6223.inc)
file_exists(/home/grimtcom/public_html/grimsgallery/g2data/cache/derivative/6/2/6223.dat)
file_exists(/home/grimtcom/public_html/grimsgallery/g2data/cache/entity/6/2/6222.inc)
getParameter lock.system for core plugin
fopen(/home/grimtcom/public_html/grimsgallery/g2data/locks/6223, wb+, 0)
flock(Resource id #127, 6, )

(mysqlt): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (6223)

(mysqlt): 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

(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
(6223) 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/grimtcom/public_html/grimsgallery/g2data/cache/derivative/6/2)
is_dir(/home/grimtcom/public_html/grimsgallery/g2data/cache/derivative/6/2)
file_exists(/home/grimtcom/public_html/grimsgallery/modules/imagemagick/classes/ImageMagickToolkit.class)
file_exists(/home/grimtcom/public_html/grimsgallery/modules/linkitem/classes/LinkItemToolkit.class)
file_exists(/home/grimtcom/public_html/grimsgallery/g2data/cache/entity/6/1/6187.inc)

(mysqlt):
SELECT
g2_TkOperatnMimeTypeMap.g_toolkitId,
g2_TkOperatnMap.g_outputMimeType
FROM
g2_TkOperatnMap,
g2_TkOperatnMimeTypeMap
WHERE
g2_TkOperatnMap.g_name =
g2_TkOperatnMimeTypeMap.g_operationName
AND
g2_TkOperatnMimeTypeMap.g_mimeType = 'image/jpeg'
AND
g2_TkOperatnMap.g_name = 'thumbnail'
ORDER BY
g2_TkOperatnMimeTypeMap.g_priority ASC

getParameter removeMetaDataSwitch for imagemagick plugin
file_exists(/home/grimtcom/public_html/grimsgallery/g2data/cache/module/imagemagick/0/0/0.inc)
tempnam(/home/grimtcom/public_html/grimsgallery/g2data/tmp/, imgk_)
getParameter path for imagemagick plugin
getParameter binary for imagemagick plugin
getParameter jpegQuality for imagemagick plugin
file_exists(/home/grimtcom/public_html/grimsgallery/g2data/cache/module/_all/0/0/GalleryMimeTypeHelper_mimeData.inc)
getcwd()
chdir(/home/grimtcom/public_html/grimsgallery/g2data/tmp/)
getParameter exec.beNice for core plugin
Executing: ( "/usr/bin/convert" "-quality" "75" "-size" "150x150"
"-geometry" "150x150" "-strip"
"/home/grimtcom/public_html/grimsgallery/g2data/albums/yosemite/bump.JPG"
"jpg:/home/grimtcom/public_html/grimsgallery/g2data/tmp/imgk_w2Ceua" )
2>"/home/grimtcom/public_html/grimsgallery/g2data/tmp/g2dbgRSsJ5a"
getParameter exec.expectedStatus for core plugin
file_exists(/home/grimtcom/public_html/grimsgallery/g2data/tmp/g2dbgRSsJ5a)
filesize(/home/grimtcom/public_html/grimsgallery/g2data/tmp/g2dbgRSsJ5a)
fopen(/home/grimtcom/public_html/grimsgallery/g2data/tmp/g2dbgRSsJ5a, r, 0)
feof(Resource id #144)
fgets(Resource id #144, 4096)
feof(Resource id #144)
fgets(Resource id #144, 4096)
feof(Resource id #144)
fclose(Resource id #144)
unlink(/home/grimtcom/public_html/grimsgallery/g2data/tmp/g2dbgRSsJ5a)
Regular Output:
Error Output:
/usr/bin/convert: Unrecognized option (-strip).
Status: 1 (expected 0)
unlink(/home/grimtcom/public_html/grimsgallery/g2data/tmp/imgk_w2Ceua)
chdir(/home/grimtcom/public_html/grimsgallery)
realpath(/home/grimtcom/public_html/grimsgallery/modules/core/classes/../../../)
realpath(/home/grimtcom/public_html/grimsgallery/)

(mysqlt): SET NAMES "utf8"

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-10-30 20:13
Quote:
/usr/bin/convert: Unrecognized option (-strip).

Under Site Admin > ImageMagick what version does it say is installed?

Looks like it's either an older version that doesn't have this option or it was compiled without it for some reason. Here's what it does:
http://www.imagemagick.org/script/command-line-options.php#strip
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
grimbasement

Joined: 2008-04-18
Posts: 4
Posted: Fri, 2009-10-30 20:20

It's ImageMagick 5.5.1

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-10-31 11:26

That's old, very old. Looks like that was releasesd in Oct of 2002. I'd ask your host if they can upgrade that. 6.5.7-3 is the current version.

Doing a bit more searching, it looks like the strip option was added with the 6.x version.

If not, you could edit a file in Gallery's core. First try your host though. If they won't upgrade the ancient software that has known security holes in it, I'd consider finding a new host. But I can guide you through what to edit so Gallery doesn't use the -strip option.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
grimbasement

Joined: 2008-04-18
Posts: 4
Posted: Mon, 2009-11-02 16:21

I put in a support request to the hosting service and they upgrade the imagemagick module so now everything works. Consider this issue resolved.