Warning: Undefined array key "#id" in antibot_form_alter()

Created on 4 October 2022, about 2 years ago
Updated 22 June 2023, over 1 year ago

Problem/Motivation

Trying to edit blocks in the context module results in the following errors from antibot:

Not sure if this is a context issue or antibot issue.

Warning: Undefined array key "#id" in antibot_form_alter() (line 66 of /www/dev/pol1-009/web/modules/contrib/antibot/antibot.module)
#0 /www/dev/pol1-009/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real(2, 'Undefined array...', '/www/dev/pol1-0...', 66)
#1 /www/dev/pol1-009/web/modules/contrib/antibot/antibot.module(66): _drupal_error_handler(2, 'Undefined array...', '/www/dev/pol1-0...', 66)
#2 /www/dev/pol1-009/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(562): antibot_form_alter(Array, Object(Drupal\Core\Form\FormState), 'block_form')
#3 /www/dev/pol1-009/web/modules/contrib/context/src/Reaction/Blocks/Form/BlockFormBase.php(292): Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object(Drupal\Core\Form\FormState), 'block_form')
#4 [internal function]: Drupal\context\Reaction\Blocks\Form\BlockFormBase->buildForm(Array, Object(Drupal\Core\Form\FormState), Object(Drupal\context\Entity\Context), 'blocks', '8e593b5f-c414-4...')
#5 /www/dev/pol1-009/web/core/lib/Drupal/Core/Form/FormBuilder.php(531): call_user_func_array(Array, Array)
#6 /www/dev/pol1-009/web/core/lib/Drupal/Core/Form/FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm('context_reactio...', Object(Drupal\Core\Form\FormState))
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\Path\PathMatcher->matchPath() (line 85 of /www/dev/pol1-009/web/core/lib/Drupal/Core/Path/PathMatcher.php)
#0 /www/dev/pol1-009/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real(8192, 'preg_match(): P...', '/www/dev/pol1-0...', 85)
#1 [internal function]: _drupal_error_handler(8192, 'preg_match(): P...', '/www/dev/pol1-0...', 85)
#2 /www/dev/pol1-009/web/core/lib/Drupal/Core/Path/PathMatcher.php(85): preg_match('/^(comment_comm...', NULL)
#3 /www/dev/pol1-009/web/modules/contrib/antibot/antibot.module(66): Drupal\Core\Path\PathMatcher->matchPath(NULL, 'comment_comment...')
#4 /www/dev/pol1-009/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(562): antibot_form_alter(Array, Object(Drupal\Core\Form\FormState), 'block_form')
#5 /www/dev/pol1-009/web/modules/contrib/context/src/Reaction/Blocks/Form/BlockFormBase.php(292): Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object(Drupal\Core\Form\FormState), 'block_form')
#6 [internal function]: Drupal\context\Reaction\Blocks\Form\BlockFormBase->buildForm(Array, Object(Drupal\Core\Form\FormState), Object(Drupal\context\Entity\Context), 'blocks', '8e593b5f-c414-4...')
#7 /www/dev/pol1-009/web/core/lib/Drupal/Core/Form/FormBuilder.php(531): call_user_func_array(Array, Array)
#8 /www/dev/pol1-009/web/core/lib/Drupal/Core/Form/FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm('context_reactio...', Object(Drupal\Core\Form\FormState))

Steps to reproduce

Edit any block in context and save.

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom mistergroove

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.

Production build 0.71.5 2024