TypeError: Symfony\Component\HttpFoundation\Session\Flash\FlashBag::peek(): Argument #1 ($type) must be of type string, array given, called in /home/test/public_html/atms_test/core/lib/Drupal/Core/Messenger/Messenger.php on line 59 in Symfony\Component\Ht

Created on 31 December 2023, over 1 year ago

Getting this error when trying to bulk update unaliased urls at /admin/config/search/path/update_bulk
The batch screen loads and dies after a while with this message. Suspecting some resource limit is hit, but still debugging.

Drupal 10.2.0
php 8.1

The only similar bug I found was this https://www.drupal.org/project/autoslave/issues/3280448

Drupal\pathauto\Form\PathautoBulkUpdateForm::batchProcessThe website encountered an unexpected error. Try again later.

TypeError: Symfony\Component\HttpFoundation\Session\Flash\FlashBag::peek(): Argument #1 ($type) must be of type string, array given, called in .../core/lib/Drupal/Core/Messenger/Messenger.php on line 59 in Symfony\Component\HttpFoundation\Session\Flash\FlashBag->peek() (line 62 of vendor/symfony/http-foundation/Session/Flash/FlashBag.php).
Drupal\Core\Messenger\Messenger->addMessage() (Line: 180)
Drupal\pathauto\Form\PathautoBulkUpdateForm::batchFinished() (Line: 457)
_batch_finished() (Line: 99)
_batch_page() (Line: 52)
Drupal\system\Controller\BatchController->batchPage()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)
🐛 Bug report
Status

Active

Version

10.2

Component
Batch 

Last updated 18 days ago

Created by

🇭🇺Hungary giorgio79

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

Comments & Activities

Production build 0.71.5 2024