Dkf
Active member
Can I find out which image_id or post_id is causing the issue?
Code:
php cmd.php xf:run-jobs --manual-only --max-execution-time 0
In Imagick.php line 275:
Optimize image layers failed
xf:run-jobs [--max-execution-time [MAX-EXECUTION-TIME]] [--wait] [--manual-only]
--------------------
ImagickException: Optimize image layers failed src/XF/Image/Imagick.php:275
#0 src/XF/Image/Imagick.php(275): Imagick->optimizeImageLayers()
#1 src/XF/Service/Attachment/Preparer.php(251): XF\Image\Imagick->save('/home/site/www...')
#2 src/XF/Service/Attachment/Preparer.php(56): XF\Service\Attachment\Preparer->generateAttachmentThumbnail('/home/site/www...', NULL, NULL)
#3 src/XF/Service/Attachment/Preparer.php(38): XF\Service\Attachment\Preparer->insertDataFromFile(Object(XF\FileWrapper), 0, Array)
#4 src/addons/Andy/ConvertImageAll/Job/ConvertImageAll.php(557): XF\Service\Attachment\Preparer->insertAttachment(Object(XF\Attachment\Post), Object(XF\FileWrapper), Object(xenMade\LAU\XF\Entity\User), 'b1f085da94e23e4...')
#5 src/XF/Job/AbstractRebuildJob.php(42): Andy\ConvertImageAll\Job\ConvertImageAll->rebuildById(62932643)
#6 src/XF/Job/Manager.php(260): XF\Job\AbstractRebuildJob->run(8)
#7 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#8 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#9 src/XF/Cli/Command/RunJobs.php(59): XF\Job\Manager->runQueue(true, 8)
#10 src/vendor/symfony/console/Command/Command.php(255): XF\Cli\Command\RunJobs->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 src/vendor/symfony/console/Application.php(992): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 src/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\RunJobs), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 src/XF/Cli/Runner.php(111): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 cmd.php(15): XF\Cli\Runner->run()
#16 {main}
array(1) {
["cli"] => string(56) "cmd.php xf:run-jobs --manual-only --max-execution-time 0"
}
Last edited: