Unable to add/delete files after upgrade

After upgrading from 1.4 to 1.4.1, I am unable to add or delete files:

exception 'Omeka_Storage_Exception' with message 'Unable to delete file.' in /var/www/application/libraries/Omeka/Storage/Adapter/Filesystem.php:153
Stack trace:
#0 [internal function]: Omeka_Storage_Adapter_Filesystem->delete('files/0a339651d...')
#1 /var/www/application/libraries/Omeka/Storage.php(66): call_user_func_array(Array, Array)
#2 [internal function]: Omeka_Storage->__call('delete', Array)
#3 /var/www/application/models/File.php(232): Omeka_Storage->delete('files/0a339651d...')
#4 /var/www/application/models/File.php(238): File->unlinkFile()
#5 /var/www/application/libraries/Omeka/Record.php(622): File->_delete()
#6 /var/www/application/models/Item.php(253): Omeka_Record->delete()
#7 /var/www/application/models/Item.php(208): Item->_deleteFiles(Array)
#8 [internal function]: Item->afterSaveForm(Object(ArrayObject))
#9 /var/www/application/libraries/Omeka/Record.php(284): call_user_func_array(Array, Array)
#10 /var/www/application/libraries/Omeka/Record.php(810): Omeka_Record->runCallbacks('afterSaveForm', Object(ArrayObject))
#11 /var/www/application/libraries/Omeka/Controller/Action.php(483): Omeka_Record->saveForm(Array)
#12 /var/www/application/controllers/ItemsController.php(100): Omeka_Controller_Action->editAction()
#13 /var/www/application/libraries/Zend/Controller/Action.php(513): ItemsController->editAction()
#14 /var/www/application/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('editAction')
#15 /var/www/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#16 /var/www/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#17 /var/www/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#18 /var/www/application/libraries/Omeka/Core.php(166): Zend_Application->run()
#19 /var/www/admin/index.php(45): Omeka_Core->run()
#20 {main}

Any input would be appreciated!

Try checking the permissions of your archive directory.

Easiest way to do this is to log in to your server with SSH, go to the archive directory, and run ls -la.

It might also be helpful to post the error message you're getting when adding files.

We're also running into this issue. I think it has something to do with Contribute 2.2 and permissions errors on the /archive directory. I think we've corrected the permissions, but contributions from users that aren't logged in aren't being saved properly. Then we get the error whughes posted above when we go to delete these non-existent items.

Here's the error we receive on Contribution form:

File with ID=2488 does not exist

So, you're getting that error immediately as people try to contribute items?

Does the same thing happen if there's no file being uploaded through the form? Have you altered the plugin at all?

As for fixing the "undeletable" items, the general solution for now is to manually go into the database with an SQL client and delete the rows in the "files" table that correspond to the nonexistent files.

Yes, this problem shows up immediately when we try to upload images and files. I just did a "Story" submission without a file attached and everything worked fine.

We haven't altered the plugin, and I reinstalled version 2.2 again yesterday before posting here. We can upload files via the contribute form perfectly fine when we're logged into the Omeka Admin interface. That's what leads me to believe that something isn't configured properly for anonymous users.

As for deleting these items, going into the database directly was the only solution I could find to remove them from the "Items" list.

The Contribution problem seems to be unrelated to this one, except that it causes the same problem with undeletable files.

There's an updated version of the Contribution plugin (2.2.1) which should resolve the error you're getting when adding files through the plugin.