Error: Call to a member function getBackend() on null in Drupal\elasticsearch_connector\Plugin\search_api\processor\ExcludeSourceFields::supportsIndex()

Created on 16 December 2019, about 5 years ago
Updated 30 August 2024, 4 months ago

The following error occurs when clicking on Processors tab in Search API index settings:

Error: Call to a member function getBackend() on null in Drupal\elasticsearch_connector\Plugin\search_api\processor\ExcludeSourceFields::supportsIndex() (line 64 of modules/contrib/elasticsearch_connector/src/Plugin/search_api/processor/ExcludeSourceFields.php).
Drupal\elasticsearch_connector\Plugin\search_api\processor\ExcludeSourceFields::supportsIndex(Object)
call_user_func(Array, Object) (Line: 371)
Drupal\search_api\Form\IndexProcessorsForm->getAllProcessors() (Line: 103)
Drupal\search_api\Form\IndexProcessorsForm->form(Array, Object) (Line: 117)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 519)
Drupal\Core\Form\FormBuilder->retrieveForm('search_api_index_processors_form', Object) (Line: 276)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ› Bug report
Status

Postponed: needs info

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dealancer Washington D.C.

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

Comments & Activities

Not all content is available!

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

  • πŸ‡΅πŸ‡ΉPortugal dubois

    It's pretty easy to miss the radio buttons on the admin/config/search/search-api/add-index form and then end up unable to open the edit page for the index to fix one's mistake. The simple change in this module proposed by drunken monkey prevents it.

  • Status changed to Postponed: needs info 4 months ago
  • πŸ‡¨πŸ‡¦Canada mparker17 UTC-4

    @dealancer, can you confirm which version of elasticsearch_connector you are using, and if you are still getting an error?

    (I am cleaning up old issues as part of a big review of open issues for 🌱 [Meta] Roadmap for a stable release with security coverage Active : thank you for your patience with me)

Production build 0.71.5 2024