Error while importing CSV in omeka S

Hello Omeka community,

I am quite new to Omeka and I am having trouble with importing a CSV with CSVimport plug in, on a fresh new install of Omeka S. It seems quite close to what i got with Omeka classic, it was about configuring the tmp file. But I can’t find where to do so in omeka S.

This is the message I get:
"
Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/hebergement/xyz/www/) in /home/hebergement/xyz/www/omeka-s/modules/CSVImport/src/CsvFile.php on line 65

Warning: move_uploaded_file(): open_basedir restriction in effect. File() is not within the allowed path(s): (/home/hebergement/xyz/www/) in /home/hebergement/xyz/www/omeka-s/modules/CSVImport/src/CsvFile.php on line 30
"
And then:
"
RuntimeException
SplFileObject::__construct(): Filename cannot be empty

Détails :

RuntimeException: SplFileObject::__construct(): Filename cannot be empty in /home/hebergement/xyz/www/omeka-s/modules/CSVImport/src/CsvFile.php:36
Stack trace:
#0 /home/hebergement/xyz/www/omeka-s/modules/CSVImport/src/CsvFile.php(36): SplFileObject->__construct(’’)
#1 /home/hebergement/xyz/www/omeka-s/modules/CSVImport/src/Controller/IndexController.php(69): CSVImport\CsvFile->loadFromTempPath()
#2 /home/hebergement/xyz/www/omeka-s/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): CSVImport\Controller\IndexController->mapAction()
#3 /home/hebergement/xyz/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#4 /home/hebergement/xyz/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#5 /home/hebergement/xyz/www/omeka-s/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#6 /home/hebergement/xyz/www/omeka-s/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#7 /home/hebergement/xyz/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 /home/hebergement/xyz/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 /home/hebergement/xyz/www/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#10 /home/hebergement/xyz/www/omeka-s/index.php(21): Zend\Mvc\Application->run()
#11 {main}
"
Is anybody got an idea ?

Best regards

You should be able to configure that in config/local.config.php, by adding a line like this:

'temp_dir' => '/your/custom/temp/dir',

So many thanks !

It’s working like a charm !

Warm regards