Unable to upload new photos

John_Stewart

Joined: 2010-06-22
Posts: 26
Posted: Wed, 2013-08-28 10:57

Hi all,

hopefully someone can help me here. My website was recently migrated from one server to another, which is now running on a virtual machine. This move was forced on me by my hosting company, as they are getting rid of their oldest servers.

All appeared to be be working fine, with the performance much better than it has ever been, but when it came to adding some new photos I get the following error:

BTC30003.jpg - unable to process this photo.

I am able to create a new album, which suggests that the database permissions are fine. Looking in the directory structure, I see the new album is created in the resizes and thumbs directories, so the underlying file permissions seem fine.

The photo itself gets uploaded correctly into the correct var/albums/... subdirectory for the new album, but no resized or thumbnail image is created.

Looking at the log file I can see the following, which suggests there is something wrong with the Imagemagick configuration

2013-08-28 11:38:19 +01:00 --- error: Caught exception rebuilding image: BTC30003
The ImageMagick directory specified does not contain a required program, convert
#0 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/system/libraries/Image.php(123): Image_ImageMagick_Driver->__construct(Array)
#1 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/system/libraries/Image.php(56): Image_Core->__construct('/vhost/vhost13/...', NULL)
#2 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/modules/gallery/helpers/gallery_graphics.php(65): Image_Core::factory('/vhost/vhost13/...')
#3 [internal function]: gallery_graphics_Core::resize('/vhost/vhost13/...', '/vhost/vhost13/...', Array, Object(Item_Model))
#4 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/modules/gallery/helpers/graphics.php(173): call_user_func_array('gallery_graphic...', Array)
#5 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/modules/gallery/helpers/gallery_event.php(84): graphics_Core::generate(Object(Item_Model))
#6 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/modules/gallery/helpers/module.php(378): gallery_event_Core::item_created(Object(Item_Model))
#7 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/modules/gallery/models/item.php(403): module_Core::event('item_created', Object(Item_Model))
#8 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/modules/gallery/controllers/uploader.php(74): Item_Model_Core->save()
#9 [internal function]: Uploader_Controller->add_photo('21794')
#10 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Uploader_Controller), Array)
#11 [internal function]: Kohana_Core::instance(NULL)
#12 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#13 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#14 /vhost/vhost13/f/l/a/flatoutphotography.com/www/gallery3/index.php(102): require('/vhost/vhost13/...')
#15 {main}

My hosting company is not being that helpful, saying they can't see anythign wrong at their end, and it must be a problem with the gallery software :-(

Any ideas would be very much appreciated!!

John

 
MikeLFD

Joined: 2013-03-22
Posts: 79
Posted: Wed, 2013-08-28 11:34

Right off the top of my head I see this "The ImageMagick directory specified does not contain a required program, convert" as an issue.
Does Admin/Settings/Graphics give you any other choices (i.e. GD Library or Graphics Magick)?
If it does, try one of these other options and see if this fixes the problem. If not, I'd send the above log to your host and ask them to install all the necessary files for Image magic.
You could also try a fresh install (in a different directory) of Gallery to see if the move corrupted your current installation.

Hope these suggestions help.
Good Luck
Mike

 
John_Stewart

Joined: 2010-06-22
Posts: 26
Posted: Wed, 2013-08-28 11:45

Thanks Mike,

Admin/Setting/Graphics shows ImageMagick as requiring exec function, so have reported this to my ISP. Hopefully soemthing they can fix quickly.

John