XF 2.2 Running xf:run-jobs returns An unexpected error occurred. Please try again later

This is in the server error logs
Code:
Error: Class "XF\Cli\Command\Rebuild\AbstractImageOptimizationCommand" not found src/addons/XFRM/Cli/Command/Rebuild/IconOptimization.php:7

Stack Trace
Code:
#0 src/vendor/composer/ClassLoader.php(576): include()
#1 src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('XFRM\\Cli\\Comman...')
#3 src/XF/Cli/Runner.php(383): class_exists('\\XFRM\\Cli\\Comma...')
#4 src/XF/Cli/Runner.php(371): XF\Cli\Runner->isValidCommandClass('\\XFRM\\Cli\\Comma...')
#5 src/XF/Cli/Runner.php(248): XF\Cli\Runner->getValidCommandClasses(Array)
#6 src/XF/Cli/Runner.php(31): XF\Cli\Runner->registerCommands(Object(Symfony\Component\Console\Application))
#7 cmd.php(15): XF\Cli\Runner->run()
#8 {main}

Request State
Code:
/var/www/forum/src/XF/Debugger.php:44:
array(1) {
  'cli' =>
  string(19) "cmd.php xf:run-jobs"
}

All of my resources and albums are stored on s3. I am using the config from https://xenforo.com/community/resou...on-s3-for-file-storage-in-xf-2-1-xf-2-2.6805/
 
I was able to fix this.

Had to edit

Change
Code:
XF\Cli\Command\Rebuild\AbstractImageOptimizationCommand
to
Code:
XF\Cli\Command\Rebuild\AbstractRebuildCommand
in src/addons/XFRM/Cli/Command/Rebuild/IconOptimization.php

Also had to change
Code:
class IconOptimization extends AbstractImageOptimizationCommand
to
Code:
class IconOptimization extends AbstractRebuildCommand
 
Back
Top Bottom