Hi,
After updating to Common (v 3.4.66) and Block Plus (v 3.4.37), I’m getting an error related to the Showcase block. I had a page with an existing Showcase block, but was unable to edit it with Block Plus activated. I deactivated Block Plus, deleted the Showcase block, and I can now edit the page, however I cannot add a Showcase block, and clicking on that option in the “Add New Block” window does nothing.
Here’s the only error I can see in application.log:
2025-05-06T15:45:29+00:00 ERR (3): Error: Call to undefined method Common\Form\Element\ThumbnailTypeSelect::prependValuesOptions() in /var/www/html/omeka-s/modules/Common/src/Form/Element/TraitPrependAndGetValuesOptions.php:11
Stack trace:
#0 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormSelect.php(112): Common\Form\Element\ThumbnailTypeSelect->getValueOptions()
#1 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormSelect.php(86): Laminas\Form\View\Helper\FormSelect->render()
#2 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(168): Laminas\Form\View\Helper\FormSelect->__invoke()
#3 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(193): Laminas\Form\View\Helper\FormElement->renderHelper()
#4 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(114): Laminas\Form\View\Helper\FormElement->renderType()
#5 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(91): Laminas\Form\View\Helper\FormElement->render()
#6 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Laminas\Form\View\Helper\FormElement->__invoke()
#7 /var/www/html/omeka-s/application/view/common/form-row.phtml(26): Laminas\View\Renderer\PhpRenderer->__call()
#8 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include(‘…’)
#9 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormRow.php(154): Laminas\View\Renderer\PhpRenderer->render()
#10 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormRow.php(108): Laminas\Form\View\Helper\FormRow->render()
#11 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormCollection.php(133): Laminas\Form\View\Helper\FormRow->__invoke()
#12 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormCollection.php(104): Laminas\Form\View\Helper\FormCollection->render()
#13 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Laminas\Form\View\Helper\FormCollection->__invoke()
#14 /var/www/html/omeka-s/modules/BlockPlus/src/Site/BlockLayout/Showcase.php(91): Laminas\View\Renderer\PhpRenderer->__call()
#15 /var/www/html/omeka-s/application/src/View/Helper/BlockLayout.php(112): BlockPlus\Site\BlockLayout\Showcase->form()
#16 /var/www/html/omeka-s/application/src/Controller/SiteAdmin/PageController.php(165): Omeka\View\Helper\BlockLayout->form()
#17 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(71): Omeka\Controller\SiteAdmin\PageController->blockAction()
#18 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#19 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#20 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(97): Laminas\EventManager\EventManager->triggerEventUntil()
#21 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(132): Laminas\Mvc\Controller\AbstractController->dispatch()
#22 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch()
#23 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#24 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(325): Laminas\EventManager\EventManager->triggerEventUntil()
#25 /var/www/html/omeka-s/index.php(21): Laminas\Mvc\Application->run()
So it seems like perhaps the issue is with Common rather than Block Plus? Has anyone else encountered this?
@Daniel_KM any idea what might be happenening here? I was going to post an issue on github, but want to ensure it isn’t just my setup that’s causing the error.
I have no issue like that. What is your php version ?
Or can you restart apache? Or empty doctrine and apcu and other caches?
Hi Daniel,
I’m on php 8.1.32. A restart of apache has no effect. Neither did a reboot of the whole server.
I’m not sure how to clear the doctrine or apcu caches. I did see that there’s an update to the Common module, so I’ll try that.
Thanks,
Adam
@Daniel_KM I updated Common, but it’s still not working. I’m not familiar with how to empty those caches, and can’t seem to find them in my Linux system, nor do doctrine or apcu show up listed as php extensions list on the system, info screen.
Can you retry with last versions (Block Plus 3.4.40 and Common 3.4.70)?
I’m up to date on both, and still no luck, I’m still seeing the same erro message in the applicaiton log. I was never able to figure out how to clear those caches you mentioned, though.
Hi @Daniel_KM
I’ve updated to Common 3.4.71 and BlocksPlus 3.4.41 and now I’m not even seeing Showcase as an option in the “Add New Block” section, unless I’m missing it?
Adam
If you don’t see the block, it means the module is disabled.
I published version 3.4.42. Does it fix it ?
Sorry about that, you’re right – the modules are now both updated and enabled and still no luck. Still the same error message:
2025-08-26T20:18:04+00:00 ERR (3): Error: Call to undefined method Common\Form\Element\ThumbnailTypeSelect::prependValuesOptions() in /var/www/html/omeka-s/modules/Common/src/Form/Element/TraitPrependAndGetValuesOptions.php:11
Stack trace:
#0 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormSelect.php(112): Common\Form\Element\ThumbnailTypeSelect->getValueOptions()
#1 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormSelect.php(86): Laminas\Form\View\Helper\FormSelect->render()
#2 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(168): Laminas\Form\View\Helper\FormSelect->__invoke()
#3 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(193): Laminas\Form\View\Helper\FormElement->renderHelper()
#4 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(114): Laminas\Form\View\Helper\FormElement->renderType()
#5 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormElement.php(91): Laminas\Form\View\Helper\FormElement->render()
#6 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Laminas\Form\View\Helper\FormElement->__invoke()
#7 /var/www/html/omeka-s/application/view/common/form-row.phtml(26): Laminas\View\Renderer\PhpRenderer->__call()
#8 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include(‘…’)
#9 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormRow.php(154): Laminas\View\Renderer\PhpRenderer->render()
#10 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormRow.php(108): Laminas\Form\View\Helper\FormRow->render()
#11 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormCollection.php(133): Laminas\Form\View\Helper\FormRow->__invoke()
#12 /var/www/html/omeka-s/vendor/laminas/laminas-form/src/View/Helper/FormCollection.php(104): Laminas\Form\View\Helper\FormCollection->render()
#13 /var/www/html/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Laminas\Form\View\Helper\FormCollection->__invoke()
#14 /var/www/html/omeka-s/modules/BlockPlus/src/Site/BlockLayout/Showcase.php(92): Laminas\View\Renderer\PhpRenderer->__call()
#15 /var/www/html/omeka-s/application/src/View/Helper/BlockLayout.php(112): BlockPlus\Site\BlockLayout\Showcase->form()
#16 /var/www/html/omeka-s/application/src/Controller/SiteAdmin/PageController.php(165): Omeka\View\Helper\BlockLayout->form()
#17 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(71): Omeka\Controller\SiteAdmin\PageController->blockAction()
#18 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#19 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#20 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(97): Laminas\EventManager\EventManager->triggerEventUntil()
#21 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(132): Laminas\Mvc\Controller\AbstractController->dispatch()
#22 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch()
#23 /var/www/html/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#24 /var/www/html/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(325): Laminas\EventManager\EventManager->triggerEventUntil()
#25 /var/www/html/omeka-s/index.php(21): Laminas\Mvc\Application->run()
The issue is the module Common, but there is no issue inside it, because it is uses in many places. It uses php traits and the issue you have means that there is a missing file for the trait TraitPrependValuesOptions. Normally, it should be aside the file TraitPrependValuesOptions.php and the other form elements. So it probably means that there is an error in your install of php or you have a non-standard server. Or the file is overridden somewhere else.
astrohm
September 23, 2025, 9:19pm
13
Thanks Daniel. This one is confounding. It definitely started with an update to Common and BlocksPlus, but there could certainly be some code elsewhere that’s fouling things up. We’ve built a manual showcase work around for the moment, and if that’s the solution we need moving forward, I suppose it’ll work!
Thanks for your attention and work on this.
I’d pay particular attention to this possibility. If I had to make a guess on what your issue is, without seeing your actual server, it’s that you have another module that includes a copy of Common within itself, which is meaning that you’re loading a mixture of older and newer versions. causing the error you’re seeing. You could search for other copies of, for example, the TraitPrependValuesOptions.php file.