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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rosemarystanley created an issue. See original summary.

rosemaryreilman’s picture

Issue summary: View changes

josh.fabean made their first commit to this issue’s fork.

josh.fabean’s picture

I ran into this same issue, I looked at how other projects patched this issue for d10 and made the same changes. Here is one sample of another project patching the same issue: https://git.drupalcode.org/project/layout_builder_perms/-/merge_requests...

jrochate’s picture

Thanks @josh.fabean.

Same here, the patch solved it.

  • josh.fabean committed 3d9e1e55 on 3.x
    Issue #3398069: D10 compatibility issue - ContainerAwareEventDispatcher...
rosemaryreilman’s picture

Status: Active » Fixed

Thanks so much for the patch for this!
It has been a crazy couple of weeks for me. Merging the PR in and made a release 3.0.2

rosemaryreilman’s picture

Status: Fixed » Closed (fixed)