Critical Error class-wp-hook.php:308
-
This is a new error on our site. As it states ”critical”, How can I sort this?
Our WordPress and Woocommerce versions are up to date.
Critical Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/hoolies.co.za/public/wp-includes/class-wp-hook.php:308
Additional context
{
“error”: {
“type”: 1,
“file”: “\/var\/www\/hoolies.co.za\/public\/wp-includes\/class-wp-hook.php”,
“line”: 308
},
“backtrace”: [
“”,
“#0 \/var\/www\/hoolies.co.za\/public\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”,
“#1 \/var\/www\/hoolies.co.za\/public\/wp-includes\/plugin.php(565): WP_Hook->do_action()”,
“#2 \/var\/www\/hoolies.co.za\/public\/wp-cron.php(191): do_action_ref_array()”,
“#3 {main}”,
“thrown”
]
}The page I need help with: [log in to see the link]
The topic ‘Critical Error class-wp-hook.php:308’ is closed to new replies.