craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.29k stars 638 forks source link

[4.x]: Queue Image transformation for images that doesn't exist #13479

Open market-south opened 1 year ago

market-south commented 1 year ago

scenario1 scenario2

What happened?

Description

Hi, we have a multisite website that has assets for each site. Randomly, some of the images were not showing a thumbnail preview before the filename under the Assets volume. While reviewing the logs under storage/logs/queue.log, noticed Craft was unable to perform image transformation for those images. After further insights, found out the images don't exist in the web directory which clarified why Craft was logging craft\\errors\\ImageException.

But now we have two scenarios as follows:

1) Queue is now logging the same exception craft\\errors\\ImageException for an image that is not listed under Assets and I can confirm we don't have any file under that name. And also, I am not sure why it's logging "Failed to load SVG string" when the file is not an SVG. A screenshot is attached for reference.

2) Same as above but this time the image does exist in the CMS Assets. A screenshot is attached for reference.

Some of the logs for reference

Scenario 1 logs:

2023-07-24T02:41:53+00:00 [ERROR][] The file "Logo_HPD_Colour_61b970d7a9284.jpg" does not exist. {"trace":["#0 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(343): craft\\helpers\\ImageTransforms::getLocalImageSource(Object(craft\\elements\\Asset))","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#5 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#6 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097335', 'O:42:\"craft\\\\que...', '300', '1')","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097335', 'O:42:\"craft\\\\que...', '300', '1', '151344')","#8 [internal function]: yii\\queue\\cli\\Command->actionExec('1097335', '300', '1', '151344')","#9 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#10 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#11 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#12 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#14 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#15 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#17 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/craft(22): yii\\base\\Application->run()","#19 {main}"],"memory":27682144,"exception":"[object] (craft\\errors\\FsObjectNotFoundException(code: 0): The file \"Logo_HPD_Colour_61b970d7a9284.jpg\" does not exist. at /container/application/vendor/craftcms/cms/src/helpers/ImageTransforms.php:212)"} {"yii_category":"craft\\errors\\FsObjectNotFoundException"}
2023-07-24T02:41:53+00:00 [ERROR][] The file "Logo_HPD_Colour_61b970d7a9284.jpg" does not exist. {"trace":["#0 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(343): craft\\helpers\\ImageTransforms::getLocalImageSource(Object(craft\\elements\\Asset))","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#5 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#6 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097335', 'O:42:\"craft\\\\que...', '300', '1')","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097335', 'O:42:\"craft\\\\que...', '300', '1', '151344')","#8 [internal function]: yii\\queue\\cli\\Command->actionExec('1097335', '300', '1', '151344')","#9 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#10 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#11 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#12 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#14 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#15 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#17 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/craft(22): yii\\base\\Application->run()","#19 {main}"],"memory":27803200,"exception":"[object] (craft\\errors\\FsObjectNotFoundException(code: 0): The file \"Logo_HPD_Colour_61b970d7a9284.jpg\" does not exist. at /container/application/vendor/craftcms/cms/src/helpers/ImageTransforms.php:212)"} {"yii_category":"craft\\errors\\FsObjectNotFoundException"}
2023-07-24T02:41:54+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 600)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097336', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097336', 'O:42:\"craft\\\\que...', '300', '1', '151344')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1097336', '300', '1', '151344')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27019680,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}
2023-07-24T02:41:54+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 1200)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097336', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097336', 'O:42:\"craft\\\\que...', '300', '1', '151344')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1097336', '300', '1', '151344')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27188344,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}
2023-07-24T02:41:54+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 800)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097336', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097336', 'O:42:\"craft\\\\que...', '300', '1', '151344')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1097336', '300', '1', '151344')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27353472,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}
2023-07-24T02:41:54+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 800)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097336', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097336', 'O:42:\"craft\\\\que...', '300', '1', '151344')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1097336', '300', '1', '151344')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27518600,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}
2023-07-24T02:41:54+00:00 [ERROR][] The file "Logo_HPD_Colour_61b970d7a9284.jpg" does not exist. {"trace":["#0 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(343): craft\\helpers\\ImageTransforms::getLocalImageSource(Object(craft\\elements\\Asset))","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#5 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#6 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097336', 'O:42:\"craft\\\\que...', '300', '1')","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097336', 'O:42:\"craft\\\\que...', '300', '1', '151344')","#8 [internal function]: yii\\queue\\cli\\Command->actionExec('1097336', '300', '1', '151344')","#9 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#10 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#11 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#12 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#14 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#15 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#17 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/craft(22): yii\\base\\Application->run()","#19 {main}"],"memory":27682144,"exception":"[object] (craft\\errors\\FsObjectNotFoundException(code: 0): The file \"Logo_HPD_Colour_61b970d7a9284.jpg\" does not exist. at /container/application/vendor/craftcms/cms/src/helpers/ImageTransforms.php:212)"} {"yii_category":"craft\\errors\\FsObjectNotFoundException"}
2023-07-24T02:41:54+00:00 [ERROR][] The file "Logo_HPD_Colour_61b970d7a9284.jpg" does not exist. {"trace":["#0 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(343): craft\\helpers\\ImageTransforms::getLocalImageSource(Object(craft\\elements\\Asset))","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#5 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#6 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097336', 'O:42:\"craft\\\\que...', '300', '1')","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097336', 'O:42:\"craft\\\\que...', '300', '1', '151344')","#8 [internal function]: yii\\queue\\cli\\Command->actionExec('1097336', '300', '1', '151344')","#9 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#10 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#11 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#12 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#14 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#15 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#17 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/craft(22): yii\\base\\Application->run()","#19 {main}"],"memory":27803200,"exception":"[object] (craft\\errors\\FsObjectNotFoundException(code: 0): The file \"Logo_HPD_Colour_61b970d7a9284.jpg\" does not exist. at /container/application/vendor/craftcms/cms/src/helpers/ImageTransforms.php:212)"} {"yii_category":"craft\\errors\\FsObjectNotFoundException"}2023-07-24T02:42:46+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 800)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097337', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097337', 'O:42:\"craft\\\\que...', '300', '1', '151354')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1097337', '300', '1', '151354')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27520600,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}
2023-07-24T02:42:46+00:00 [ERROR][] The file "Logo_HPD_Colour_61b970d7a9284.jpg" does not exist. {"trace":["#0 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(343): craft\\helpers\\ImageTransforms::getLocalImageSource(Object(craft\\elements\\Asset))","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#5 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#6 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097337', 'O:42:\"craft\\\\que...', '300', '1')","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097337', 'O:42:\"craft\\\\que...', '300', '1', '151354')","#8 [internal function]: yii\\queue\\cli\\Command->actionExec('1097337', '300', '1', '151354')","#9 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#10 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#11 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#12 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#14 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#15 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#17 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/craft(22): yii\\base\\Application->run()","#19 {main}"],"memory":27684144,"exception":"[object] (craft\\errors\\FsObjectNotFoundException(code: 0): The file \"Logo_HPD_Colour_61b970d7a9284.jpg\" does not exist. at /container/application/vendor/craftcms/cms/src/helpers/ImageTransforms.php:212)"} {"yii_category":"craft\\errors\\FsObjectNotFoundException"}
2023-07-24T02:42:46+00:00 [ERROR][] The file "Logo_HPD_Colour_61b970d7a9284.jpg" does not exist. {"trace":["#0 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(343): craft\\helpers\\ImageTransforms::getLocalImageSource(Object(craft\\elements\\Asset))","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#5 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#6 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1097337', 'O:42:\"craft\\\\que...', '300', '1')","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1097337', 'O:42:\"craft\\\\que...', '300', '1', '151354')","#8 [internal function]: yii\\queue\\cli\\Command->actionExec('1097337', '300', '1', '151354')","#9 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#10 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#11 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#12 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#14 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#15 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#17 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/craft(22): yii\\base\\Application->run()","#19 {main}"],"memory":27805200,"exception":"[object] (craft\\errors\\FsObjectNotFoundException(code: 0): The file \"Logo_HPD_Colour_61b970d7a9284.jpg\" does not exist. at /container/application/vendor/craftcms/cms/src/helpers/ImageTransforms.php:212)"} {"yii_category":"craft\\errors\\FsObjectNotFoundException"}

