• 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]

Viewing 1 replies (of 1 total)
  • Hey there! Thanks for contacting us. I’m happy to help you.

    Are you seeing this on your WooCommerce error logs? If not, where is this error showing?

    Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

Viewing 1 replies (of 1 total)

The topic ‘Critical Error class-wp-hook.php:308’ is closed to new replies.