craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.22k stars 626 forks source link

[4.x]: Editing an exisiting image transform or creating a new one causes an error #10826

Closed mauricioarangoosorio closed 2 years ago

mauricioarangoosorio commented 2 years ago

What happened?

Description

I tried to change the exiting height of an image transform, this generated an error

Steps to reproduce

  1. Edit an existing image transform or create a new one. Then click save.

Expected behavior

Confirmation of the change or creation of a new image transform.

Actual behavior

I get this error:

Unknown Property – [yii\base\UnknownPropertyException](http://www.yiiframework.com/doc-2.0/yii-base-unknownpropertyexception.html)
Setting unknown property: craft\events\ImageTransformEvent::assetTransform

Craft CMS version

Craft Solo 4.0.0-beta.3

PHP version

8.1.3

Operating system and version

Linux 5.10.76-linuxkit

Database type and version

MySQL 8.0.26

Image driver and version

Imagick 3.7.0 (ImageMagick 7.1.0-16)

Installed plugins and versions

brandonkelly commented 2 years ago

Thanks for reporting that! Fixed for the next release.

mauricioarangoosorio commented 2 years ago

Awesome, thank you!

brandonkelly commented 2 years ago

Craft 4.0.0-beta.4 is out now with that fix.