Argument #1 ($array) must be of type array, null given

Created on 3 October 2023, about 1 year ago
Updated 27 October 2023, about 1 year ago

Problem/Motivation

In some cases the LimitLanguageOptionsCallback.php may throw:

The website encountered an unexpected error. Please try again later.
TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 55 of modules/contrib/language_access/src/LimitLanguageOptionsCallback.php).

Steps to reproduce

- hard to say, but was able to trigger the problem on my configuration

Proposed resolution

- patch

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇵🇱Poland piotr pakulski Poland 🇪🇺

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

Comments & Activities

Production build 0.71.5 2024