ResolvedTheme Update Fatal Error in Woocommerce Cart

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30998
    tricia
    Participant

    Notifying you of a bug in your latest theme update. Explanation below:

    Thanks for the update! I believe I\’ve tracked down the fatal error that matches the 500 errors you\’ve been seeing. The full error is below. The short of it is that it doesn\’t like the get_cart_contents_count() function being used in the theme.
    [01-Jul-2021 12:43:52 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /www/wp-content/themes/zass/incl/woocommerce-functions.php:808
    Stack trace:
    #0 /www/wp-content/themes/zass/header.php(202): zass_cart_link()
    #1 /www/wp-includes/template.php(730): require_once(\’/www/wp-content…\’)
    #2 /www/wp-includes/template.php(676): load_template(\’/www/wp-content…\’, true, Array)
    #3 /www/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
    #4 /www/wp-content/themes/zass/index.php(4): get_header()
    #5 /www/wp-includes/template-loader.php(106): include(\’/www/wp-content…\’)
    #6 /www/wp-blog-header.php(19): require_once(\’/www/wp-include…\’)
    #7 /www/index.php(17): require(\’/www/wp-blog-he…\’)
    #8 {main}
    thrown in /www/wp-content/themes/zass/incl/woocommerce-functions.php on line 808
    The Woocommerce documentation suggests a slightly different variation of code to get this working properly. However, this would be the theme developer\’s responsibility to make sure everything is working correctly.
    Normally, I\’d recommend updating the theme to make sure the code is the latest and most compatible version, but it looks like the site already has the latest version. So, it would be best to take the error above and forward it to the theme developers. Hopefully, they have a fix available!

    #30999
    Althemist
    Keymaster

    Hi Tricia,

    Could you please give us a bit more context? Exactly where do you get that error and when? After what kind of interaction? Trying to add product to cart or something else? Exactly where do you see that error? Somewhere in the front-end or in error log?

    Also, if you give us temporary admin access to your site it would be much easier to diagnose the problem.

    You can post the site url and admin credentials here. Just don’t forget to mark the “set as private reply” checkbox when sending sensitive data.

    Best regards,
    Dimitar

    #31007
    tricia
    Participant
    This reply has been marked as private.
    #31009
    Althemist
    Keymaster
    This reply has been marked as private.
    #31010
    tricia
    Participant
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register