indic-archive / bookshelf

Bookshelf is a theme for Omeka S
GNU General Public License v3.0
7 stars 1 forks source link

Laminas Issues with Bookshelf Theme and AdvancedSearch #2

Open C-Norton opened 1 year ago

C-Norton commented 1 year ago

Hello; We have a site that was originally built on Omeka S 3.2.3, with Bookshelf 2.0.0, and, among other modules, Advanced Search 3.3.6.18. The site with these dependencies work fine. However, as part of upgrading everything to modern versions (Omeka S Version 4.0.2, Bookshelf 2.0.1, Advanced Search 3.4.13), we are getting the following error in our omeka log when loading the site's homepage

2023-08-29T18:56:28+00:00 ERR (3): Laminas\Router\Exception\RuntimeException: Route with name "search-page-1" not found in /var/www/html/vendor/laminas/laminas-router/src/Http/TreeRouteStack.php:364
Stack trace:
#0 /var/www/html/vendor/laminas/laminas-navigation/src/Page/Mvc.php(276): Laminas\Router\Http\TreeRouteStack->assemble()
#1 /var/www/html/vendor/laminas/laminas-view/src/Helper/Navigation/Menu.php(501): Laminas\Navigation\Page\Mvc->getHref()
#2 /var/www/html/vendor/laminas/laminas-view/src/Helper/Navigation/Menu.php(368): Laminas\View\Helper\Navigation\Menu->htmlify()
#3 /var/www/html/vendor/laminas/laminas-view/src/Helper/Navigation/Menu.php(242): Laminas\View\Helper\Navigation\Menu->renderNormalMenu()
#4 /var/www/html/themes/bookshelf/view/layout/layout.phtml(94): Laminas\View\Helper\Navigation\Menu->renderMenu()
#5 /var/www/html/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/var/www/html/t...')
#6 /var/www/html/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render()
#7 /var/www/html/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render()
#8 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#9 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#10 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent()
#11 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest()
#12 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#13 {main}

While at first glance, this DOES appear to be an advanced search issue, this doesn't occur on default Omeka theme sites. Furthermore, as per the post on the Omeka Forums here https://forum.omeka.org/t/advanced-search-route-error/19012

this does appear to be a theme issue, though it's not clear exactly what the issue is. It is unclear how the posted workaround in that instance can be applied, as we don't have an advanced search page in our navmenu.

Any help provided is appreciated.