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" }
↑View previous replies…
Truonglvgifsicle --version
LCDF Gifsicle 1.93
jpegoptim --version
jpegoptim v1.4.6 x86_64-redhat-linux-gnu
libjpeg version: 6b 27-Mar-1998
TruonglvI can't update PNGQuant unless I build from source.
I'm sorry; all images are optimized, but only after 1 hour+.
But still, those error logs filled up my admin page.
What is your pngquant, jpegoptim and gifscile version?
LCDF Gifsicle 1.93
jpegoptim --version
jpegoptim v1.4.6 x86_64-redhat-linux-gnu
libjpeg version: 6b 27-Mar-1998
pngquant is old. JPG images also not optimized?
I'm sorry; all images are optimized, but only after 1 hour+.
But still, those error logs filled up my admin page.