Search Results - undefined array key "#conjunction" in prepareKeys()

Created on 5 January 2023, over 2 years ago
Updated 26 March 2023, about 2 years ago

Problem/Motivation

Rendered search results cause warning errors on every single record per page set.
The warning errors are logged in the db log but does not display errors to visitors nor cause functional errors preventing rendering or interactivity.

Steps to reproduce

View a result set generates an error per record for the paging set.

Drupal - 9.5.1
Search API - 8.x-1.28
Search API DB - 8.x-1.28

PHP - 8.0

Warning: Undefined array key "#conjunction" in Drupal\search_api_db\Plugin\search_api\backend\Database->prepareKeys() (line 1861 of /docroot/modules/contrib/search_api/modules/search_api_db/src/Plugin/search_api/backend/Database.php)
#0 /docroot/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 /docroot/modules/contrib/search_api/modules/search_api_db/src/Plugin/search_api/backend/Database.php(1861): _drupal_error_handler()
#2 /docroot/modules/contrib/search_api/modules/search_api_db/src/Plugin/search_api/backend/Database.php(2309): Drupal\search_api_db\Plugin\search_api\backend\Database->prepareKeys()
#3 /docroot/modules/contrib/search_api/modules/search_api_db/src/Plugin/search_api/backend/Database.php(2258): Drupal\search_api_db\Plugin\search_api\backend\Database->createDbCondition()
#4 /docroot/modules/contrib/search_api/modules/search_api_db/src/Plugin/search_api/backend/Database.php(1813): Drupal\search_api_db\Plugin\search_api\backend\Database->createDbCondition()
#5 /docroot/modules/contrib/search_api/modules/search_api_db/src/Plugin/search_api/backend/Database.php(2542): Drupal\search_api_db\Plugin\search_api\backend\Database->createDbQuery()
#6 /docroot/modules/contrib/search_api/modules/search_api_db/src/Plugin/search_api/backend/Database.php(1689): Drupal\search_api_db\Plugin\search_api\backend\Database->getFacets()
#7 /docroot/modules/contrib/search_api/src/Entity/Server.php(473): Drupal\search_api_db\Plugin\search_api\backend\Database->search()
#8 /docroot/modules/contrib/search_api/src/Query/Query.php(539): Drupal\search_api\Entity\Server->search()
#9 /docroot/modules/contrib/search_api/src/Plugin/views/query/SearchApiQuery.php(617): Drupal\search_api\Query\Query->execute()
#10 /docroot/core/modules/views/src/ViewExecutable.php(1431): Drupal\search_api\Plugin\views\query\SearchApiQuery->execute()
#11 /docroot/core/modules/views/src/ViewExecutable.php(1459): Drupal\views\ViewExecutable->execute()
#12 /docroot/core/modules/views/src/Plugin/views/display/Block.php(131): Drupal\views\ViewExecutable->render()
#13 /docroot/core/modules/views/src/ViewExecutable.php(1635): Drupal\views\Plugin\views\display\Block->execute()
#14 /docroot/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay()
#15 /docroot/core/modules/views/src/Plugin/Block/ViewsBlock.php(59): Drupal\views\Element\View::preRenderViewElement()
#16 /docroot/core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php(106): Drupal\views\Plugin\Block\ViewsBlock->build()
#17 [internal function]: Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray->onBuildRender()
#18 /docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#19 /docroot/core/modules/layout_builder/src/SectionComponent.php(90): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#20 /docroot/core/modules/layout_builder/src/Section.php(88): Drupal\layout_builder\SectionComponent->toRenderArray()
#21 /docroot/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(316): Drupal\layout_builder\Section->toRenderArray()
#22 /docroot/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php(275): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildSections()
#23 /docroot/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(340): Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple()
#24 /docroot/core/modules/node/src/NodeViewBuilder.php(24): Drupal\Core\Entity\EntityViewBuilder->buildComponents()
#25 /docroot/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(282): Drupal\node\NodeViewBuilder->buildComponents()
#26 /docroot/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(239): Drupal\Core\Entity\EntityViewBuilder->buildMultiple()
#27 [internal function]: Drupal\Core\Entity\EntityViewBuilder->build()
#28 /docroot/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array()
#29 /docroot/core/lib/Drupal/Core/Render/Renderer.php(788): Drupal\Core\Render\Renderer->doTrustedCallback()
#30 /docroot/core/lib/Drupal/Core/Render/Renderer.php(374): Drupal\Core\Render\Renderer->doCallback()
#31 /docroot/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender()
#32 /docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(242): Drupal\Core\Render\Renderer->render()
#33 /docroot/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#34 /docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(243): Drupal\Core\Render\Renderer->executeInRenderContext()
#35 /docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
#36 /docroot/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#37 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#38 /docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#39 /vendor/symfony/http-kernel/HttpKernel.php(174): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#40 /vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#41 /docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#42 /docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#43 /docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#44 /docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#45 /docroot/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#46 /docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#47 /docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#48 /vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#49 /docroot/core/lib/Drupal/Core/DrupalKernel.php(713): Stack\StackedHttpKernel->handle()
#50 /docroot/index.php(19): Drupal\Core\DrupalKernel->handle()
#51 {main}
๐Ÿ› Bug report
Status

Postponed: needs info

Version

1.28

Component

Database backend

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States emptyvoid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024