• Inside Woocommerce logs, I can find the critical error log (Using PHP 7.2)

    2020-06-17T16:21:34+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/xxx/public_html/wp-content/themes/ascend/lib/template_hooks/hooks_topbar_header.php:75
    Stack trace:
    #0 /home/xxx/public_html/wp-content/themes/ascend/lib/template_hooks/hooks_topbar_header.php(47): ascend_topbar_cart('right')
    #1 /home/xxx/public_html/wp-includes/class-wp-hook.php(287): ascend_topbar_right('')
    #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #3 /home/xxx/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #4 /home/xxx/public_html/wp-content/themes/ascend/templates/header-topbar.php(16): do_action('ascend_header_t...')
    #5 /home/xxx/public_html/wp-includes/template.php(725): require('/home/xxx/...')
    #6 /home/xxx/public_html/wp-includes/template.php(672): load_template('/home/xxx/...', false)
    #7 /home/xxx/public_html/wp-includes/general-template.php(168): locate_template(Array, true, false)
    #8 /home in /home/xxx/public_html/wp-content/themes/ascend/lib/template_hooks/hooks_topbar_header.php on line 75
    • This topic was modified 4 years, 5 months ago by sanmathiraj.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hey,
    Is this just in the logs you’ve never seen it on the site? It could simply be there from a bot trying to access a page without woocommerce running.

    Ben

Viewing 1 replies (of 1 total)
  • The topic ‘Critical Error’ is closed to new replies.