Error uploading files

When I try to upload a file, PHP is throwing an error, but I do not know how to decipher it.

Fatal error: Uncaught Error: Call to undefined function exec() in /customers/9/0/4/wattscollection.cards/httpd.www/application/models/File.php:311 Stack trace: #0 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Omeka/File/Ingest/AbstractIngest.php(258): File->setDefaults('/tmp/a1b28e9924...') #1 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Omeka/File/Ingest/AbstractIngest.php(184): Omeka_File_Ingest_AbstractIngest->_createFile('/tmp/a1b28e9924...', 'Front.jpg', Array, NULL) #2 /customers/9/0/4/wattscollection.cards/httpd.www/application/models/Builder/Item.php(201): Omeka_File_Ingest_AbstractIngest->ingest('file') #3 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/globals.php(567): Builder_Item->addFiles('Upload', 'file', Array) #4 /customers/9/0/4/wattscollection.cards/httpd.www/application/models/Item.php(323): insert_files_for_item(Object(Item), 'Upload', 'file', Array) #5 /customers/9/0/4/wattscollection.cards/httpd.www/application/models/Item.php(233): Item->_uploadFiles() #6 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Omeka/Record/AbstractRecord.php(280): Item->beforeSave(Array) #7 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Omeka/Record/AbstractRecord.php(529): Omeka_Record_AbstractRecord->runCallbacks('beforeSave', Array) #8 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Omeka/Controller/AbstractActionController.php(188): Omeka_Record_AbstractRecord->save(false) #9 /customers/9/0/4/wattscollection.cards/httpd.www/application/controllers/ItemsController.php(148): Omeka_Controller_AbstractActionController->addAction() #10 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Zend/Controller/Action.php(516): ItemsController->addAction() #11 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('addAction') #12 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #13 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch() #14 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run() #15 /customers/9/0/4/wattscollection.cards/httpd.www/application/libraries/Omeka/Application.php(73): Zend_Application->run() #16 /customers/9/0/4/wattscollection.cards/httpd.www/admin/index.php(28): Omeka_Application->run() #17 {main} thrown in /customers/9/0/4/wattscollection.cards/httpd.www/application/models/File.php on line 311

Huh, I’ve never seen this exact error but it looks like your host has disabled the exec function that we call when doing uploads. Hosts frequently disable this function in a different way that doesn’t cause an outright error, though.

You’ll probably have to check with your host (or maybe, switch hosts).

It was working before I did the 2.8 update. The only thing I changed was the /application/config/config.ini file , line 285 to fileDerivatives.strategy = "Omeka_File_Derivative_Strategy_GD"

This topic was automatically closed after 250 days. New replies are no longer allowed.