Title: Critical Error
Last modified: June 18, 2020

---

# Critical Error

 *  [Sanmatiraj](https://wordpress.org/support/users/sanmathiraj/)
 * (@sanmathiraj)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/critical-error-82/)
 * 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 6 years, 1 month ago by [Sanmatiraj](https://wordpress.org/support/users/sanmathiraj/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-82%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/critical-error-82/#post-13006053)
 * 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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/ascend/1.4.20/screenshot.png)
 * Ascend
 * [Support Threads](https://wordpress.org/support/theme/ascend/)
 * [Active Topics](https://wordpress.org/support/theme/ascend/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/ascend/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/ascend/reviews/)

## Tags

 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/critical-error-82/#post-13006053)
 * Status: not resolved