Error when VBO added to dblog reports page

Created on 30 April 2023, over 1 year ago
Updated 25 May 2023, over 1 year ago

Problem/Motivation

When you add the VBO field to the dblog reports page the UI starts giving AJAX errors, the field dialog stops behaving properly, manually closing the dialog and clocking the "cancel" button results in the following error:

Error: Typed property Drupal\views_bulk_operations\ViewsBulkOperationsEvent::$entityTypeIds must not be accessed before initialization in Drupal\views_bulk_operations\ViewsBulkOperationsEvent->getEntityTypeIds() (line 99 of modules/contrib/views_bulk_operations/src/ViewsBulkOperationsEvent.php).

Steps to reproduce

Add the VBO field to the dblog reports page.

Proposed resolution

Fix the bug.

Remaining tasks

Fix the bug ;-)

User interface changes

Adding the VBO field to the dblog page works as expected, or the plugin doesn't allow it to be added.

API changes

TBD

Data model changes

TBD

🐛 Bug report
Status

Needs review

Version

4.2

Component

User interface

Created by

🇺🇸United States DamienMcKenna NH, USA

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

Comments & Activities

  • Issue created by @DamienMcKenna
  • First commit to issue fork.
  • Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.2 & MySQL 8
    last update over 1 year ago
    Not currently mergeable.
  • @ranjit1032002 opened merge request.
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.2 & MySQL 8
    last update over 1 year ago
    14 pass
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India Ranjit1032002

    Created MR!62 for the issue mentioned, please review.
    Thank You.

  • 🇺🇸United States jvogt Seattle, WA

    #3 applies cleanly to 4.2.3 and deals with the original error, but now there's a new error:
    "Error: Typed property Drupal\views_bulk_operations\ViewsBulkOperationsEvent::$entityGetter must not be accessed before initialization in Drupal\views_bulk_operations\ViewsBulkOperationsEvent->getEntityGetter() (line 110 of modules/contrib/views_bulk_operations/src/ViewsBulkOperationsEvent.php)."

    Is it possibly something to do with dblog/watchdog entries not being entities ( https://www.drupal.org/project/drupal/issues/2401463 📌 Make dblog entities Postponed )?

Production build 0.71.5 2024