You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error reporting in an app for several different transforms trying to be generated over the past couple days after a recent release, though not sure exactly what has triggered it.
Steps to reproduce
not sure
Expected behavior
no error.
Actual behavior
Looks like a transform in this case id 57113 cannot be generated.
Looking at that ID in imagetransformindex table, it shows no filename:
Potentially shows a transformString value of some dimensions which I do not believe exist anywhere currently in the codebase.
filename is NULL in this row
the asset id in question is 106616, the asset exists and the source image exists, I can view it fine in the asset manager, I can also see it rendered at another set of dimensions with another transform on a particular template.
Is there a query I can run here to find out where this transform is being generated exactly?
It looks like this transform is defined in a template. Image transforms defined in the Control Panel are referred to in the imagetransformindex table by their handle. Image transforms defined in the template are described by their characteristics (width, height, mode etc.). More info on defining transforms in the templates can be found here: https://craftcms.com/docs/4.x/image-transforms.html#defining-transforms-in-your-templates.
Additionally, you might not recognise those dimensions if you’re using srcset sizes (https://craftcms.com/docs/4.x/image-transforms.html#generating-srcset-sizes). For example, having this in your code: {{ asset.getImg({ width: 300, height: 300 }, ['1.5x', '2x', '3x']) }} would generate 4 transforms _300x300_..., _450x450_..., _600x600_... and _900x900_....
The way I see it, you could try to remove just that one row, access the page this asset is used on and check the outcome - was the transform generated correctly, are there any new errors in the logs that could help us narrow it down, etc.? Alternatively, if you prefer not to touch the database yourself, you can clear the asset transform index cache (Control Panel > Utilities > Caches > Asset transform index) - this will remove all content of the imagetransformindex table.
Thanks @i-just I can confirm there were several rows in the imagetransformindex table where the error field had a value of 1. I think this was where we attempted AVIF transforms on a server and it fell over, we generate transforms on page load so I guess there was no queue task/job that showed an error, but this row always remained. I feel like there must be a better way to manage that rather than deleting these rows manually, but thanks.
What happened?
Description
Getting this error reporting in an app for several different transforms trying to be generated over the past couple days after a recent release, though not sure exactly what has triggered it.
Steps to reproduce
Expected behavior
no error.
Actual behavior
Looks like a transform in this case id
57113
cannot be generated.Looking at that ID in
imagetransformindex
table, it shows no filename:Potentially shows a transformString value of some dimensions which I do not believe exist anywhere currently in the codebase.
filename is
NULL
in this rowthe asset id in question is
106616
, the asset exists and the source image exists, I can view it fine in the asset manager, I can also see it rendered at another set of dimensions with another transform on a particular template.Is there a query I can run here to find out where this transform is being generated exactly?
Craft CMS version
"craftcms/cms": "4.3.6.1",
PHP version
php:8.1-fpm-alpine
Operating system and version
php:8.1-fpm-alpine
Database type and version
aurora
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: