Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image transform cannot be created after editing image. #254

Closed
BrandonJamesBorders opened this issue Sep 15, 2023 · 3 comments
Closed

Image transform cannot be created after editing image. #254

BrandonJamesBorders opened this issue Sep 15, 2023 · 3 comments

Comments

@BrandonJamesBorders
Copy link

Describe the bug

If you edit an image from Vizy the transform will not save and you get the following error:

image

image

Steps to reproduce

In a vizy editor with the image button enabled with at least one transform available:

  1. Select an image and click insert.
  2. After inserting, click on the image and select "Image Editor"
  3. Make a change (or don't) and click "Save"
  4. Observe the above error message.

This is because the image transform action requires the values (ID and transform handle) as a body parameter and not a query string parameter, which I confirmed by editing the AssetsController.php file from getRequiredBodyParam to getParam.

Regrettably, I don't know VUE so I don't feel comfortable making a PR.

Craft CMS version

4.5.5

Plugin version

2.1.9

Multi-site?

NO

Additional context

No response

@engram-design
Copy link
Member

Fixed for the next release. To get this early, run composer require verbb/vizy:"dev-craft-4 as 2.1.9"

@engram-design
Copy link
Member

Fixed in 2.1.10

@BrandonJamesBorders
Copy link
Author

Thanks @engram-design!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants