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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Comments

    foxrip created an issue. See original summary.

    foxrip’s picture

    StatusFileSize
    new1.22 KB
    foxrip’s picture

    Issue summary: View changes
    rajdip_755’s picture

    Status: Active » Needs review

    Hi @foxrip
    Changing the state of the issue to the "needs review" as you have already added a patch.

    rajdip_755’s picture

    StatusFileSize
    new187.81 KB
    new38.59 KB

    I have applied this patch. It's working fine for me.

    rajdip_755’s picture

    Status: Needs review » Reviewed & tested by the community
    neerajsingh’s picture

    Status: Reviewed & tested by the community » Fixed

    Status: Fixed » Closed (fixed)

    Automatically closed - issue fixed for 2 weeks with no activity.

    neerajsingh’s picture