This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
johnny chen
Environment
"october/cms": "^2.0"
php: 7.4
queue driver : redis
The error was occurred only in using queue jobs.
it works when without use queue
I installed tinify/tinify on project path
composer require tinify/tinify
The Error :
Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Tinify\Tinify' not found in /data/sites/reading/plugins/datwork/toolskit/classes/services/Image.php:23
#0
/data/sites/reading/plugins/datwork/toolskit/classes/jobs/TinyPngJob.php(14):
Datwork\ToolsKit\Classes\Services\Image::tinyPng()
#1
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(88):
Datwork\ToolsKit\Classes\Jobs\TinyPngJob->fire()
#2
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(368):
Illuminate\Queue\Jobs\Job->fire()
#3
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(314):
Illuminate\Queue\Worker->process()
#4
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(134):
Illuminate\Queue\Worker->runJob()
#5
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(112):
Illuminate\Queue\Worker->daemon()
#6
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(96):
Illuminate\Queue\Console\WorkCommand->runWorker()
#7
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36):
Illuminate\Queue\Console\WorkCommand->handle()
#8
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Container/Util.php(37):
Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#9
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93):
Illuminate\Container\Util::unwrapIfClosure()
#10
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37):
Illuminate\Container\BoundMethod::callBoundMethod()
#11
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Container/Container.php(590):
Illuminate\Container\BoundMethod::call()
#12
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Console/Command.php(134):
Illuminate\Container\Container->call()
#13
/data/sites/reading/vendor/symfony/console/Command/Command.php(255):
Illuminate\Console\Command->execute()
#14
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Console/Command.php(121):
Symfony\Component\Console\Command\Command->run()
#15
/data/sites/reading/vendor/symfony/console/Application.php(1009):
Illuminate\Console\Command->run()
#16
/data/sites/reading/vendor/symfony/console/Application.php(273):
Symfony\Component\Console\Application->doRunCommand()
#17
/data/sites/reading/vendor/symfony/console/Application.php(149):
Symfony\Component\Console\Application->doRun()
#18
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Console/Application.php(93):
Symfony\Component\Console\Application->run()
#19
/data/sites/reading/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(131):
Illuminate\Console\Application->run()
#20
/data/sites/reading/artisan(35):
Illuminate\Foundation\Console\Kernel->handle()
#21
{main}
1-1 of 1