Error when adding a file

I think that something is wrong when I try to index files on upload. This is what I got just now:

Omeka has encountered an error

Omeka_File_Derivative_Exception
Failed to execute command: .

#0 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/File/Derivative/Image/Creator.php(232): Omeka_File_Derivative_Image_Creator::executeCommand(' ', NULL, NULL, NULL)
#1 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/File/Derivative/Image/Creator.php(215): Omeka_File_Derivative_Image_Creator->_isIdentifiable('/tmp/9464a57ee3...')
#2 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/File/Derivative/Image/Creator.php(86): Omeka_File_Derivative_Image_Creator->_isDerivable('/tmp/9464a57ee3...')
#3 /home/xxxxxx/public_html/om/omeka-2.1.4/application/models/File.php(362): Omeka_File_Derivative_Image_Creator->create('/tmp/9464a57ee3...', '9464a57ee3111a5...', 'application/pdf')
#4 /home/xxxxxx/public_html/om/omeka-2.1.4/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#5 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#6 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#7 /home/xxxxxx/public_html/om/omeka-2.1.4/application/models/File.php(209): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#8 [internal function]: File->afterSave(Array)
#9 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#10 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#11 /home/xxxxxx/public_html/om/omeka-2.1.4/application/models/Item.php(322): Omeka_Record_AbstractRecord->save()
#12 /home/xxxxxx/public_html/om/omeka-2.1.4/application/models/Item.php(235): Item->saveFiles()
#13 [internal function]: Item->afterSave(Array)
#14 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#15 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#16 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/Controller/AbstractActionController.php(144): Omeka_Record_AbstractRecord->save(false)
#17 /home/xxxxxx/public_html/om/omeka-2.1.4/application/controllers/ItemsController.php(149): Omeka_Controller_AbstractActionController->addAction()
#18 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Zend/Controller/Action.php(516): ItemsController->addAction()
#19 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('addAction')
#20 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#21 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#22 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#23 /home/xxxxxx/public_html/om/omeka-2.1.4/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#24 /home/xxxxxx/public_html/om/omeka-2.1.4/admin/index.php(28): Omeka_Application->run()
#25 {main}

Any thoughts or advice?

I think this is the same problem as your ImageMagick path problem.

Omeka uses proc_open to run the ImageMagick convert command, both with using the "Test" button and when actually making thumbnails for a file.

Check with your host about whether they're blocking proc_open.

Hi,

On some shared hosts, proc_open is not available, so you may need to replace each proc_open() of Omeka Core by exec().

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management