Warning: in_array() expects parameter 2 to be array, null given in user_default_page_user_logout()

Created on 1 November 2021, almost 3 years ago
Updated 7 July 2024, 3 months ago

When logging out I get this in the logs:

Warning: in_array() expects parameter 2 to be array, null given in user_default_page_user_logout() (line 51 of /var/www/html/web/modules/contrib/user_default_page/user_default_page.module)

it seems to me that there are two in_array, the second one should not be there, right?:

  if (in_array($route, in_array([
    'autologout.alt_logout',
    'autologout.ajax_logout',
  ]))) {
    return;
  }
🐛 Bug report
Status

Needs work

Version

9.0

Component

Code

Created by

🇬🇧United Kingdom pbattino Reading

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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