Scenario 2 logs

2023-07-24T00:32:19+00:00 [ERROR][] The file "5900-MB.jpg" does not exist. {"trace":["#0 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(343): craft\\helpers\\ImageTransforms::getLocalImageSource(Object(craft\\elements\\Asset))","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#5 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#6 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1094977', 'O:42:\"craft\\\\que...', '300', '1')","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1094977', 'O:42:\"craft\\\\que...', '300', '1', '142359')","#8 [internal function]: yii\\queue\\cli\\Command->actionExec('1094977', '300', '1', '142359')","#9 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#10 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#11 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#12 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#14 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#15 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#17 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/craft(22): yii\\base\\Application->run()","#19 {main}"],"memory":27681688,"exception":"[object] (craft\\errors\\FsObjectNotFoundException(code: 0): The file \"5900-MB.jpg\" does not exist. at /container/application/vendor/craftcms/cms/src/helpers/ImageTransforms.php:212)"} {"yii_category":"craft\\errors\\FsObjectNotFoundException"}
2023-07-24T00:32:19+00:00 [ERROR][] The file "5900-MB.jpg" does not exist. {"trace":["#0 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(343): craft\\helpers\\ImageTransforms::getLocalImageSource(Object(craft\\elements\\Asset))","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#5 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#6 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1094977', 'O:42:\"craft\\\\que...', '300', '1')","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1094977', 'O:42:\"craft\\\\que...', '300', '1', '142359')","#8 [internal function]: yii\\queue\\cli\\Command->actionExec('1094977', '300', '1', '142359')","#9 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#10 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#11 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#12 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#14 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#15 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#17 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/craft(22): yii\\base\\Application->run()","#19 {main}"],"memory":27802752,"exception":"[object] (craft\\errors\\FsObjectNotFoundException(code: 0): The file \"5900-MB.jpg\" does not exist. at /container/application/vendor/craftcms/cms/src/helpers/ImageTransforms.php:212)"} {"yii_category":"craft\\errors\\FsObjectNotFoundException"}
2023-07-24T00:32:19+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 600)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1094978', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1094978', 'O:42:\"craft\\\\que...', '300', '1', '142359')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1094978', '300', '1', '142359')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27019416,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}
2023-07-24T00:32:19+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 1200)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1094978', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1094978', 'O:42:\"craft\\\\que...', '300', '1', '142359')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1094978', '300', '1', '142359')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27188080,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}
2023-07-24T00:32:19+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 800)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1094978', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1094978', 'O:42:\"craft\\\\que...', '300', '1', '142359')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1094978', '300', '1', '142359')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27353208,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}
2023-07-24T00:32:19+00:00 [ERROR][] Failed to load the SVG string. {"trace":["#0 /container/application/vendor/craftcms/cms/src/services/Images.php(219): craft\\image\\Raster->loadFromSVG('<?xml version=\"...')","#1 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(348): craft\\services\\Images->loadImage('/container/appl...', true, 800)","#2 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(453): craft\\imagetransforms\\ImageTransformer->generateTransformedImage(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#3 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(511): craft\\imagetransforms\\ImageTransformer->procureTransformedImage(Object(craft\\models\\ImageTransformIndex))","#4 /container/application/vendor/craftcms/cms/src/imagetransforms/ImageTransformer.php(102): craft\\imagetransforms\\ImageTransformer->ensureTransformUrlByIndexModel(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransformIndex))","#5 /container/application/vendor/craftcms/cms/src/queue/jobs/GeneratePendingTransforms.php(47): craft\\imagetransforms\\ImageTransformer->getTransformUrl(Object(craft\\elements\\Asset), Object(craft\\models\\ImageTransform), true)","#6 /container/application/vendor/yiisoft/yii2-queue/src/Queue.php(246): craft\\queue\\jobs\\GeneratePendingTransforms->execute(Object(craft\\queue\\Queue))","#7 /container/application/vendor/yiisoft/yii2-queue/src/cli/Queue.php(162): yii\\queue\\Queue->handleMessage('1094978', 'O:42:\"craft\\\\que...', '300', '1')","#8 /container/application/vendor/yiisoft/yii2-queue/src/cli/Command.php(146): yii\\queue\\cli\\Queue->execute('1094978', 'O:42:\"craft\\\\que...', '300', '1', '142359')","#9 [internal function]: yii\\queue\\cli\\Command->actionExec('1094978', '300', '1', '142359')","#10 /container/application/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)","#11 /container/application/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams(Array)","#12 /container/application/vendor/yiisoft/yii2/console/Controller.php(182): yii\\base\\Controller->runAction('exec', Array)","#13 /container/application/vendor/yiisoft/yii2/base/Module.php(552): yii\\console\\Controller->runAction('exec', Array)","#14 /container/application/vendor/yiisoft/yii2/console/Application.php(180): yii\\base\\Module->runAction('queue/exec', Array)","#15 /container/application/vendor/craftcms/cms/src/console/Application.php(90): yii\\console\\Application->runAction('queue/exec', Array)","#16 /container/application/vendor/yiisoft/yii2/console/Application.php(147): craft\\console\\Application->runAction('queue/exec', Array)","#17 /container/application/vendor/craftcms/cms/src/console/Application.php(121): yii\\console\\Application->handleRequest(Object(craft\\console\\Request))","#18 /container/application/vendor/yiisoft/yii2/base/Application.php(384): craft\\console\\Application->handleRequest(Object(craft\\console\\Request))","#19 /container/application/craft(22): yii\\base\\Application->run()","#20 {main}"],"memory":27518336,"exception":"[object] (craft\\errors\\ImageException(code: 420): Failed to load the SVG string. at /container/application/vendor/craftcms/cms/src/image/Raster.php:513)\n[previous exception] [object] (Imagine\\Exception\\RuntimeException(code: 420): Could not load image from string at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:140)\n[previous exception] [object] (ImagickException(code: 420): no decode delegate for this image format `SVG' @ error/blob.c/BlobToImage/361 at /container/application/vendor/pixelandtonic/imagine/src/Imagick/Imagine.php:135)"} {"yii_category":"craft\\errors\\ImageException"}

