Error uploading files in items "Failed to execute command"

Dear all,

I have a problem uploading files in items and there’s the following problem report. I would be very grateful, if anyone could help me with that. I’m new in using OMEKA and have no clue, how to solve the problem. My ImageMagick path is /usr/bin.

Omeka_File_Derivative_Exception: Failed to execute command: ‘/usr/bin/convert’ ‘/home/clients/2a8d1a13be29853f9bcece3709242f39/tmp/0b2422784d05ad489a7aa5749ba6f208.png[0]’ -auto-orient -background white +repage -flatten -thumbnail ‘800x800>’ ‘/home/clients/2a8d1a13be29853f9bcece3709242f39/tmp/fullsize_0b2422784d05ad489a7aa5749ba6f208.jpg’. in /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php:210
Stack trace:
#0 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php(48): Omeka_File_Derivative_Strategy_ExternalImageMagick::executeCommand(‘’/usr/bin/conve…‘, NULL, NULL, NULL)
#1 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/File/Derivative/Creator.php(76): Omeka_File_Derivative_Strategy_ExternalImageMagick->createImage(’/home/clients/2…‘, ‘/home/clients/2…’, ‘fullsize’, 800, ‘image/png’)
#2 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/models/File.php(358): Omeka_File_Derivative_Creator->create(’/home/clients/2…‘, ‘0b2422784d05ad4…’, ‘image/png’)
#3 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#4 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#5 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/Job/Dispatcher/Default.php(137): Omeka_Job_Dispatcher_Adapter_Synchronous->send(’{“className”:"J…', Array)
#6 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/models/File.php(205): Omeka_Job_Dispatcher_Default->send(‘Job_FileProcess…’, Array)
#7 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/Record/AbstractRecord.php(280): File->afterSave(Array)
#8 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/Record/AbstractRecord.php(548): Omeka_Record_AbstractRecord->runCallbacks(‘afterSave’, Array)
#9 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/models/Item.php(338): Omeka_Record_AbstractRecord->save()
#10 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/models/Item.php(251): Item->saveFiles()
#11 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/Record/AbstractRecord.php(280): Item->afterSave(Array)
#12 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/Record/AbstractRecord.php(548): Omeka_Record_AbstractRecord->runCallbacks(‘afterSave’, Array)
#13 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/Controller/AbstractActionController.php(188): Omeka_Record_AbstractRecord->save(false)
#14 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/controllers/ItemsController.php(148): Omeka_Controller_AbstractActionController->addAction()
#15 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Zend/Controller/Action.php(516): ItemsController->addAction()
#16 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘addAction’)
#17 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#19 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#20 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#21 /home/clients/2a8d1a13be29853f9bcece3709242f39/sites/glandorf.nghm-uos.de/admin/index.php(28): Omeka_Application->run()
#22 {main}

Thank you,
Maik

This error message happens when attempting to run the command failed immediately.

The immediate possibilities that jump to mind are: first, that /usr/bin/convert isn’t really the proper path for your server, and second, that your host has disabled the proc_open function we use to run the ImageMagick command.

Hi, thank you for your help. It was the second idea. I have enabled the proc_open function on the hosting server and now it works.

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.