[Solved] CSV Import and Export not working

Environment:

  • Ubuntu Server 22.04
  • Omeka-S 3.2.3
  • CSV Import version 2.3.1
  • Export version 1.5.0
  • Apache/2.4.52 (Ubuntu)
  • PHP 8.1.2

When I try to use CSV Import or Export modules I get the following error

 TypeError
Laminas\Form\Fieldset::__construct(): Argument #2 ($options) must be of type array, null given, called in /var/www/html/omeka-s/modules/CSVImport/src/Service/Form/ImportFormFactory.php on line 12

Details:
TypeError: Laminas\Form\Fieldset::__construct(): Argument #2 ($options) must be of type array, null given, called in /var/www/html/omeka-s/modules/CSVImport/src/Service/Form/ImportFormFactory.php on line 12 and defined in /var/www/html/omeka-s/vendor/laminas/laminas-form/src/Fieldset.php:75
Stack trace:
#0 /var/www/html/omeka-s/modules/CSVImport/src/Service/Form/ImportFormFactory.php(12): Laminas\Form\Fieldset->__construct()
#1 /var/www/html/omeka-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(612): CSVImport\Service\Form\ImportFormFactory->__invoke()
#2 /var/www/html/omeka-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(234): Laminas\ServiceManager\ServiceManager->doCreate()
#3 /var/www/html/omeka-s/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(166): Laminas\ServiceManager\ServiceManager->get()
#4 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/FormElementManager.php(336): Laminas\ServiceManager\AbstractPluginManager->get()
#5 /var/www/html/omeka-s/application/src/Mvc/Controller/Plugin/GetForm.php(33): Laminas\Form\FormElementManager->get()
#6 [internal function]: Omeka\Mvc\Controller\Plugin\GetForm->__invoke()
#7 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(275): call_user_func_array()
#8 /var/www/html/omeka-s/modules/CSVImport/src/Controller/IndexController.php(59): Laminas\Mvc\Controller\AbstractController->__call()
#9 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(71): CSVImport\Controller\IndexController->indexAction()
#10 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#11 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#12 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(97): Laminas\EventManager\EventManager->triggerEventUntil()
#13 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(132): Laminas\Mvc\Controller\AbstractController->dispatch()
#14 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch()
#15 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#16 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(325): Laminas\EventManager\EventManager->triggerEventUntil()
#17 /var/www/html/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#18 {main}

Please advise
Thanks

Downgraded PHP to 7.4.30 and now it’s ok.