Zend_File_Transfer_Exception: The given destination is not writable (3.2.1)

I’m running 3.2.1, was having trouble configuring default theme so I updated Thanks, Roy to latest version(2.7.2) and am getting the following error messages:

Zend_File_Transfer_Exception: The given destination is not writable in /home/thebbrmo/public_html/application/libraries/Zend/File/Transfer/Adapter/Abstract.php:1043
Stack trace:
#0 /home/thebbrmo/public_html/application/libraries/Zend/Form/Element/File.php(512): Zend_File_Transfer_Adapter_Abstract->setDestination(‘/tmp’, ‘logo’)
#1 /home/thebbrmo/public_html/application/forms/ThemeConfiguration.php(113): Zend_Form_Element_File->setDestination(‘/tmp’)
#2 /home/thebbrmo/public_html/application/forms/ThemeConfiguration.php(69): Omeka_Form_ThemeConfiguration->_processFileElement(Object(Zend_Form_Element_File))
#3 /home/thebbrmo/public_html/application/libraries/Zend/Form.php(239): Omeka_Form_ThemeConfiguration->init()
#4 /home/thebbrmo/public_html/application/controllers/ThemesController.php(77): Zend_Form->__construct(Array)
#5 /home/thebbrmo/public_html/application/libraries/Zend/Controller/Action.php(516): ThemesController->configAction()
#6 /home/thebbrmo/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘configAction’)
#7 /home/thebbrmo/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#8 /home/thebbrmo/public_html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch()
#9 /home/thebbrmo/public_html/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#10 /home/thebbrmo/public_html/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#11 /home/thebbrmo/public_html/admin/index.php(28): Omeka_Application->run()
#12 {main}

looked at similar Zend_File_Transfer_Exception topics in forum but not having any luck figuring out what is wrong and how to fix

I’m experiencing this error as well (getting tons of Zend errors right now, actually). I haven’t found anything helpful for fixing it, or even what has caused the issue.

I’m running Omeka 3.1.2 on Reclaim with PHP-8.2.

“The destination is not writable” errors, those mean what you’d probably expect: Omeka is trying to write a file to a folder but doesn’t have permission to write there.

Looking at the full error including the following lines can be important: in the first post on this thread, you can see that the problem is in writing to “/tmp”, the system temporary directory. Something could be adjusted on the server to make sure that /tmp is writable by PHP/Omeka, or if that’s not feasible it’s possible to set the temporary directory used by Omeka when uploading to a different location where you can control the permissions.

Depending on your setup and the specific errors you’re seeing, it might be something your host could or should deal with.

Turns out Omeka was not pointing to the local /tmp but the shared hosting /tmp.

So, the fix that worked for us is:

  1. Home directory: if there is not already a “tmp” folder, create one
  2. tmp folder permissions: make sure the permissions are 755 or 775
  3. Omeka directory: go to application/libraries/Omeka/File/Ingest/Upload.php
  4. Upload.php file: at about line 35, find the $adapter->setDestination()
  5. Edit upload.php file: $adapter->setDestination(‘home/SERVERNAME/tmp’)
  6. Save file

After doing this, we no longer received an error when trying to add new items.

The directions that helped were created with ChatGPT, because no other support source offered any usable assistance.

The " Setting the Temporary Directory" section I linked to above describes how to set that temp path in a way that doesn’t require editing the core files, just setting a line in your application/config/config.ini.

this ended up being the solution for me. my host (Reclaim) was able to repoint so things were connecting correctly

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