BlockPlus error with Omeka S 3.1.0

Using most recent version of BlockPlus on Omeka # 3.1.0. Since upgrade we receive this error whenever you click on a Page Title under “Pages” for a given site.

TypeError: array_flip() expects parameter 1 to be array, null given in /home/apache2/htdocs/modules/BlockPlus/Module.php:137
Stack trace:
#0 /home/apache2/htdocs/modules/BlockPlus/Module.php(137): array_flip(NULL)
#1 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): BlockPlus\Module->handleRegisteredNamesBlockLayout(Object(Laminas\EventManager\Event))
#2 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(143): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\EventManager\Event))
#3 /home/apache2/htdocs/application/src/ServiceManager/AbstractPluginManager.php(110): Laminas\EventManager\EventManager->trigger(‘service.registe…’, Object(Omeka\Site\BlockLayout\Manager), Object(ArrayObject))
#4 /home/apache2/htdocs/application/src/View/Helper/BlockLayout.php(37): Omeka\ServiceManager\AbstractPluginManager->getRegisteredNames(true)
#5 /home/apache2/htdocs/application/src/View/Helper/BlockLayout.php(56): Omeka\View\Helper\BlockLayout->getLayouts()
#6 /home/apache2/htdocs/application/view/omeka/site-admin/page/edit.phtml(8): Omeka\View\Helper\BlockLayout->prepareForm()
#7 /home/apache2/htdocs/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(505): include(’/home/apache2/h…’)
#8 /home/apache2/htdocs/vendor/laminas/laminas-view/src/View.php(206): Laminas\View\Renderer\PhpRenderer->render(NULL)
#9 /home/apache2/htdocs/vendor/laminas/laminas-view/src/View.php(235): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#10 /home/apache2/htdocs/vendor/laminas/laminas-view/src/View.php(199): Laminas\View\View->renderChildren(Object(Laminas\View\Model\ViewModel))
#11 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(104): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#12 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Laminas\Mvc\MvcEvent))
#13 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#14 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/Application.php(366): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#15 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/Application.php(347): Laminas\Mvc\Application->completeRequest(Object(Laminas\Mvc\MvcEvent))
#16 /home/apache2/htdocs/index.php(21): Laminas\Mvc\Application->run()
#17 {main}


Error does not occur when BlockPlus is disabled. Have tried uninstalling and reinstalling module, does not solve problem.

Ah! This was fixed after the recent update to Block Plus. Thank you!

All blocks are not yet upgraded for the new version of Omeka, I’ll released it in some days.