Cartography Module Interfering with Universal Viewer


#1

We’re experiencing an issue with the Cartography 3.0.6 module where it will prevent Universal Viewer 3.5.8 from loading images, leading to UV showing its loading icon indefinitely. Uninstalling/Deactivating Cartography resolves the issue, but we need the module for our exhibits.

We receive the following error report every time the bug occurs:

2019-01-24T19:50:11+00:00 ERR (3): TypeError: Argument 1 passed to IiifServer\View\Helper\ImageSize::__construct() must be an instance of IiifServer\Mvc\Controller\Plugin\ImageSize, instance of Cartography\Mvc\Controller\Plugin\ImageSize given, called in /var/www/omeka-s/modules/IiifServer/src/Service/ViewHelper/ImageSizeFactory.php on line 15 and defined in /var/www/omeka-s/modules/IiifServer/src/View/Helper/ImageSize.php:20
Stack trace:
#0 /var/www/omeka-s/modules/IiifServer/src/Service/ViewHelper/ImageSizeFactory.php(15): IiifServer\View\Helper\ImageSize->__construct(Object(Cartography\Mvc\Controller\Plugin\ImageSize))
#1 /var/www/omeka-s/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(764): IiifServer\Service\ViewHelper\ImageSizeFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'imageSize', NULL)
#2 /var/www/omeka-s/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('imageSize')#3 /var/www/omeka-s/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php(141): Zend\ServiceManager\ServiceManager->get('imageSize')
#4 /var/www/omeka-s/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(376): Zend\ServiceManager\AbstractPluginManager->get('imageSize', NULL)
#5 /var/www/omeka-s/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(394): Zend\View\Renderer\PhpRenderer->plugin('imageSize')
#6 /var/www/omeka-s/modules/IiifServer/src/View/Helper/IiifManifest.php(470): Zend\View\Renderer\PhpRenderer->__call('imageSize', Array)
#7 /var/www/omeka-s/modules/IiifServer/src/View/Helper/IiifManifest.php(641): IiifServer\View\Helper\IiifManifest->_iiifThumbnail(Object(Omeka\Api\Representation\MediaRepresentation))
#8 /var/www/omeka-s/modules/IiifServer/src/View/Helper/IiifManifest.php(254): IiifServer\View\Helper\IiifManifest->_iiifCanvasImage(Object(Omeka\Api\Representation\MediaRepresentation), 1)
#9 /var/www/omeka-s/modules/IiifServer/src/View/Helper/IiifManifest.php(70): IiifServer\View\Helper\IiifManifest->buildManifestItem(Object(Omeka\Api\Representation\ItemRepresentation))
#10 /var/www/omeka-s/modules/IiifServer/src/Controller/PresentationController.php(154): IiifServer\View\Helper\IiifManifest->__invoke(Object(Omeka\Api\Representation\ItemRepresentation))
#11 /var/www/omeka-s/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(78): IiifServer\Controller\PresentationController->itemAction()
#12 /var/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#13 /var/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /var/www/omeka-s/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(106): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#15 /var/www/omeka-s/vendor/zendframework/zend-mvc/src/DispatchListener.php(138): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#16 /var/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#17 /var/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#18 /var/www/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#19 /var/www/omeka-s/index.php(21): Zend\Mvc\Application->run()
#20 {main}

Any ideas on how to fix this? It looks like the ServiceManager is returning a Cartography object instead of the right one, but I’m not sure where or why this is happening. Thanks in advance!