TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() ContentNotificationAddForm.php)

Created on 7 April 2023, over 1 year ago
Updated 27 June 2024, 2 months ago

Problem/Motivation

When attempting to add a content notification I am seeing a WSOD due to a fatal php error. This should be prevented via form validation. The error is:

TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 251 of /code/web/modules/contrib/content_notification/src/Form/ContentNotificationAddForm.php)

Steps to reproduce

Add all required fields on form and add a user email - leave roles blank. Attempt to save form.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.6

Component

Code

Created by

🇺🇸United States brooke_heaton

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024