doublesecretagency / craft-adwizard

Ad Wizard plugin for Craft CMS
Other
7 stars 8 forks source link

Issue with Image Transforms on Craft 4 #43

Closed LinneaHarts closed 2 months ago

LinneaHarts commented 1 year ago

I am getting an error when I try to pass in image transforms on craft 4.

getAssetTransforms is no longer supported in this way. https://docs.craftcms.com/api/v4/craft-web-application.html#public-methods

Here is the problem line: https://github.com/doublesecretagency/craft-adwizard/blob/v3-dev/src/models/Config.php#L150

And here's a screenshot of the error:

Screenshot 2023-05-10 at 16 27 18
lindseydiloreto commented 2 months ago

This is now fixed in v3.4.1 (Craft 4) and v4.1.1 (Craft 5).

Sorry this took such a long time to get sorted! 🙏