I recently used the Upgrade to Omeka-S plugin for Omeka Classic to generate a theme for Omeka-S based on the custom theme we had for our Omeka instance. However, when I go to view any of the sites in Omeka-S with the theme that was generated I receive the error:
A current item variable has not been set to this view.
Zend\View\Exception\InvalidArgumentException: A current item variable has not been set to this view. in /var/www/html/omeka-s/modules/UpgradeFromOmekaClassic/src/View/Helper/Upgrade.php:3050
#0 /var/www/html/omeka-s/themes/mutter/helper/custom.php(398): UpgradeFromOmekaClassic\View\Helper\Upgrade->get_current_record(‘item’)
#1 /var/www/html/omeka-s/themes/mutter/view/layout/layout.phtml(35): meta_tags()
#2 /var/www/html/omeka-s/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include(’/var/www/html/o…’)
#3 /var/www/html/omeka-s/index.php(36): Zend\View\Renderer\PhpRenderer->render(NULL)
I’ve looked at the lines indicated in layout.phtml file and the helper/custom.php file, but I can’t determine what the issue is.
Does anyone have any insight into this?
Digital Projects Librarian
College of Physicians of Philadelphia