Image Optimizer for XF 2.0

Image Optimizer for XF 2.0 [Paid] 2.2.1

PayPal: $29.00
A new error was logged after 10 minutes I updated to the latest version.
PHP:
Server error log
ErrorException: [tl] Image Optimizer: Failed to run command. $cmdOutput=[] src/XF/Error.php:77

Generated by: Unknown account Jan 12, 2023 at 9:16 AM

Stack trace
#0 src/XF.php(219): XF\Error->logError('[tl] Image Opti...', false)
#1 src/addons/Truonglv/ImageOptimizer/Images/AbstractImage.php(62): XF::logError('[tl] Image Opti...')
#2 src/addons/Truonglv/ImageOptimizer/Job/Optimizer.php(202): Truonglv\ImageOptimizer\Images\AbstractImage->optimize('/home/nginx/dom...')
#3 src/addons/Truonglv/ImageOptimizer/Job/Optimizer.php(123): Truonglv\ImageOptimizer\Job\Optimizer->optimizeImageFile('data://avatars/...', Object(Truonglv\ImageOptimizer\ContentData\Avatar))
#4 src/addons/Truonglv/ImageOptimizer/Job/Optimizer.php(69): Truonglv\ImageOptimizer\Job\Optimizer->processImages(Array, 'avatar', Object(XF\Timer), 1671868748)
#5 src/XF/Job/Manager.php(260): Truonglv\ImageOptimizer\Job\Optimizer->run(30)
#6 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 30)
#7 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 30)
#8 src/XF/Cli/Command/RunJobs.php(59): XF\Job\Manager->runQueue(false, 30)
#9 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))
#10 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))
#11 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))
#12 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 src/XF/Cli/Runner.php(111): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 cmd.php(15): XF\Cli\Runner->run()
#15 {main}

Request state
array(1) {
  ["cli"] => string(59) "/cmd.php xf:run-jobs"
}
 
A new error was logged after 10 minutes I updated to the latest version.
PHP:
Server error log
ErrorException: [tl] Image Optimizer: Failed to run command. $cmdOutput=[] src/XF/Error.php:77

Generated by: Unknown account Jan 12, 2023 at 9:16 AM

Stack trace
#0 src/XF.php(219): XF\Error->logError('[tl] Image Opti...', false)
#1 src/addons/Truonglv/ImageOptimizer/Images/AbstractImage.php(62): XF::logError('[tl] Image Opti...')
#2 src/addons/Truonglv/ImageOptimizer/Job/Optimizer.php(202): Truonglv\ImageOptimizer\Images\AbstractImage->optimize('/home/nginx/dom...')
#3 src/addons/Truonglv/ImageOptimizer/Job/Optimizer.php(123): Truonglv\ImageOptimizer\Job\Optimizer->optimizeImageFile('data://avatars/...', Object(Truonglv\ImageOptimizer\ContentData\Avatar))
#4 src/addons/Truonglv/ImageOptimizer/Job/Optimizer.php(69): Truonglv\ImageOptimizer\Job\Optimizer->processImages(Array, 'avatar', Object(XF\Timer), 1671868748)
#5 src/XF/Job/Manager.php(260): Truonglv\ImageOptimizer\Job\Optimizer->run(30)
#6 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 30)
#7 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 30)
#8 src/XF/Cli/Command/RunJobs.php(59): XF\Job\Manager->runQueue(false, 30)
#9 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))
#10 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))
#11 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))
#12 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 src/XF/Cli/Runner.php(111): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 cmd.php(15): XF\Cli\Runner->run()
#15 {main}

Request state
array(1) {
  ["cli"] => string(59) "/cmd.php xf:run-jobs"
}
dn18I got this error every few minutes on my admin error log. :|
 
View previous replies…
On the plus side, it still optimizes images, but I get those errors every few minutes.
dn18It looks like it's not optimizing attachments anymore due to the error above.

I uploaded sample images (2 x JPG/PNG/GIF) in the last 40 minutes, and the cron has already run and optimized several avatars but not my uploaded attachment.

Previous version works perfect Truonglv
 
It looks like it's not optimizing attachments anymore due to the error above.

I uploaded sample images (2 x JPG/PNG/GIF) in the last 40 minutes, and the cron has already run and optimized several avatars but not my uploaded attachment.

Previous version works perfect Truonglv
dn18By the way, I'm running PHP 8.1.14.
 
The error only happens after the recent update.
I'm using XenForo 2.2.11 also.

My server error logs are filled with those errors every few minutes.
dn18What is your pngquant, jpegoptim and gifscile version?
 
Back
Top