Advanced search not working

Hi there!

Advances search gives the error below. I believe that this happened after I installed these modules (one of them asked me to createq the “vendor” directory or something like this, I don’t remember): Universal Viewer, IIIF Server, PDF Embed. How to solve this? Thanks

Omeka S encountered an error

Zend\View\Exception\InvalidArgumentException
Array provided to Escape helper, but flags do not allow recursion

Details:

Zend\View\Exception\InvalidArgumentException: Array provided to Escape helper, but flags do not allow recursion in /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Helper/Escaper/AbstractHelper.php:56
Stack trace:
#0 /var/www/omeka-s/lod/vendor/zendframework/zend-form/src/View/Helper/AbstractHelper.php(248): Zend\View\Helper\Escaper\AbstractHelper->__invoke(Array)
#1 /var/www/omeka-s/lod/vendor/zendframework/zend-form/src/View/Helper/FormSelect.php(135): Zend\Form\View\Helper\AbstractHelper->createAttributesString(Array)
#2 /var/www/omeka-s/lod/vendor/zendframework/zend-form/src/View/Helper/FormSelect.php(90): Zend\Form\View\Helper\FormSelect->render(Object(Zend\Form\Element\Select))
#3 [internal function]: Zend\Form\View\Helper\FormSelect->__invoke(Object(Zend\Form\Element\Select))
#4 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(Zend\Form\View\Helper\FormSelect), Array)
#5 /var/www/omeka-s/lod/modules/CSSEditor/src/View/Helper/SiteSelect.php(17): Zend\View\Renderer\PhpRenderer->__call(‘formSelect’, Array)
#6 [internal function]: CSSEditor\View\Helper\SiteSelect->__invoke(Array)
#7 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(CSSEditor\View\Helper\SiteSelect), Array)
#8 /var/www/omeka-s/lod/application/view/common/advanced-search/site-pool.phtml(16): Zend\View\Renderer\PhpRenderer->__call(‘siteSelect’, Array)
#9 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include(’/var/www/omeka-…’)
#10 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Helper/Partial.php(61): Zend\View\Renderer\PhpRenderer->render(NULL, NULL)
#11 [internal function]: Zend\View\Helper\Partial->__invoke(‘common/advanced…’, Array)
#12 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(Zend\View\Helper\Partial), Array)
#13 /var/www/omeka-s/lod/application/view/common/advanced-search.phtml(28): Zend\View\Renderer\PhpRenderer->__call(‘partial’, Array)
#14 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include(’/var/www/omeka-…’)
#15 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Helper/Partial.php(61): Zend\View\Renderer\PhpRenderer->render(NULL, NULL)
#16 [internal function]: Zend\View\Helper\Partial->__invoke(‘common/advanced…’, Array)
#17 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(Zend\View\Helper\Partial), Array)
#18 /var/www/omeka-s/lod/application/view/omeka/site/item-set/search.phtml(9): Zend\View\Renderer\PhpRenderer->__call(‘partial’, Array)
#19 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include(’/var/www/omeka-…’)
#20 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render(NULL)
#21 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/View.php(236): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#22 /var/www/omeka-s/lod/vendor/zendframework/zend-view/src/View.php(200): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#23 /var/www/omeka-s/lod/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#24 /var/www/omeka-s/lod/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#25 /var/www/omeka-s/lod/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#26 /var/www/omeka-s/lod/vendor/zendframework/zend-mvc/src/Application.php(367): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#27 /var/www/omeka-s/lod/vendor/zendframework/zend-mvc/src/Application.php(348): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#28 /var/www/omeka-s/lod/index.php(21): Zend\Mvc\Application->run()

Sorry! It was the command “composer install” that needed the write access to vendor folder.

The stack trace mentions CSSEditor module. Try to disable it.

That worked. Thanks!