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:

Zend_File_Transfer_Exception
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/nationbynumbers.com/omeka/application/libraries/Zend/File/Transfer/Adapter/Abstract.php:1035
Stack trace:
#0 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Omeka/File/Ingest/Upload.php(41): Zend_File_Transfer_Adapter_Abstract->setDestination('/tmp')
#1 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Omeka/File/Ingest/Upload.php(113): Omeka_File_Ingest_Upload->_buildAdapter()
#2 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Omeka/File/Ingest/Abstract.php(181): Omeka_File_Ingest_Upload->_parseFileInfo('file')
#3 /home/histor10/public_html/nationbynumbers.com/omeka/application/models/ItemBuilder.php(210): Omeka_File_Ingest_Abstract->ingest('file')
#4 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/globals.php(491): ItemBuilder->addFiles('Upload', 'file', Array)
#5 /home/histor10/public_html/nationbynumbers.com/omeka/application/models/Item.php(270): insert_files_for_item()
#6 /home/histor10/public_html/nationbynumbers.com/omeka/application/models/Item.php(154): Item->_uploadFiles(Object(Item), 'Upload', 'file', Array)
#7 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Omeka/Record.php(284): Item->beforeSaveForm()
#8 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Omeka/Record.php(805): Omeka_Record->runCallbacks(Object(ArrayObject))
#9 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Omeka/Controller/Action.php(483): Omeka_Record->saveForm(Array, Array)
#10 /home/histor10/public_html/nationbynumbers.com/omeka/application/controllers/ItemsController.php(100): Omeka_Controller_Action->editAction('beforeSaveForm', Object(ArrayObject))
#11 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Zend/Controller/Action.php(513): ItemsController->editAction(Array)
#12 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch()
#13 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch()
#14 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch('editAction')
#15 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#16 /home/histor10/public_html/nationbynumbers.com/omeka/application/libraries/Omeka/Core.php(166): Zend_Application->run()
#17 /home/histor10/public_html/nationbynumbers.com/omeka/admin/index.php(45): 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/nationbynumbers.com/omeka/application/config/config.ini`

Any help would be greatly appreciated!
Rachel

(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?

Thanks,
Daniel

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.