Undefined array key "Drupal_visitor_autologout_login"

Created on 6 March 2023, over 1 year ago
Updated 2 October 2023, 9 months ago

Problem/Motivation

I see PHP warnings in the log:
Warning: Undefined array key "Drupal_visitor_autologout_login" in Drupal\autologout\AutologoutManager->getRemainingTime() (Line 254 in /app/docroot/modules/contrib/autologout/src/AutologoutManager.php)

Steps to reproduce

1. Log in
2*. On /admin/config/people/autologout enable "Logout user regardless of activity"
3. Delete the "Drupal.visitor.autologout_login" cookie
4. Open /autologout_ajax_set_last
5. See the php error in the log /admin/reports/dblog

*Step 2 is not necessary if πŸ› getRemainingTime treats logout_regardless_of_activity as always active RTBC patch is not applied.

Proposed resolution

Before using the cookie, check if it is set.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary Pasqualle πŸ‡­πŸ‡Ί Budapest

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.

  • First commit to issue fork.
Production build 0.69.0 2024