Adding Image Errors

Hello. I’m suddenly had problems getting images to load to newly uploaded files. This is the error log:

2018-10-11T15:30:32+00:00 WARN (4): Omeka_Storage_Adapter_Filesystem: Tried to delete missing file ‘original/035a331d48c763808c9e6f5bbe18d343.jpg’.
2018-10-11T15:30:32+00:00 ERR (3): exception ‘Omeka_File_Derivative_Exception’ with message ‘ImageMagick is not properly configured: invalid directory given for the ImageMagick command!’ in /home/ansdiscog/public_html/omeka/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php:82
Stack trace:
#0 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php(38): Omeka_File_Derivative_Strategy_ExternalImageMagick->_getConvertPath()
#1 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/File/Derivative/Creator.php(76): Omeka_File_Derivative_Strategy_ExternalImageMagick->createImage(’/tmp/035a331d48…’, ‘/tmp/fullsize_0…’, ‘fullsize’, 300, ‘image/jpeg’)
#2 /home/ansdiscog/public_html/omeka/application/models/File.php(356): Omeka_File_Derivative_Creator->create(’/tmp/035a331d48…’, ‘035a331d48c7638…’, ‘image/jpeg’)
#3 /home/ansdiscog/public_html/omeka/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#4 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#5 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Job/Dispatcher/Default.php(137): Omeka_Job_Dispatcher_Adapter_Synchronous->send(’{“className”:"J…’, Array)
#6 /home/ansdiscog/public_html/omeka/application/models/File.php(203): Omeka_Job_Dispatcher_Default->send(‘Job_FileProcess…’, Array)
#7 [internal function]: File->afterSave(Array)
#8 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(280): call_user_func(Array, Array)
#9 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(548): Omeka_Record_AbstractRecord->runCallbacks(‘afterSave’, Array)
#10 /home/ansdiscog/public_html/omeka/application/models/Item.php(336): Omeka_Record_AbstractRecord->save()
#11 /home/ansdiscog/public_html/omeka/application/models/Builder/Item.php(203): Item->saveFiles()
#12 /home/ansdiscog/public_html/omeka/application/libraries/globals.php(567): Builder_Item->addFiles(‘Upload’, ‘file’, Array)
#13 /home/ansdiscog/public_html/omeka/application/models/Item.php(321): insert_files_for_item(Object(Item), ‘Upload’, ‘file’, Array)
#14 /home/ansdiscog/public_html/omeka/application/models/Item.php(231): Item->_uploadFiles()
#15 [internal function]: Item->beforeSave(Array)
#16 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(280): call_user_func(Array, Array)
#17 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(529): Omeka_Record_AbstractRecord->runCallbacks(‘beforeSave’, Array)
#18 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Controller/AbstractActionController.php(229): Omeka_Record_AbstractRecord->save(false)
#19 /home/ansdiscog/public_html/omeka/application/controllers/ItemsController.php(88): Omeka_Controller_AbstractActionController->editAction()
#20 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#21 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘editAction’)
#22 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#23 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#24 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#25 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#26 /home/ansdiscog/public_html/omeka/admin/index.php(28): Omeka_Application->run()
#27 {main}
2018-10-11T15:31:00+00:00 WARN (4): Omeka_Storage_Adapter_Filesystem: Tried to delete missing file ‘original/1f5c08299f6099220168b5a140f3675e.jpg’.
2018-10-11T15:31:00+00:00 ERR (3): exception ‘Omeka_File_Derivative_Exception’ with message ‘ImageMagick is not properly configured: invalid directory given for the ImageMagick command!’ in /home/ansdiscog/public_html/omeka/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php:82
Stack trace:
#0 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php(38): Omeka_File_Derivative_Strategy_ExternalImageMagick->_getConvertPath()
#1 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/File/Derivative/Creator.php(76): Omeka_File_Derivative_Strategy_ExternalImageMagick->createImage(’/tmp/1f5c08299f…’, ‘/tmp/fullsize_1…’, ‘fullsize’, 300, ‘image/jpeg’)
#2 /home/ansdiscog/public_html/omeka/application/models/File.php(356): Omeka_File_Derivative_Creator->create(’/tmp/1f5c08299f…’, ‘1f5c08299f60992…’, ‘image/jpeg’)
#3 /home/ansdiscog/public_html/omeka/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#4 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#5 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Job/Dispatcher/Default.php(137): Omeka_Job_Dispatcher_Adapter_Synchronous->send(’{“className”:"J…’, Array)
#6 /home/ansdiscog/public_html/omeka/application/models/File.php(203): Omeka_Job_Dispatcher_Default->send(‘Job_FileProcess…’, Array)
#7 [internal function]: File->afterSave(Array)
#8 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(280): call_user_func(Array, Array)
#9 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(548): Omeka_Record_AbstractRecord->runCallbacks(‘afterSave’, Array)
#10 /home/ansdiscog/public_html/omeka/application/models/Item.php(336): Omeka_Record_AbstractRecord->save()
#11 /home/ansdiscog/public_html/omeka/application/models/Builder/Item.php(203): Item->saveFiles()
#12 /home/ansdiscog/public_html/omeka/application/libraries/globals.php(567): Builder_Item->addFiles(‘Upload’, ‘file’, Array)
#13 /home/ansdiscog/public_html/omeka/application/models/Item.php(321): insert_files_for_item(Object(Item), ‘Upload’, ‘file’, Array)
#14 /home/ansdiscog/public_html/omeka/application/models/Item.php(231): Item->_uploadFiles()
#15 [internal function]: Item->beforeSave(Array)
#16 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(280): call_user_func(Array, Array)
#17 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Record/AbstractRecord.php(529): Omeka_Record_AbstractRecord->runCallbacks(‘beforeSave’, Array)
#18 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Controller/AbstractActionController.php(229): Omeka_Record_AbstractRecord->save(false)
#19 /home/ansdiscog/public_html/omeka/application/controllers/ItemsController.php(88): Omeka_Controller_AbstractActionController->editAction()
#20 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#21 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘editAction’)
#22 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#23 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#24 /home/ansdiscog/public_html/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#25 /home/ansdiscog/public_html/omeka/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#26 /home/ansdiscog/public_html/omeka/admin/index.php(28): Omeka_Application->run()
#27 {main}

Please let me know what needs to be done. Thanks, Randye J.

The key part of the error is “ImageMagick is not properly configured: invalid directory given for the ImageMagick command!”

If you go to admin/settings/edit-settings in your install, and look at the last entry, what is there for ImageMagick Directory Path? Does it work if you hit “test”?

I’ve attached an image below.

capture

That would be the source of the error. The usual default is /usr/bin but you may need to check with your hosting to find out the correct path.

I made the change you suggested and the test worked, as did the upload of my new image. Since i’ve had that same directory path since the site was created three years ago, I couldn’t figure out why. Then, I remembered that the ISP just moved the site to a new server, and this is the first time I’ve tried to import new images since the move.

Thanks so much for your help!!!

1 Like