-
Notifications
You must be signed in to change notification settings - Fork 642
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
[4.2.2]: Duplicate image transformation with filename "null" #11852
Comments
Thanks for reporting that! We just released Craft 4.2.4 which we believe will resolve this going forward (#11863). Let us know if you continue to see it, though. |
Hi Brandon, we upgraded another customer directly from 3.7 to 4.2.4 and deleted the whole image transform index of the site before the migration. Now, after some days, we do have the same issue here: About 200 transformation rows in the imagetransforminx with filename = null. And not in every case a correct row in the table exists. We just deleted these rows now and see if they will popup again. |
@kringkaste it's worth noting that |
@brianjhanson Here is an example of the customer:
|
Are there any "Generating Transforms" jobs stuck in the queue by chance? Or are there any errors in the |
No errors in log, no stuck jobs in the queue :( But these rows are from a customer still running the 4.2.2 version. I deleted the rows from the 4.2.4 installation, so we have to wait for new ones. |
@brianjhanson I think the original bug is fixed with the update to 4.2.4. We could no longer find duplicate rows with Another thing I added to the feature request: The job should ignore image transformations already failed with an error #11970. |
What happened?
Description
We were wondering why the job
GeneratePendingTransforms
processes an increasing number of transformations over time. We have checked the transformation table in the database and found that duplicate entries are created in the database almost simultaneously for the same transformationString and assetId, whose only difference is that one entry havenull
as filename. But this does not always happen.Example:
The function getTransformIndex finds and returns the already existing transformation. But the wrong transformation will not be deleted, so on the next run, the transformation will be processed again.
But we think the real problem is the transformation with the filename with
null
. We have not been able to trace where these entries are generated and why.Craft CMS version
4.2.2
PHP version
8.1.7
Operating system and version
Linux 5.13.0-1031-aws
Database type and version
MySQL 5.7.38
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.10-23)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: