Comments

Fabsgugu created an issue. See original summary.

fabsgugu’s picture

StatusFileSize
new484 bytes
fabsgugu’s picture

StatusFileSize
new484 bytes
fabsgugu’s picture

Status: Active » Needs review
fabsgugu’s picture

StatusFileSize
new484 bytes
geerlingguy’s picture

Status: Needs review » Reviewed & tested by the community

I started running into this, as the "laminas/laminas-stdlib": "^3.2", requirement means the "zendframework/zend-stdlib": "^3.0.1" is gone, and I'm now getting errors when hitting certain pages in the Search API settings for the server and index like the following:

Warning: require(/home/geerlingguy/domains/drupal8/vendor/composer/../zendframework/zend-stdlib/src/ArrayUtils.php): failed to open stream: No such file or directory in require() (line 112 of /home/geerlingguy/domains/drupal8/vendor/symfony/class-loader/ApcClassLoader.php)
#0 /home/geerlingguy/domains/drupal8/web/core/includes/bootstrap.inc(600): _drupal_error_handler_real(2, 'require(/home/g...', '/home/geerlingg...', 112, Array)
#1 /home/geerlingguy/domains/drupal8/vendor/symfony/class-loader/ApcClassLoader.php(112): _drupal_error_handler(2, 'require(/home/g...', '/home/geerlingg...', 112, Array)
#2 /home/geerlingguy/domains/drupal8/vendor/symfony/class-loader/ApcClassLoader.php(112): require()
#3 [internal function]: Symfony\Component\ClassLoader\ApcClassLoader->loadClass('Zend\\Stdlib\\Arr...')
#4 /home/geerlingguy/domains/drupal8/web/modules/contrib/search_api_solr/search_api_solr.module(165): spl_autoload_call('Zend\\Stdlib\\Arr...')
#5 /home/geerlingguy/domains/drupal8/web/modules/contrib/search_api_solr/src/Utility/Utility.php(1009): search_api_solr_merge_default_index_third_party_settings(Array)
#6 /home/geerlingguy/domains/drupal8/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(3684): Drupal\search_api_solr\Utility\Utility::getIndexSolrSettings(Object(Drupal\search_api\Entity\Index))
#7 /home/geerlingguy/domains/drupal8/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(3693): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->getIndexId(Object(Drupal\search_api\Entity\Index))
#8 /home/geerlingguy/domains/drupal8/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php(1182): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->getTargetedIndexId(Object(Drupal\search_api\Entity\Index))
#9 /home/geerlingguy/domains/drupal8/web/modules/contrib/search_api/src/Entity/Server.php(438): Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->deleteAllIndexItems(Object(Drupal\search_api\Entity\Index))
#10 /home/geerlingguy/domains/drupal8/web/modules/contrib/search_api/src/Form/ServerClearConfirmForm.php(73): Drupal\search_api\Entity\Server->deleteAllItems()
#11 [internal function]: Drupal\search_api\Form\ServerClearConfirmForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#12 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array(Array, Array)
#13 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#14 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/Form/FormBuilder.php(591): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#15 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/Form/FormBuilder.php(320): Drupal\Core\Form\FormBuilder->processForm('search_api_serv...', Array, Object(Drupal\Core\Form\FormState))
#16 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/Controller/FormController.php(91): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\search_api\Form\ServerClearConfirmForm), Object(Drupal\Core\Form\FormState))
#17 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#18 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#19 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#20 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#21 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#22 /home/geerlingguy/domains/drupal8/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#23 /home/geerlingguy/domains/drupal8/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#24 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /home/geerlingguy/domains/drupal8/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /home/geerlingguy/domains/drupal8/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /home/geerlingguy/domains/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /home/geerlingguy/domains/drupal8/web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /home/geerlingguy/domains/drupal8/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#33 {main}

I can confirm that this patch fixes the issue.

jonathan_hunt’s picture

Patch in #5 works for me also on Drupal 8.8.5, thanks.

fabsgugu’s picture

Issue summary: View changes

mkalkbrenner’s picture

Status: Reviewed & tested by the community » Fixed

Thanks @Fabsgugu. I already merged the patch and I'm preparing a release.

mkalkbrenner’s picture

Released as 4.0.1:
https://www.drupal.org/project/search_api_solr/releases/4.0.1

Thanks for your support!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.