PHP 8.2 TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in array_filter()

Created on 13 November 2023, 8 months ago
Updated 21 November 2023, 7 months ago

Problem/Motivation

TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in array_filter() (line 36 of /web/modules/contrib/markdown/src/PluginManager/ExtensionCollection.php).

This causes some pages, such as the people index to not load.

> new ExtensionCollection($this->getContainer()->get('plugin.manager.markdown.extension'), $this);

returns null

This goes away after I clear caches a few times. Breaks the site in a number of places in the meantime.

Steps to reproduce

Install the markdown module. On installation the error will appear

Proposed resolution

I was going to write a conditional around the line listed above. Instead, the install program might refresh caches?

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia interlated

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024