Undefined index: sidr_close_on_blur

Created on 18 January 2022, over 2 years ago
Updated 14 May 2023, about 1 year ago

Problem/Motivation

Error appears when saving the Sidr button trigger block

Steps to reproduce

  1. Create a Sidr trigger region in your theme as described in the Read me
  2. Add the Sidr button trigger block to the Sidr trigger region, configure it and Save the block
  3. Error appears at the top of the page, but the trigger block appears in the theme and it works properly. The error only appears when saving the trigger block.
 Notice: Undefined index: sidr_close_on_blur in Drupal\sidr\Plugin\Block\SidrTrigger->blockSubmit() (line 274 of modules\contrib\sidr\src\Plugin\Block\SidrTrigger.php).

Drupal\sidr\Plugin\Block\SidrTrigger->blockSubmit(Array, Object) (Line: 227)
Drupal\Core\Block\BlockBase->submitConfigurationForm(Array, Object) (Line: 354)
Drupal\block\BlockForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 592)
Drupal\Core\Form\FormBuilder->processForm('block_form', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
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: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Installed with Composer, as described in the Read me, Sidr library installed properly in the Libraries folder.

Drupal 9.3.2
Sidr 3.x-dev
Bootstrap5 theme

I just installed Sidr on another site with the same versions but with the Basic theme with no issues.

🐛 Bug report
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇨🇦Canada jmoruzi Brantford, ON

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.

  • 🇨🇦Canada jigarius Montréal

    Hi. It seems like this problem no longer exists. There is no reference to sidr_close_on_blur in the file you mentioned. Do you still get this error? If yes, then please feel free to reopen this issue.

Production build 0.69.0 2024