BlocksPlus syntax error

I have been enjoying BlocksPlus, but encountered the following error when using the browse preview block. It works on my personal Reclaim hosted demo Omeka site, but not on my institution’s Reclaim hosted Omeka site. Both sites are on Omeka 2.1.2 and are using PHP 7.2.31. On the functional site, the MySQL version is lower (5.5 vs. 5.7). I have not made any modifications to this file. Ideas?

 ParseError
syntax error, unexpected '<', expecting variable (T_VARIABLE) or '{' or '$'

Details:

ParseError: syntax error, unexpected '<', expecting variable (T_VARIABLE) or '{' or '$' in /home/omekawlu/public_html/specialcollections/themes/foundation-mkb/view/common/block-layout/browse-preview.phtml:56
Stack trace:
#0 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-view/src/Helper/Partial.php(62): Zend\View\Renderer\PhpRenderer->render(NULL, NULL)
#1 [internal function]: Zend\View\Helper\Partial->__invoke('common/block-la...', Array)
#2 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(Zend\View\Helper\Partial), Array)
#3 /home/omekawlu/public_html/specialcollections/modules/BlockPlus/src/Site/BlockLayout/BrowsePreview.php(183): Zend\View\Renderer\PhpRenderer->__call('partial', Array)
#4 /home/omekawlu/public_html/specialcollections/application/src/View/Helper/BlockLayout.php(124): BlockPlus\Site\BlockLayout\BrowsePreview->render(Object(Zend\View\Renderer\PhpRenderer), Object(Omeka\Api\Representation\SitePageBlockRepresentation))
#5 /home/omekawlu/public_html/specialcollections/application/view/omeka/site/page/content.phtml(9): Omeka\View\Helper\BlockLayout->render(Object(Omeka\Api\Representation\SitePageBlockRepresentation))
#6 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(506): include('/home/omekawlu/...')
#7 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render(NULL)
#8 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-view/src/View.php(236): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#9 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-view/src/View.php(200): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#10 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-view/src/View.php(236): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#11 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-view/src/View.php(200): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#12 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#13 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#14 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#15 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-mvc/src/Application.php(367): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#16 /home/omekawlu/public_html/specialcollections/vendor/zendframework/zend-mvc/src/Application.php(348): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#17 /home/omekawlu/public_html/specialcollections/index.php(21): Zend\Mvc\Application->run()
#18 {main}

Are both using the same theme? This error is reporting an issue in the “foundation-mkb” theme’s copy of the browse-preview block. It looks kind of like the type of error you could get if you have an un-closed php tag.

Thank you! I forgot this was an original block and that it would be in the theme as well. They were using the same theme but were just a couple edits out of sync.

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.