TypeError when editing Image Styles

Created on 19 March 2024, 9 months ago
Updated 28 March 2024, 9 months ago

Problem/Motivation

  • automated_crop not properly saving cropped images after upgrading to 3.0.2

Steps to reproduce

We use

  • Went to edit image styles at /admin/config/media/image-styles
  • Chose to edit an image style that is using automated_crop, then click Save
  • Resulted in PHP error screen:

    TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /var/www/html/docroot/modules/contrib/automated_crop/src/Plugin/ImageEffect/AutomatedCropEffect.php on line 226 in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (line 89 of core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php).
    Drupal\automated_crop\Plugin\ImageEffect\AutomatedCropEffect->getCrop(Object) (Line: 111)
    Drupal\automated_crop\Plugin\ImageEffect\AutomatedCropEffect->applyEffect(Object) (Line: 329)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bsim26

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024