Issue with messenger

Created on 17 January 2024, 11 months ago
Updated 10 April 2024, 8 months ago

Problem/Motivation

After trying to login for the first time or using one time login link.
I'm getting:

TypeError: Symfony\Component\HttpFoundation\Session\Flash\FlashBag::peek(): Argument #1 ($type) must be of type string, array given, called in /var/www/html/web/core/lib/Drupal/Core/Messenger/Messenger.php on line 59 in Symfony\Component\HttpFoundation\Session\Flash\FlashBag->peek() (line 62 of /var/www/html/vendor/symfony/http-foundation/Session/Flash/FlashBag.php).

callstack:

#0 /var/www/html/web/core/lib/Drupal/Core/Messenger/Messenger.php(59): Symfony\Component\HttpFoundation\Session\Flash\FlashBag->peek(Array)
#1 /var/www/html/web/modules/contrib/first_time_login/first_time_login.module(115): Drupal\Core\Messenger\Messenger->addMessage('In order to opt...', Array)
#2 [internal function]: first_time_login_user_login(Object(Drupal\user\Entity\User))
#3 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(409): call_user_func_array(Object(Closure), Array)
#4 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388):

Steps to reproduce

Install fresh d10
install first time login
install one generated admin link
Generate a new user link and test it

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇦🇷Argentina foxrip

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

Comments & Activities

Production build 0.71.5 2024