DataVis TypeError

I’m getting an error with DataVis latest version, on latest version of Omeka S. It all was worning fine until I saved a visualisation I was working on.

Argument 1 passed to Laminas\ServiceManager\ServiceManager::staticServiceOrFactoryCanCreate() must be of the type string, null given, called in /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php on line 269

Details:

TypeError: Argument 1 passed to Laminas\ServiceManager\ServiceManager::staticServiceOrFactoryCanCreate() must be of the type string, null given, called in /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php on line 269 and defined in /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php:923
Stack trace:
#0 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(269): Laminas\ServiceManager\ServiceManager->staticServiceOrFactoryCanCreate(NULL)
#1 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(159): Laminas\ServiceManager\ServiceManager->has(NULL)
#2 /home/customer/www/boslit.glasgow.ac.uk/public_html/modules/Datavis/src/DiagramType/Manager.php(16): Laminas\ServiceManager\AbstractPluginManager->get(NULL, Array, true)
#3 /home/customer/www/boslit.glasgow.ac.uk/public_html/modules/Datavis/src/Api/Representation/DatavisVisRepresentation.php(124): Datavis\DiagramType\Manager->get(NULL)
#4 /home/customer/www/boslit.glasgow.ac.uk/public_html/modules/Datavis/view/datavis/site-admin/index/browse.phtml(60): Datavis\Api\Representation\DatavisVisRepresentation->getDiagramType()
#5 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/home/customer/...')
#6 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render(NULL)
#7 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#8 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren(Object(Laminas\View\Model\ViewModel))
#9 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#10 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Laminas\Mvc\MvcEvent))
#11 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#12 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#13 /home/customer/www/boslit.glasgow.ac.uk/public_html/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest(Object(Laminas\Mvc\MvcEvent))
#14 /home/customer/www/boslit.glasgow.ac.uk/public_html/index.php(21): Laminas\Mvc\Application->run()
#15 {main}```

PS: it was because I didn’t set the diagram type. The only solution was to go into the MySQL database and add it manually. If there was a check that prevents saving the diagram that wouldn’t have happened. I think I selected ‘save and go to visualisations’.

Good catch. The fix will be in the next release, which should be published next week. Thanks for reporting the bug!

1 Like