It appears to be a Ludwig integration issue. If you had Ludwig enabled on your site, it will throw this error because ludwig.json
has not been updated accordingly.
I am still experiencing this issue with:
- Drupal Core 10.3.5
- Focal Point 2.x-dev + Patch #38 above
- Crop 2.4.0 + Patch #14 from the related Crop API issue π Crop API is not appending a hash when the image styles are converted to WEBP Needs review
Here are my steps to reproduce:
- Add an Image media type, with image styles.
- Upload a new Image media and save.
- From the full Media Listing (
/admin/content/media
), edit the new Image media. You should be redirected to the entity's full edit page, where the preview is displayed correctly. - On a form using the Media Library (I'm adding a block in Layout Builder), select your image. The widget should populate the image in the field.
- Go to edit a media item from the Media Library widget, and the preview image does not render correctly. I am noticing that the image src is correct (devtools displays its preview), but still not rendering.
tommasorandazzo β created an issue.
Marked the MR as a draft as this is not a solution. Collaboration with the maintainers is needed to separate the change between releases, however this MR allows a temporary workaround without targeting a specific commit hash.
tommasorandazzo β created an issue.
tommasorandazzo β created an issue.
tommasorandazzo β created an issue.
tommasorandazzo β made their first commit to this issueβs fork.
Working for me.
Drupal 10.2.0, PHP 8.2.
froboy β credited tommasorandazzo β .
This resolves the issue for me for 8.x-1.3!
tommasorandazzo β created an issue.
tommasorandazzo β made their first commit to this issueβs fork.
tommasorandazzo β made their first commit to this issueβs fork.
I made a branch and merge request with changes from your patch, chike.
tommasorandazzo β made their first commit to this issueβs fork.
I believe you're right, saschaeggi. The proposed solutions being discussed in the other issue should suffice here. Thanks!
tommasorandazzo β created an issue.