Module publicResourceUrl not found with EasyAdmin plugin enabled

Hello,

after an upgrade to Omeka 4.0.0 I get this error when opening an item in my backend:

Laminas\ServiceManager\Exception\ServiceNotFoundException
A plugin by the name "publicResourceUrl" was not found in the plugin manager Laminas\View\HelperPluginManager

I cannot find any mention of this plugin in the database, in case it’s a leftover from my previous 3.2.3 installation. I run the migrations already. Thank you.

Full errror:

Details:

Laminas\Uri\Exception\InvalidUriException: URI is not valid and cannot be converted into a string in /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-uri/src/Uri.php:383
Stack trace:
#0 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-http/src/Header/AbstractLocation.php(103): Laminas\Uri\Uri->toString()
#1 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-http/src/Header/AbstractLocation.php(138): Laminas\Http\Header\AbstractLocation->getUri()
#2 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-mvc/src/ResponseSender/AbstractResponseSender.php(28): Laminas\Http\Header\AbstractLocation->toString()
#3 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-mvc/src/ResponseSender/PhpEnvironmentResponseSender.php(22): Laminas\Mvc\ResponseSender\AbstractResponseSender->sendHeaders()
#4 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\ResponseSender\PhpEnvironmentResponseSender->__invoke()
#5 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#6 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-mvc/src/SendResponseListener.php(87): Laminas\EventManager\EventManager->triggerEvent()
#7 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\SendResponseListener->sendResponse()
#8 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#9 /var/www/html/boslit.glasgow.ac.uk/www/vendor/laminas/laminas-mvc/src/Application.php(334): Laminas\EventManager\EventManager->triggerEvent()
#10 /var/www/html/boslit.glasgow.ac.uk/www/index.php(21): Laminas\Mvc\Application->run()
#11 {main}

OK, it was the EasyAdmin plugin’s fault. I have deactivated it and the error is now gone. Has the EasyAdmin some dependencies we don’t know about?

We are also getting this error with EasyAdmin on Omeka S 4.0.0. Goes away when EasyAdmin is disabled…

Laminas\ServiceManager\Exception\ServiceNotFoundException: A plugin by the name “publicResourceUrl” was not found in the plugin manager Laminas\View\HelperPluginManager in /home/apache2/htdocs/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php:161
Stack trace:
#0 /home/apache2/htdocs/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(386): Laminas\ServiceManager\AbstractPluginManager->get(‘publicResourceU…’, NULL)
#1 /home/apache2/htdocs/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(404): Laminas\View\Renderer\PhpRenderer->plugin(‘publicResourceU…’)
#2 /home/apache2/htdocs/modules/EasyAdmin/Module.php(312): Laminas\View\Renderer\PhpRenderer->__call(‘publicResourceU…’, Array)
#3 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): EasyAdmin\Module->handleViewLayoutResource(Object(Laminas\EventManager\Event))
#4 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\EventManager\Event))
#5 /home/apache2/htdocs/application/src/View/Helper/Trigger.php(60): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\EventManager\Event))
#6 /home/apache2/htdocs/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Omeka\View\Helper\Trigger->__invoke(‘view.layout’)
#7 /home/apache2/htdocs/application/view/layout/layout-admin.phtml(25): Laminas\View\Renderer\PhpRenderer->__call(‘trigger’, Array)
#8 /home/apache2/htdocs/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include(‘/home/apache2/h…’)
#9 /home/apache2/htdocs/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render(NULL)
#10 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#11 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Laminas\Mvc\MvcEvent))
#12 /home/apache2/htdocs/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#13 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#14 /home/apache2/htdocs/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest(Object(Laminas\Mvc\MvcEvent))
#15 /home/apache2/htdocs/index.php(21): Laminas\Mvc\Application->run()
#16 {main}