How can I fix thumbnail photos which are broken?

joanemar11

Joined: 2012-12-13
Posts: 3
Posted: Thu, 2012-12-13 09:55

I moved hosts and now my thumbnail photos for each album are corrupt. Is there a way for me to fix each one without having to do it manually?

I tried the 'Rebuild Images' tool in the maintenance section, and it did run, but it didn't fix the thumbnails.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Thu, 2012-12-13 14:47

Depends on what the cause is.
Have you also tried the maintenance fix gallery task?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-12-13 17:27

The permissions might not be right on the file system.
A url to the site might help.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Sat, 2013-10-26 13:07

It's been a while since I've had a problem, but I can't get my thumbnails to rebuild. When I try using the Build all thumbnails/resizes in the System Maintenance, it "tries" but then winds up at a blank screen. I have also tried the album-by-album method but without success. The full-size images are there.

All suggestions are greatly appreciated.

Gallery URL = http://www.leslienord.com/memories/main.php
Gallery version = 2.3.2 core 1.3.0.2
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.27 cgi-fcgi
Webserver = Apache
Database = mysqli 5.1.39-log, lock.system=flock
Toolkits = Getid3, jpegtran, LinkItemToolkit, Thumbnail, ArchiveUpload, NetPBM, SquareThumb
Acceleration = none, none
Operating system = Linux reykjavik 2.6.32.45-grsec-2.2.2-r3 #8 SMP Mon Oct 10 13:33:17 PDT 2011 x86_64
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Rows in GalleryAccessMap table = 302
Rows in GalleryAccessSubscriberMap table = 2070
Rows in GalleryUser table = 3
Rows in GalleryItem table = 2068
Rows in GalleryAlbumItem table = 60
Rows in GalleryCacheMap table = 0

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2013-10-26 13:32

Check the Gallery logs; anything in there?

leslienord wrote:
Gallery version = 2.3.2 core 1.3.0.2

You're using G2? (You've posted in the G3 forums.)
http://galleryproject.org/forum

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Sun, 2013-10-27 18:42

Well darn - can one of the moderators move this? Or should I just repost. Yes, this is for G2.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-10-27 19:32
Quote:
Toolkits = Getid3, jpegtran, LinkItemToolkit, Thumbnail, ArchiveUpload, NetPBM, SquareThumb

lets get rid of some unnecessary toolkits.

Getid3 has absolutely no purpose, disable and remove.
Jpegtran - do you need lossless jpeg transformations? disable and remove.
Have you tested netpbm since the move? it may not be supported on the new host. If not disable and remove. Try imagemagick and last resort GD.
squarethumb has known issues w/ some versions of GD, netpbm and IM. You may have to remove this as well.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Sun, 2013-10-27 20:55

Just checked trying to upload - thumbnail and full size is broken. I'm going to switch to imagemagick. Some of these toolkit items are fighting being deleted after deactivation.

Thanks for moving this over to G2 for me.

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Sun, 2013-10-27 21:14

<doh> have I tested netpbm? Just did, it all passed. FYI - this site hasn't been moved in years. Just one day, I noticed all the thumbnails were broken.
NetPBM binary test results

Binary Name Pass/Fail
pnmscale
Passed
pnmcut
Passed
pnmfile
Passed
pnmcomp
Passed
pnmflip
Passed
jpegtopnm
Passed
pnmtojpeg
Passed
giftopnm
Passed
ppmtogif
Passed
ppmquant
Passed
pngtopnm
Passed
pnmtopng
Passed
tifftopnm
Passed
pnmtotiff
Passed
bmptopnm
Passed
ppmtobmp
Passed
ppmquant
Passed

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Sun, 2013-10-27 22:19

And here's the Event Details from when I tried to upload an image:

Error (ERROR_TOOLKIT_FAILURE)in modules/netpbm/classes/NetPbmToolkit.class at line 739 (GalleryCoreApi::error)
in modules/netpbm/classes/NetPbmToolkit.class at line 571 (NetPbmToolkit::_exec)
in modules/netpbm/classes/NetPbmToolkit.class at line 431 (NetPbmToolkit::_transformImage)
in modules/core/classes/GalleryDerivative.class at line 452 (NetPbmToolkit::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/GalleryTheme.class at line 1737 (GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
in themes/siriux/theme.inc at line 99 (GalleryTheme::loadCommonTemplateData)
in modules/core/classes/GalleryTheme.class at line 938 (SiriuxTheme::showPhotoPage)
in modules/core/classes/GalleryView.class at line 301 (GalleryTheme::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in main.php at line 88

Request variables: Array
(
[itemId] => 5661
[view] => core.ShowItem
)

So I'm guessing it's an issue with netpbm...

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Fri, 2014-02-14 14:04

Not enough hours in the day to try and work on my own personal stuff - this still isn't working. Never got a response back on the netpbm - could that be the issue? Should I contact my host?

Many thanks,
Leslie

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2014-02-14 15:23
Quote:
Error (ERROR_TOOLKIT_FAILURE)in modules/netpbm/classes/NetPbmToolkit.class at line 739 (GalleryCoreApi::error)

This is where gallery actually tries to execute the command and it fails.

Have you tried GD?

Also make sure your g2data has proper permissions.
chmod -R 0777 /full/path/to/g2data

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Fri, 2014-06-06 20:49

Yes, I'm still trying to figure this out. The g2data does have the proper permissions. I'm going to try activating GD.

 
leslienord

Joined: 2003-09-08
Posts: 75
Posted: Fri, 2014-06-06 20:52

Well that didn't go well

Quote:
GD version Required Pass/fail
2.1.0 (bundled) 2.0
Failed
This GD version is too old and is not supported by this module! Please upgrade your PHP installation to include the latest GD version.

Is there any way I can just start over with a fresh install of Gallery2 but have it know where the images are already at?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2014-06-06 20:57