Fatal Error in wp-cron
-
We’re getting the following error during wp-cron:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /public_html/wp-includes/class-wp-hook.php:308
i.eWP_Hook::apply_filters()
is being called without any$args
.
When we perform adebug_backtrace
to see who is doing-it-wrong, we get:[0] => Array
(
[file] => /home/somm/public_html/wp-includes/class-wp-hook.php
[line] => 355
[function] => apply_filters
[class] => WP_Hook
[type] => ->
[args] => Array
(
[0] =>
[1] =>
)
)
[1] => Array
(
[file] => /home/somm/public_html/wp-includes/plugin.php
[line] => 565
[function] => do_action
[class] => WP_Hook
[type] => ->
[args] => Array
(
[0] =>
)
)
[2] => Array
(
[file] => /home/somm/public_html/wp-cron.php
[line] => 191
[function] => do_action_ref_array
[args] => Array
(
[0] => activecampaign_for_woocommerce_run_order_sync
[1] =>
)
)As you can see, the culprit is
activecampaign_for_woocommerce_run_order_sync
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Fatal Error in wp-cron’ is closed to new replies.