The configuration property processor_id doesn't exist

Created on 7 May 2025, 5 days ago

Problem/Motivation

I have configuration inspector installed and it shows on my Status Report that there are some configuration errors on my search results view which includes facets. When I click on the link to see what the errors are, to potentially prepare a MR to offer here, I get this white screen of death error:

The website encountered an unexpected error. Try again later.

InvalidArgumentException: The configuration property processor_id doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 95 of core/lib/Drupal/Core/Config/Schema/ArrayElement.php).
Drupal\Core\Config\Schema\ArrayElement->get('display.default.display_options.filters.facets_aggregated_field.facet.processor_configs.exclude_specified_items.processor_id') (Line: 278)
Drupal\Core\Validation\Plugin\Validation\Constraint\ValidKeysConstraintValidator::getDynamicMessageParameters(Object) (Line: 90)
Drupal\Core\Validation\Plugin\Validation\Constraint\ValidKeysConstraintValidator->validate(Array, Object) (Line: 202)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateConstraints(Array, '00000000000048fe0000000000000000', Array) (Line: 154)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object) (Line: 164)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object, Array, 1) (Line: 106)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate(Object, NULL, NULL) (Line: 93)
Drupal\Core\TypedData\Validation\RecursiveValidator->validate(Object) (Line: 132)
Drupal\Core\TypedData\TypedData->validate() (Line: 355)
Drupal\config_inspector\ConfigInspectorManager->validateValues('views.view.search_content') (Line: 362)
Drupal\config_inspector\Controller\ConfigInspectorController->formatList('views.view.search_content', Object) (Line: 243)
Drupal\config_inspector\Controller\ConfigInspectorController->getList('views.view.search_content')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

If I turn off the first facet processor, exclude_specified_items which is identified in the trace, the error will change to reference my next active processor instead. So I don't think it is one specific processor that has a problem, but something broader applying to all processors.

Steps to reproduce

It is using search_api for the search index, then this view has the results including a couple of facets to filter further and those facets have some processors on them. Based on the error trace, I don't think search_api is relevant, just the facet processors, but I could be wrong.

Drupal core is 10.4.6.

PHP is 8.3.20.

config_inspector is 2.1.9.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada ryanrobinson_wlu

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

Merge Requests

Comments & Activities

  • Issue created by @ryanrobinson_wlu
  • First commit to issue fork.
  • Merge request !307Fix config schema → (Open) created by mxr576
  • Pipeline finished with Success
    about 9 hours ago
    Total: 818s
    #495073
  • 🇨🇦Canada ryanrobinson_wlu

    Confirmed that the change fixes the fatal error for me. Thank you!

    I can now view the report from config_inspector, which has the following two errors (in my case, on each of two different facet filters):

    'hierarchy' is not a supported key.
    
    'expand_hierarchy' is not a supported key.

    I'm guessing those are from the "build hierarchy tree" option.

Production build 0.71.5 2024