Class 'Drupal\Component\EventDispatcher\Event' not found

Created on 10 May 2022, about 2 years ago
Updated 15 November 2023, 8 months ago

Problem/Motivation

This error is mentioned in https://www.drupal.org/project/views_bulk_operations/issues/3267483 β†’ , but that issue is "Closed (works as designed)". Comments in that ticket just say to upgrade to D9 or use 4.0.X

My site is running 9.0.14 and I've already tried 4.0.1. The error I got with that was
Argument 2 passed to Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null, string given, called in /app/docroot/modules/contrib/views_bulk_operations/src/Service/ViewsBulkOperationsActionManager.php on line 225

In 4.1 I get
Error: Class 'Drupal\Component\EventDispatcher\Event' not found in Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager->alterDefinitions() (line 216 of modules/contrib/views_bulk_operations/src/Service/ViewsBulkOperationsActionManager.php).

At this time, I'm stuck with 9.0, trying to upgrade to >9.1.0 isn't an option.

Steps to reproduce

Install VBO 4.1 on a Drupal 9.0 site

πŸ› Bug report
Status

Closed: duplicate

Version

4.1

Component

Core

Created by

πŸ‡ΊπŸ‡ΈUnited States sunset_bill

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom kenorb

    Shouldn't the dependency be updated to not include D8.x for 4.1.x?

    Currently 4.1.6 shows as supporting D8, but the code breaks.

    $ composer show drupal/views_bulk_operations
    name     : drupal/views_bulk_operations
    versions : * 4.1.6
    ...
    requires
    drupal/core ^8 || ^9
    
  • πŸ‡΅πŸ‡±Poland Graber

    We cannot update past releases.

  • πŸ‡¨πŸ‡΄Colombia gmangones

    @anybody super, work fine only this version. But is necesary to remove this module first or by composer.json

Production build 0.69.0 2024