Ajax error - Trying to access array offset on value of type bool

Created on 1 October 2023, 9 months ago
Updated 27 December 2023, 6 months ago

Problem/Motivation

When opening the VBO dialog window by clicking the "Bulk operations: Content (Content)" item in Fields of a view, I get instead an Ajax warning:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /en/admin/structure/views/ajax/config-item/positions/panel_pane_1/field/views_bulk_operations
StatusText: OK
ResponseText:
Warning: Trying to access array offset on value of type bool in .../sites/all/modules/views_bulk_operations/plugins/operation_types/rules_component.inc on line 59
Warning: Trying to access array offset on value of type bool in .../sites/all/modules/views_bulk_operations/plugins/operation_types/rules_component.inc on line 59
Warning: Trying to access array offset on value of type bool in .../sites/all/modules/views_bulk_operations/plugins/operation_types/rules_component.inc on line 59
....

Steps to reproduce

  • Run Drupal with php 8
  • create a view, add some fields
  • add a VBO field and click it to configure
  • The described error should appear

Proposed resolution

Add an additional check to the rules_component.inc line 59 to make sure the $first_parameter is an array

πŸ› Bug report
Status

RTBC

Version

3.7

Component

Core

Created by

πŸ‡ΈπŸ‡°Slovakia sano

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

Comments & Activities

Production build 0.69.0 2024