Steps to reproduce

  1. I'm sorry I am unable to locate the exact error to reproduce it.

Expected behaviour

The queue shouldn't be trying to transform the image that doesn't exists in the Assets volume.

Actual behaviour

Craft CMS version

4.2.5.2

PHP version

8.1.6

Operating system and version

Linux 5.4.0-51-generic

Database type and version

MySQL 5.7.32

Image driver and version

Imagick @PACKAGE_VERSION@ (ImageMagick 6.9.10-23)

Installed plugins and versions

i-just commented 1 year ago

Hi, thanks for reaching out.

It’s possible that the asset with the filename of “Logo_HPD_Colour_61b970d7a9284.jpg” existed at one point, it’s now deleted, but the image transform index for it still exists.

Have you tried clearing the Asset transform index? You can do that via Control Panel > Utilities > Caches or command line with php craft clear-caches/transform-indexes. I’d try that first and then check if those errors are no longer being added to the log.

As for the other case - it’s also possible for an asset to exist in the CMS, but its actual file could have been deleted from the disk. It might still show seemingly fine on the assets list if that particular transform has been generated and the transformed file wasn’t deleted, but new transforms can’t be generated because the original file is gone.

Prior to 4.4.0, the queue job responsible for generating transforms could be dealing with multiple assets (GeneratePendingTransforms - plural, was deprecated and replaced with GenerateImageTransform - singular, and it deals with a single image transform at the time (https://github.com/craftcms/cms/pull/12340)). That’s why you can see logs from one queue job regarding multiple assets being transformed.

I’d check if the file “5900-MB.jpg” still exists on the disk. You can do that manually, or you can go to the edit page for it in the Control Panel and try to download it via the “Download” button at the top.

As a side note, you can turn off transforming SVGs via https://craftcms.com/docs/4.x/config/general.html#transformsvgs.

market-south commented 1 year ago

Hi there,

Thanks for the detailed information, much appreciated.

Regarding the image "Logo_HPD_Colour_61b970d7a9284.jpg", you are right it existed a month ago. But the above logs are recorded after clearing the transform index via CP.

Regarding the other case - the image does exist in the web server and it's been assigned to an entry and visible in the front end of the website.

We have upgraded Craft to its latest version(4.4.16.1). We will monitor the logs and see whether the issue has been resolved.

Re SVG transform - please advise on whether disabling it will also not transform an actual SVG that may be added to the Asset volume in the future.

i-just commented 1 year ago

Thanks for the update!

Re SVG transform - please advise on whether disabling it will also not transform an actual SVG that may be added to the Asset volume in the future.

Yes, it will apply to the svgs added in the future.