Issue with Foundation Theme 1.5.0

Hello, I am running Omeka 4.1.1 (with Common 3.4.64) and just recently upgraded the Foundation theme to 1.5.0 (deleted the previous theme folder and put the new one in).

When I go on a site running that theme, and click on an item to view its page i get the following error:

Error: Call to undefined method Omeka\View\Helper\ResourcePageBlocks::getBlocksArray() in /data/ibali/omeka-s/themes/foundation/helper/TabManager.php:17
Stack trace:
#0 /data/ibali/omeka-s/themes/foundation/helper/TabManager.php(24): OmekaTheme\Helper\TabManager->getResourcePageBlocks()
#1 /data/ibali/omeka-s/themes/foundation/view/omeka/site/item/show.phtml(24): OmekaTheme\Helper\TabManager->getTabNavigationRegion()
#2 /data/ibali/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('...')
#3 /data/ibali/omeka-s/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render()
#4 /data/ibali/omeka-s/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render()
#5 /data/ibali/omeka-s/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren()
#6 /data/ibali/omeka-s/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render()
#7 /data/ibali/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#8 /data/ibali/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#9 /data/ibali/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent()
#10 /data/ibali/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest()
#11 /data/ibali/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#12 {main}

If i go back to the previous version 1.4.1 - i don’t have this error.

Would be grateful for any assistance,

Sanjin

1 Like

Both 1.5.0 and the latest 1.5.1 have the same error here:

2025-01-30T01:09:59+00:00 ERR (3): Error: Call to undefined method Omeka\View\Helper\ResourcePageBlocks::getBlocksArray() in /var/www/html/omeka-s/themes/foundation/helpp:17abManager.phh
Stack trace:
#0 /var/www/html/omeka-s/themes/foundation/helper/TabManager.php(24): OmekaTheme\Helper\TabManager->getResourcePageBlocks()
#1 /var/www/html/omeka-s/themes/foundation/view/omeka/site/item/show.phtml(24): OmekaTheme\Helper\TabManager->getTabNavigationRegion()
#2 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('...')
#3 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render()
#4 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render()
#5 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren()
#6 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render()
#7 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#8 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#9 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent()
#10 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest()
#11 /var/www/html/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#12 {main}   

Thanks for pointing this out. I had lost track of an upcoming feature for Omeka 4.2.0 and released an implementation in Foundation prematurely. Custom resource page blocks will be available down the line, but have been deactivated in the Foundation v1.5.2 release, which is now available.

1 Like

This is brilliant! Thanks for the quick fix! 1.5.2 works perfectly now.