csv upload error message

I'm using Omeka version 2.3.1 and csv plugin 2.0.3. After I map the columns and try to import the csv file, I immediately get "Omeka has encountered an error." I tried reinstalling the plugin, I tried running the test.csv file.

Not sure if this is helpful, but I tried to find a more detailed error message and found this in error_log:

[21-Feb-2016 14:36:06 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in /home/highstee/public_html/plugins/CsvImport/forms/Mapping.php on line 292

Do I follow right that the test.csv file also did not work?

There might be more detailed info available if you follow steps for retrieving error messages in Omeka's logs.

Often, CSV import errors come down to the encoding of the CSV file. They should be UTF-8, which Excel, for example, doesn't necessarily do. LibreOffice can help get the right encoding.

Hi, I saved the test.csv file in UTF-8 with TextEdit and still get the error message. Here is the detailed message:

Omeka has encountered an error

RuntimeException

The configured PHP path (/usr/bin/php) does not point to a PHP-CLI binary.

exception 'RuntimeException' with message 'The configured PHP path (/usr/bin/php) does not point to a PHP-CLI binary.' in /home/highstee/public_html/application/libraries/Omeka/Job/Process/Dispatcher.php:125
Stack trace:
#0 /home/highstee/public_html/application/libraries/Omeka/Job/Process/Dispatcher.php(94): Omeka_Job_Process_Dispatcher::_checkCliPath('/usr/bin/php')
#1 /home/highstee/public_html/application/libraries/Omeka/Job/Process/Dispatcher.php(28): Omeka_Job_Process_Dispatcher::getPHPCliPath()
#2 /home/highstee/public_html/application/libraries/Omeka/Job/Dispatcher/Adapter/BackgroundProcess.php(31): Omeka_Job_Process_Dispatcher::startProcess('Omeka_Job_Proce...', Object(User), Array)
#3 /home/highstee/public_html/application/libraries/Omeka/Job/Dispatcher/Default.php(150): Omeka_Job_Dispatcher_Adapter_BackgroundProcess->send('{"className":"C...', Array)
#4 /home/highstee/public_html/plugins/CsvImport/controllers/IndexController.php(393): Omeka_Job_Dispatcher_Default->sendLongRunning('CsvImport_Impor...', Array)
#5 /home/highstee/public_html/plugins/CsvImport/controllers/IndexController.php(135): CsvImport_IndexController->_dispatchImportTask(Object(CsvImport_Import), 'start')
#6 /home/highstee/public_html/application/libraries/Zend/Controller/Action.php(516): CsvImport_IndexController->mapColumnsAction()
#7 /home/highstee/public_html/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('mapColumnsActio...')
#8 /home/highstee/public_html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#9 /home/highstee/public_html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#10 /home/highstee/public_html/application/libraries/Zend/Application.php(382): Zend_Application_Bootstrap_Bootstrap->run()
#11 /home/highstee/public_html/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#12 /home/highstee/public_html/admin/index.php(28): Omeka_Application->run()
#13 {main}

Ah, yep! That's the second most common problem. Like the first, we don't have a reliable way to check that ahead of time.

It's something to check with your hosting service/server admin about. The question is what's the correct path to PHP's Command Line Interface.

They should be able to provide you with the correct path. Then, that info about the path to PHP-CLI goes into application/config/config.php. Look for a line like this

background.php.path = ""

and put the path in. Make sure there is no semicolon at the start of that line.

It worked! Thank you so much!