D10 compatibility issue - ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object

Created on 31 October 2023, about 1 year ago
Updated 13 November 2023, about 1 year ago

Steps to reproduce

Create an image style using the Automated Crop plugin
Error get:
TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /Users/rosemary/Sites/iknew-drupal/web/modules/contrib/automated_crop/src/Plugin/ImageEffect/AutomatedCropEffect.php on line 268 in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (line 89 of core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php).

Temporary workaround is to use the Manual Crop plugin (which essentially does the same thing) and make sure to use and set the Automated Crop provider

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rosemarystanley

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

Comments & Activities

Production build 0.71.5 2024