Throws Notice on Login when destination is set

Created on 3 August 2022, almost 2 years ago
Updated 8 November 2023, 8 months ago

Problem/Motivation

Since 1.4 release after login with the destination set, you get two notices. This seems to have been introduced with this commit.
https://git.drupalcode.org/project/autologout/-/commit/1ae11d4a4c6e3fd1c...

Notice: Undefined offset: 1 in Drupal\autologout\EventSubscriber\AutologoutSubscriber->onRequest() (line 141 of autologout/src/EventSubscriber/AutologoutSubscriber.php).

Notice: Undefined offset: 1 in Drupal\autologout\EventSubscriber\AutologoutSubscriber->onRequest() (line 148 of autologout/src/EventSubscriber/AutologoutSubscriber.php).

Steps to reproduce

Ensure error logging is on and/or printing to the screen. Login to the site to the destination set eg: user/login/destination=
Note: There are notices as above.

Proposed resolution

Check that the variables in those lines are actually set before trying to look at the values.

Remaining tasks

Create a patch

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Anuprita Milton

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.69.0 2024