[With Context module] Undefined index: id in Drupal\facets\Plugin\Block\FacetBlock->blockSubmit()

Created on 27 July 2018, over 6 years ago
Updated 11 March 2025, 23 days ago

Hi There,

When Using context module (drupal/context:dev-4.x#e335619) and saving, the below error appears.

Seems to be related to #2826449 where code was introduced but only works for drupal core block structure layout, not context module.

Notice: Undefined index: id in Drupal\facets\Plugin\Block\FacetBlock->blockSubmit() (line 162 of modules\contrib\facets\src\Plugin\Block\FacetBlock.php).
Drupal\facets\Plugin\Block\FacetBlock->blockSubmit(Array, Object) (Line: 227)
Drupal\Core\Block\BlockBase->submitConfigurationForm(Array, Object) (Line: 649)
Drupal\context\Plugin\ContextReaction\Blocks->submitConfigurationForm(Array, Object) (Line: 186)
Drupal\context_ui\Form\ContextFormBase->handleReactions(Array, Object) (Line: 127)
Drupal\context_ui\Form\ContextFormBase->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 589)
Drupal\Core\Form\FormBuilder->processForm('context_edit_form', Array, Object) (Line: 318)
Drupal\Core\Form\FormBuilder->buildForm('context_edit_form', Object) (Line: 74)
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: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
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: 666)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia silverham

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

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.

  • πŸ‡§πŸ‡ͺBelgium borisson_ Mechelen, πŸ‡§πŸ‡ͺ

    I don't think we should be fixing this in facets and instead it should be fixed in context, closing this issue as outdated.

  • πŸ‡¦πŸ‡ΊAustralia silverham

    Suggesting to add β€˜needs follow up’ tag so issue can related to a new or existing follow issue in context module then closed once follow-up is created. Otherwise link is lost.

Production build 0.71.5 2024