Error on uploading and saving any data


#1

Hi, Had a generic error on saving an item (just text information) and followed through with finding in error log. The following is from error log. Any ideas on what is causing and how to fix? I’m presuming this is a Server issue that I need to contact our host about but wanted to check with the experts here. I don’t have much knowledge of this application as it was inherited. Many Thanks

2018-12-03T09:24:06+00:00 ERR (3): Zend_File_Transfer_Exception: The given destination is not writable in /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Zend/File/Transfer/Adapter/Abstract.php:1043
Stack trace:
#0 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Omeka/File/Ingest/Upload.php(35): Zend_File_Transfer_Adapter_Abstract->setDestination(’/tmp’)
#1 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Omeka/File/Ingest/Upload.php(132): Omeka_File_Ingest_Upload->_buildAdapter()
#2 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/models/Builder/Item.php(235): Omeka_File_Ingest_Upload->addValidator(Object(Omeka_Validate_File_Extension))
#3 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/models/Builder/Item.php(197): Builder_Item->_addIngestValidators(Object(Omeka_File_Ingest_Upload))
#4 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/globals.php(567): Builder_Item->addFiles(‘Upload’, ‘file’, Array)
#5 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/models/Item.php(321): insert_files_for_item(Object(Item), ‘Upload’, ‘file’, Array)
#6 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/models/Item.php(231): Item->_uploadFiles()
#7 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Omeka/Record/AbstractRecord.php(280): Item->beforeSave(Array)
#8 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Omeka/Record/AbstractRecord.php(529): Omeka_Record_AbstractRecord->runCallbacks(‘beforeSave’, Array)
#9 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Omeka/Controller/AbstractActionController.php(188): Omeka_Record_AbstractRecord->save(false)
#10 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/controllers/ItemsController.php(148): Omeka_Controller_AbstractActionController->addAction()
#11 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Zend/Controller/Action.php(516): ItemsController->addAction()
#12 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘addAction’)
#13 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#14 /var/www/vhosts/wokingham-tc.gov.uk/httpdocs/museum/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#15 /var/www/vhosts/wokingham-t

Thanks


#2

The error is telling you that the /tmp folder is not writable.

You need to either change the permissions of /tmp so its writable or change Omeka’s configuration so the temp directory is some other folder the web server user does have permission to write to.