Cron Job Fatal Error
-
I would be grateful for any help with the following fatal error from the spio-refresh-dir cron job (details below). I have tried both enabling and disabling the ‘Background’ processing option. Thanks in advance.
spio-refresh-dir
{ “args”: { “amount”: 10 } }
ShortPixel\Controller\AdminController->scanCustomFoldersHook()
—Error message —
[20-Sep-2024 08:45:03 UTC] PHP Fatal error: Uncaught Error: Unknown named parameter $args in /home/customer/www/[redacted].co.uk/public_html/wp-includes/class-wp-hook.php:324
Stack trace: 0 /home/customer/www/[redacted].co.uk/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 1 /home/customer/www/[redacted].co.uk/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 2 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(364): do_action_ref_array(‘spio-refresh-di…’, Array) 3 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(286): Cron_Event_Command::run_event(Object(stdClass)) 4 [internal function]: Cron_Event_Command->run(Array, Array) 5 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array) 6 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}(Array, Array) 7 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func(Object(Closure), Array, Array) 8 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(431): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array) 9 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(454): WP_CLI\Runner->run_command(Array, Array) 10 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1269): WP_CLI\Runner->run_command_and_exit() 11 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start() 12 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState)) 13 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap() 14 phar:///usr/local/bin/wp-cli.phar/php/boot-phar.php(20): include(‘phar:///usr/loc…’) 15 /usr/local/bin/wp-cli.phar(4): include(‘phar:///usr/loc…’) 16 {main}thrown in /home/customer/www/[redacted].co.uk/public_html/wp-includes/class-wp-hook.php on line 324
- You must be logged in to reply to this topic.