Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm running Drupal 8.4.0 and Search API 8.x-1.5
Steps to reproduce:
1) Enable Search API
2) Enable Database Search
3) Add a Server that uses the Database backend
4) Create an Index that uses Content as a datasource
5) Configure the datasource to use Article content types
6) Add the field_tags field as integer type
7) Create a view built from the content index
8) Select the ID and Title for the fields
9) Add Filter criteria and select Tags
10) Click Add and configure filter criteria
You receive the error message about Broken/missing handler. There are no details displayed.
Comment | File | Size | Author |
---|---|---|---|
#14 | 2917399-14--conditional_views_term_plugins.patch | 9.67 KB | drunken monkey |
|
Comments
Comment #2
vegantriathleteHere is the first of four error messages I see in dblog after doing the above steps:
Notice: Undefined index: original_configuration in Drupal\views\Plugin\views\filter\Broken->buildOptionsForm() (line 56 of /var/www/html/drupal8/core/modules/views/src/Plugin/views/BrokenHandlerTrait.php) #0 /var/www/html/drupal8/core/includes/bootstrap.inc(566): _drupal_error_handler_real(8, 'Undefined index...', '/var/www/html/d...', 56, Array) #1 /var/www/html/drupal8/core/modules/views/src/Plugin/views/BrokenHandlerTrait.php(56): _drupal_error_handler(8, 'Undefined index...', '/var/www/html/d...', 56, Array) #2 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php(165): Drupal\views\Plugin\views\filter\Broken->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState)) #3 [internal function]: Drupal\views_ui\Form\Ajax\ConfigHandler->buildForm(Array, Object(Drupal\Core\Form\FormState)) #4 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(514): call_user_func_array(Array, Array) #5 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(271): Drupal\Core\Form\FormBuilder->retrieveForm('views_ui_config...', Object(Drupal\Core\Form\FormState)) #6 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(212): Drupal\Core\Form\FormBuilder->buildForm('views_ui_config...', Object(Drupal\Core\Form\FormState)) #7 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}() #8 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(214): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #9 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(147): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState)) #10 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/AddHandler.php(34): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax') #11 [internal function]: Drupal\views_ui\Form\Ajax\AddHandler->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax', 'filter') #12 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #13 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #14 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #15 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #16 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #18 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #19 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/drupal8/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/drupal8/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #28 {main}.
Comment #3
vegantriathleteHere is the second of four error messages:
Warning: Invalid argument supplied for foreach() in Drupal\views\Plugin\views\filter\Broken->buildOptionsForm() (line 56 of /var/www/html/drupal8/core/modules/views/src/Plugin/views/BrokenHandlerTrait.php) #0 /var/www/html/drupal8/core/includes/bootstrap.inc(566): _drupal_error_handler_real(2, 'Invalid argumen...', '/var/www/html/d...', 56, Array) #1 /var/www/html/drupal8/core/modules/views/src/Plugin/views/BrokenHandlerTrait.php(56): _drupal_error_handler(2, 'Invalid argumen...', '/var/www/html/d...', 56, Array) #2 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php(165): Drupal\views\Plugin\views\filter\Broken->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState)) #3 [internal function]: Drupal\views_ui\Form\Ajax\ConfigHandler->buildForm(Array, Object(Drupal\Core\Form\FormState)) #4 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(514): call_user_func_array(Array, Array) #5 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(271): Drupal\Core\Form\FormBuilder->retrieveForm('views_ui_config...', Object(Drupal\Core\Form\FormState)) #6 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(212): Drupal\Core\Form\FormBuilder->buildForm('views_ui_config...', Object(Drupal\Core\Form\FormState)) #7 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}() #8 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(214): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #9 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(147): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState)) #10 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/AddHandler.php(34): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax') #11 [internal function]: Drupal\views_ui\Form\Ajax\AddHandler->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax', 'filter') #12 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #13 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #14 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #15 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #16 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #18 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #19 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/drupal8/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/drupal8/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #28 {main}.
Comment #4
vegantriathleteHere is the third of four error messages:
Notice: Undefined variable: items in Drupal\views\Plugin\views\filter\Broken->buildOptionsForm() (line 74 of /var/www/html/drupal8/core/modules/views/src/Plugin/views/BrokenHandlerTrait.php) #0 /var/www/html/drupal8/core/includes/bootstrap.inc(566): _drupal_error_handler_real(8, 'Undefined varia...', '/var/www/html/d...', 74, Array) #1 /var/www/html/drupal8/core/modules/views/src/Plugin/views/BrokenHandlerTrait.php(74): _drupal_error_handler(8, 'Undefined varia...', '/var/www/html/d...', 74, Array) #2 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php(165): Drupal\views\Plugin\views\filter\Broken->buildOptionsForm(Array, Object(Drupal\Core\Form\FormState)) #3 [internal function]: Drupal\views_ui\Form\Ajax\ConfigHandler->buildForm(Array, Object(Drupal\Core\Form\FormState)) #4 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(514): call_user_func_array(Array, Array) #5 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(271): Drupal\Core\Form\FormBuilder->retrieveForm('views_ui_config...', Object(Drupal\Core\Form\FormState)) #6 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(212): Drupal\Core\Form\FormBuilder->buildForm('views_ui_config...', Object(Drupal\Core\Form\FormState)) #7 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}() #8 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(214): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #9 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(147): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState)) #10 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/AddHandler.php(34): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax') #11 [internal function]: Drupal\views_ui\Form\Ajax\AddHandler->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax', 'filter') #12 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #13 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #14 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #15 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #16 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #18 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #19 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/drupal8/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/drupal8/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #28 {main}.
Comment #5
vegantriathleteHere is the fourth error message:
Warning: Invalid argument supplied for foreach() in template_preprocess_item_list() (line 1080 of /var/www/html/drupal8/core/includes/theme.inc) #0 /var/www/html/drupal8/core/includes/bootstrap.inc(566): _drupal_error_handler_real(2, 'Invalid argumen...', '/var/www/html/d...', 1080, Array) #1 /var/www/html/drupal8/core/includes/theme.inc(1080): _drupal_error_handler(2, 'Invalid argumen...', '/var/www/html/d...', 1080, Array) #2 /var/www/html/drupal8/core/lib/Drupal/Core/Theme/ThemeManager.php(287): template_preprocess_item_list(Array, 'item_list', Array) #3 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(437): Drupal\Core\Theme\ThemeManager->render('item_list', Array) #4 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(450): Drupal\Core\Render\Renderer->doRender(Array) #5 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(450): Drupal\Core\Render\Renderer->doRender(Array) #6 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(450): Drupal\Core\Render\Renderer->doRender(Array) #7 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(195): Drupal\Core\Render\Renderer->doRender(Array, true) #8 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(139): Drupal\Core\Render\Renderer->render(Array, true) #9 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() #10 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(140): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #11 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(221): Drupal\Core\Render\Renderer->renderRoot(Array) #12 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(147): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState)) #13 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/AddHandler.php(34): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax') #14 [internal function]: Drupal\views_ui\Form\Ajax\AddHandler->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax', 'filter') #15 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #16 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #18 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #19 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #20 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #21 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #22 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /var/www/html/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /var/www/html/drupal8/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /var/www/html/drupal8/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #31 {main}.
Comment #6
vegantriathleteOne thing I noticed when stepping through the code with VDebug was that the key in the
$base_tables
wassearch_api_index_content_index
. The actual table's name issearch_api_db_content_index
. I don't know if Views is just creating the key or if it is getting it from Search API / Database Search and whether this has anything to do with the issue. I'm still working through the debugging process to figure out what's going on.Comment #7
vegantriathleteOne thing that is totally confusing me right now (and I don't expect you to help me with VDebug): I've looked at the call stack in the error messages above and it seems to me that the program execution should hit line 165 in the ConfigHandler class. However, I'm not hitting any of the breakpoints I've set in that class. I am initiating the process by opening the link in a new tab for adding a filter and then selecting the Tags and clicking the Add and configure filter criteria button.
Comment #8
vegantriathleteI cleared cache, turned on the most verbose error logging, set breakpoints based on the first error message [except for #1 bootstrap.inc (566)] , deleted all dblog entries and then ran the test again.
I looked at which breakpoints I hit and have noted the stack entries that were skipped below.
The breakpoint at line 576 in Renderer.php was hit a number of times before the debugging ended, which I would imagine aligns with its appearance in the other error messages.
Comment #9
vegantriathleteOnce debugging ended, the Configure filter criterion: Broken/missing handler appeared with the messages:
Comment #10
drunken monkeyFirst of all, if you want a proper filter on a taxonomy term reference field, you should install the "Search API Taxonomy Term Handlers" module, which contains the appropriate handlers. Unfortunately, it was deemed necessary to split this module off in #2777483: Unmet dependencies to avoid making sites without the Taxonomy module unusable.
Anyways, even without the module, you should of course not get an error. Apparently, we were sloppy in splitting this off. The attached patch should fix this, though.
However, I now came up with a new idea we apparently overlooked in the issue for making this work without a separate module. Second patch attached, please try that (
2917399-10--conditional_views_term_plugins.patch
) first, without enabling the "Search API Taxonomy Term Handlers" module.Comment #11
andypostmakes sense to duplicate comment in annotation to point that it's not a bug
Comment #12
borisson_I've only looked at the code - but from that I agree with the idea of deprecating the taxonomy submodule.
Comment #13
zenimagine CreditAttribution: zenimagine commentedHello
I had the same problem. I added "field_article_tags" with "Full text". It created me missing fields in all index views of my site.
Fortunately this question was asked because I had to restore my site.
Comment #14
drunken monkeyThanks a lot for the feedback!
Attached is a revised patch with more comments (I had added the
@see search_api_views_plugins_argument_alter()
to make this clear, but I guess that's not completely obvious, so better safe than sorry) and ahook_requirements()
to tell site admins to uninstall the module.Please test/review!
Would of course be especially interesting to get someone to test this with a site that doesn't have the Taxonomy module enabled – but, on the other hand, our tests should catch any problems with that anyways.
Comment #16
drunken monkeyWell, I guess the changes are small enough to be acceptable without further testing/reviews.
Committed.
Thanks again for your input, everyone!
Comment #18
hanoiiI just went ahead and uninstalled the module after an update from 1.5 to 1.7 and it removed the view because of the old module dependency. I restored it from config and will test it but shouldn't have this been prevented by an update hook or the like?
Comment #19
PratikshaD CreditAttribution: PratikshaD as a volunteer and commentedI had same issue with one of my site, after few hours debug i found that this was happing due to delete field which was still existed in view.
I simply removed that field from seach field and then from view and its working now.