Warning: Undefined array key 1 in Drupal\trash\EventSubscriber\TrashIgnoreSubscriber->onRequest()

Created on 6 June 2025, 6 days ago

With the changes in #3527916 I am now seeing the following error on the Google Tag configuration form, I don't know if it exists elsewhere yet or if this is an isolated case.

Warning: Undefined array key 1 in Drupal\trash\EventSubscriber\TrashIgnoreSubscriber->onRequest() (line 69 of /app/web/modules/contrib/trash/src/EventSubscriber/TrashIgnoreSubscriber.php). =>

In this case, for https://git.drupalcode.org/project/trash/-/commit/e07d5a4ef3851a9175265f... the $entity_form is simply "google_tag_container", which is breaking the explode().

I am also seeing this on a fresh install of simplytest.me with trash and google_tag installed.

Warning: Undefined array key 1 in Drupal\trash\EventSubscriber\TrashIgnoreSubscriber->onRequest() (line 68 of modules/contrib/trash/src/EventSubscriber/TrashIgnoreSubscriber.php).
Drupal\trash\EventSubscriber\TrashIgnoreSubscriber->onRequest() (Line: 246)
Symfony\Component\EventDispatcher\EventDispatcher::{closure:Symfony\Component\EventDispatcher\EventDispatcher::optimizeListeners():241}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 159)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)
πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jackfoust

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

Comments & Activities

Production build 0.71.5 2024