Hello,
I tried to install AdvancedSearch 3.4.21 with solr 0.16.0 on omeka S 4.0.4 but when I try to add a new search engine, I have the following error:
Error
Class "Search\Adapter\AbstractAdapter" not found
Details:
Error: Class "Search\Adapter\AbstractAdapter" not found in /var/www/html/modules/Solr/src/Adapter.php:38
Stack trace:
#0 /var/www/html/vendor/laminas/laminas-loader/src/StandardAutoloader.php(309): include()
#1 /var/www/html/vendor/laminas/laminas-loader/src/StandardAutoloader.php(220): Laminas\Loader\StandardAutoloader->loadClass('Solr\\Adapter', 'namespaces')
#2 /var/www/html/modules/Solr/src/Service/AdapterFactory.php(43): Laminas\Loader\StandardAutoloader->autoload('Solr\\Adapter')
#3 /var/www/html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(615): Solr\Service\AdapterFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'solr', NULL)
#4 /var/www/html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(206): Laminas\ServiceManager\ServiceManager->doCreate('solr')
#5 /var/www/html/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(171): Laminas\ServiceManager\ServiceManager->get('solr')
#6 /var/www/html/modules/AdvancedSearch/src/Form/Admin/SearchEngineForm.php(77): Laminas\ServiceManager\AbstractPluginManager->get('solr')
#7 /var/www/html/modules/AdvancedSearch/src/Form/Admin/SearchEngineForm.php(59): AdvancedSearch\Form\Admin\SearchEngineForm->getAdaptersOptions()
#8 /var/www/html/vendor/laminas/laminas-form/src/FormElementManager.php(233): AdvancedSearch\Form\Admin\SearchEngineForm->init()
#9 /var/www/html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(630): Laminas\Form\FormElementManager->callElementInit(Object(Laminas\ServiceManager\ServiceManager), Object(AdvancedSearch\Form\Admin\SearchEngineForm))
#10 /var/www/html/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(234): Laminas\ServiceManager\ServiceManager->doCreate('AdvancedSearch\\...')
#11 /var/www/html/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(171): Laminas\ServiceManager\ServiceManager->get('AdvancedSearch\\...')
#12 /var/www/html/vendor/laminas/laminas-form/src/FormElementManager.php(336): Laminas\ServiceManager\AbstractPluginManager->get('AdvancedSearch\\...', NULL)
#13 /var/www/html/application/src/Mvc/Controller/Plugin/GetForm.php(33): Laminas\Form\FormElementManager->get('AdvancedSearch\\...', NULL)
#14 [internal function]: Omeka\Mvc\Controller\Plugin\GetForm->__invoke('AdvancedSearch\\...')
#15 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(275): call_user_func_array(Object(Omeka\Mvc\Controller\Plugin\GetForm), Array)
#16 /var/www/html/modules/AdvancedSearch/src/Controller/Admin/SearchEngineController.php(64): Laminas\Mvc\Controller\AbstractController->__call('getForm', Array)
#17 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(71): AdvancedSearch\Controller\Admin\SearchEngineController->addAction()
#18 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent))
#19 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#20 /var/www/html/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(97): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#21 /var/www/html/vendor/laminas/laminas-mvc/src/DispatchListener.php(132): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response))
#22 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent))
#23 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure))
#24 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(325): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent))
#25 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#26 {main}
If I activate the Search module version 0.15.4, I have the following error:
Omeka S encountered an error
Laminas\ServiceManager\Exception\InvalidServiceException
Plugin manager "Laminas\ServiceManager\AbstractPluginManager" expected an instance of type "Search\FormAdapter\FormAdapterInterface", but "AdvancedSearch\FormAdapter\MainFormAdapter" was received
Details:
Laminas\ServiceManager\Exception\InvalidServiceException: Plugin manager "Laminas\ServiceManager\AbstractPluginManager" expected an instance of type "Search\FormAdapter\FormAdapterInterface", but "AdvancedSearch\FormAdapter\MainFormAdapter" was received in /var/www/html/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php:196
Stack trace:
#0 /var/www/html/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(172): Laminas\ServiceManager\AbstractPluginManager->validate(Object(AdvancedSearch\FormAdapter\MainFormAdapter))
#1 /var/www/html/modules/AdvancedSearch/src/Api/Representation/SearchConfigRepresentation.php(148): Laminas\ServiceManager\AbstractPluginManager->get('main')
#2 /var/www/html/modules/AdvancedSearch/Module.php(1082): AdvancedSearch\Api\Representation\SearchConfigRepresentation->formAdapter()
#3 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): AdvancedSearch\Module->addHeaders(Object(Laminas\EventManager\Event))
#4 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\EventManager\Event))
#5 /var/www/html/application/src/View/Helper/Trigger.php(60): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\EventManager\Event))
#6 /var/www/html/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(407): Omeka\View\Helper\Trigger->__invoke('view.layout')
#7 /var/www/html/application/view/layout/layout.phtml(11): Laminas\View\Renderer\PhpRenderer->__call('trigger', Array)
#8 /var/www/html/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/var/www/html/a...')
#9 /var/www/html/index.php(36): Laminas\View\Renderer\PhpRenderer->render(NULL)
#10 {main}
Omeka S: 4.0.4
AdvancedSearch: 3.4.21
solr: 0.16.0
Common version: 3.4.56
Notice that the Search alone (without AdvancedSearch module) with solr works
Thank you for your help !