Omeka s v4.0 The Daily theme public item page error

When using “The Daily” theme on Omeka S v4.0 and opening an item page which includes media (pdfs), an error occurs. This should be the relevant error:

2023-04-29T12:06:29+00:00 ERR (3): Laminas\ServiceManager\Exception\ServiceNotFoundException: A plugin by the name "SortMedia" was not found in the plugin manager Laminas\View\HelperPluginManager in /var/www/html/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php:161
Stack trace:
#0 /var/www/html/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(386): Laminas\ServiceManager\AbstractPluginManager->get('SortMedia', NULL)
#1 /var/www/html/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(404): Laminas\View\Renderer\PhpRenderer->plugin('SortMedia')
#2 /var/www/html/themes/thedaily/view/omeka/site/item/show.phtml(7): Laminas\View\Renderer\PhpRenderer->__call('SortMedia', Array)
#3 /var/www/html/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/var/www/html/t...')
#4 /var/www/html/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render(NULL)
#5 /var/www/html/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#6 /var/www/html/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren(Object(Laminas\View\Model\ViewModel))
#7 /var/www/html/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#8 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Laminas\Mvc\MvcEvent))
#9 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent))
#10 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent))
#11 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest(Object(Laminas\Mvc\MvcEvent))
#12 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#13 {main}

I estimate that it has something to do with this view helper.

Has anyone encountered this issue before and found a solution?

It looks like you have a file left over from an old version of the theme. The current version, 1.7.0, doesn’t have a view/omeka/site/item/show.phtml file, the file that’s causing your error. This can happen if you just unzip a new copy of a theme on top of an old one.

As long as you haven’t manually edited the theme’s files, you can delete the whole “thedaily” folder, then put up a fresh copy from the 1.7.0 zip. This will make sure you don’t have any old files from old versions left over.

1 Like

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