- Issue created by @bobburns
- π¬π§United Kingdom grzesag
I upgraded from 1.29 to 1.30 on Drupal 10.1.5 and looks good to me
are you seeing this for Drupal 10.1.5? where do you see this error? Settings or when searching?
Thanks
- πΊπΈUnited States bwong
Same issue on Drupal 9.5.11. Moved back to 1.28
- π§πͺBelgium geoffray
Same issue after upgrading from v1.28 / Drupal 9.4.15 to v1.30 / Drupal 9.5.11
- πΊπΈUnited States bobburns
ISSUE FOUND - ADD
use Drupal\search_api\Utility\DataTypeHelperInterface;
use Drupal\search_api\Utility\ThemeSwitcherInterface;to top of modules/search_api/src/Utility/FieldsHelper.php
- πΊπΈUnited States bobburns
Search api errors from Upgrade Status - coding deeper than I want to go to fix
- Status changed to Needs review
about 1 year ago 8:57am 23 October 2023 - last update
about 1 year ago 545 pass - π¦πΉAustria drunken monkey Vienna, Austria
Youβre right, thanks a lot for reporting!
Forgot again that we cannot just change the constructor parameters of services β¦
Proper way is a deprecation β patch attached and change record created β . Please test/review!
Iβll create a 1.31 release right away after committing this. - πΏπ¦South Africa niki v
I just ran into this error after doing some upgrades on a local d10 site. I can confirm that the patch solved it
- π«π·France Chris64 France
Same main error message in π Search_api error from drush errp. Closed: works as designed
-
drunken monkey β
committed 45a96186 on 8.x-1.x
Issue #3394738 by drunken monkey: Fixed fatal error after upgrade to 1....
-
drunken monkey β
committed 45a96186 on 8.x-1.x
- Status changed to Fixed
about 1 year ago 9:40am 29 October 2023 - π¦πΉAustria drunken monkey Vienna, Austria
Thanks for reporting back, good to hear it worked.
Merged. Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 9:02pm 13 November 2023 - πΊπΈUnited States rraney
I just used this patch in #12 because I was seeing the error for search_api version ^1.30.
After the patch is installed using composer, now I'm seeing this:
The website encountered an unexpected error. Please try again later. Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "search_api.theme_switcher". in Drupal\Component\DependencyInjection\Container->get() (line 157 of core/lib/Drupal/Component/DependencyInjection/Container.php). Drupal::service() (Line: 97) Drupal\search_api\Utility\FieldsHelper->__construct() (Line: 259) Drupal\Component\DependencyInjection\Container->createService() (Line: 177) Drupal\Component\DependencyInjection\Container->get() (Line: 267) Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::create() (Line: 21) Drupal\Core\Plugin\Factory\ContainerFactory->createInstance() (Line: 83) Drupal\Component\Plugin\PluginManagerBase->createInstance() (Line: 149) Drupal\search_api\Entity\Server->getBackend() (Line: 198) Drupal\search_api\Entity\Server->isAvailable() (Line: 93) search_api_requirements() call_user_func_array() (Line: 426) Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 405) Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 433) Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 109) Drupal\system\SystemManager->listRequirements() (Line: 93) Drupal\system\SystemManager->checkRequirements() (Line: 124) Drupal\system\Controller\SystemController->overview() call_user_func_array() (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 50) Drupal\ban\BanMiddleware->handle() (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23) Stack\StackedHttpKernel->handle() (Line: 718) Drupal\Core\DrupalKernel->handle() (Line: 19)