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

Created on 18 March 2025, 16 days ago

Problem/Motivation

Error message

TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 723 of /app/web/core/modules/views/src/Plugin/views/field/EntityField.php).

Also, confirmed in Drupal 10.4 and Drupal 11.0.

Steps to reproduce

  • Add node
  • Create to to display node ids with aggregation
  • Set aggregation settings of ID field in the view to COUNT
  • Save View
  • Change aggregation settings of ID field in the view to MAX results in AJAX error

Proposed resolution

TBA

Remaining tasks

NA

User interface changes

NA

Introduced terminology

NA

API changes

NA

Data model changes

NA

Release notes snippet

TBA

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

views.module

Created by

🇦🇺Australia VladimirAus Brisbane, Australia

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