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

Created on 8 February 2024, 10 months ago
Updated 27 August 2024, 3 months ago

Problem/Motivation

On Drupal 10.2.2 with VBO 4.2.6 I have a view of taxonomy terms with VBO actions. If I select a term and submit an action (e.g. save term, or unpublish term) I get a fatal error: TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 1028 of modules/contrib/views_bulk_operations/src/Plugin/views/field/ViewsBulkOperationsBulkForm.php).
On inspection of line 1028, $form_state->getValue($this->options['id']) returns null. $this->options['id'] is "views_bulk_operations_bulk_form".

If I revert the site to VBO 4.2.5 I can submit the action and see the batch UI and the term is unpublished as expected.

🐛 Bug report
Status

Needs review

Version

4.2

Component

Core

Created by

🇳🇿New Zealand jonathan_hunt

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