Two Errors Related? -- Making featured items & opening CSV Import

I took about a month off from working on an Omeka site and when I returned, I found two unfamiliar errors in the admin area. Hopefully, the two errors are related and perhaps I simply deleted a file somewhere. Here they are...

*** Error #1, encountered when attempting to edit an existing item to make it featured:

The given destination is not a directory or does not exist

exception 'Zend_File_Transfer_Exception' with message 'The given destination is not a directory or does not exist' in /home/histor10/public_html/
Stack trace:
#0 /home/histor10/public_html/ Zend_File_Transfer_Adapter_Abstract->setDestination('/tmp')
#1 /home/histor10/public_html/ Omeka_File_Ingest_Upload->_buildAdapter()
#2 /home/histor10/public_html/ Omeka_File_Ingest_Upload->_parseFileInfo('file')
#3 /home/histor10/public_html/ Omeka_File_Ingest_Abstract->ingest('file')
#4 /home/histor10/public_html/ ItemBuilder->addFiles('Upload', 'file', Array)
#5 /home/histor10/public_html/ insert_files_for_item()
#6 /home/histor10/public_html/ Item->_uploadFiles(Object(Item), 'Upload', 'file', Array)
#7 /home/histor10/public_html/ Item->beforeSaveForm()
#8 /home/histor10/public_html/ Omeka_Record->runCallbacks(Object(ArrayObject))
#9 /home/histor10/public_html/ Omeka_Record->saveForm(Array, Array)
#10 /home/histor10/public_html/ Omeka_Controller_Action->editAction('beforeSaveForm', Object(ArrayObject))
#11 /home/histor10/public_html/ ItemsController->editAction(Array)
#12 /home/histor10/public_html/ Zend_Controller_Action->dispatch()
#13 /home/histor10/public_html/ Zend_Controller_Dispatcher_Standard->dispatch()
#14 /home/histor10/public_html/ Zend_Controller_Front->dispatch('editAction')
#15 /home/histor10/public_html/ Zend_Application_Bootstrap_Bootstrap->run(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#16 /home/histor10/public_html/ Zend_Application->run()
#17 /home/histor10/public_html/ Omeka_Core->run()
#18 {main}

*** Error #2, encountered when attempting to navigate to CSV Import. As for this error, this was one that I faced earlier problems with and successfully fixed. I changed the path to /usr/local/bin/php in the configuration file, successfully imported several sets of images and metadata with it, but now it reports that the path is invalid.

Your PHP-CLI path setting is invalid.

Please change the setting in /home/histor10/public_html/`

Any help would be greatly appreciated!

(Apologies for the delay: the Omeka forum software ate your post.)

The first error appears to be saying that your system doesn't have a /tmp folder. This is rarely the case, most servers have a /tmp directory that anybody can write to. Omeka uses this directory to temporarily save files that are uploaded. If this directory really doesn't exist, that's clearly an issue.

The second error is claiming that the path you gave doesn't point to a PHP-CLI binary. You can easily check through ssh if this is the case, by running something like

/usr/local/bin/php --version

It's possible that both of these issues trace to some PHP settings problem, like a new or changed open_basedir setting. Your server's PHP logs would likely contain some related warnings and notices if this is the case.

Hi John,

I also have a problem in a new installation of Omeka which is giving the error 2 commented in the message above: "Your PHP-CLI path setting is invalid" when I try to navigate to the CSV Import.

I am trying to give some clues to the IT specialist in my organization. When ou mention that it is possible that this error is related with the open_basedir setting, do you mean that it should be disable?


Usually you should just ask your IT people to make sure that PHP-CLI is installed, and what the path to it is.

Then, you put that path in Omeka's application/config/config.ini file, as the value for the "background.php.path" setting.