• The plugin works perfect when navigate the site, but when I try to edit any page that contains the shortcode getting this error:

    Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-content/plugins/woo-cart-count-shortcode/woocommerce-cart-count-shortcode.php:35 Stack trace: #0 /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-includes/shortcodes.php(345): woocommerce_cart_count_shortcode(Array, ”, ‘cart_button’) #1 [internal function]: do_shortcode_tag(Array) #2 /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-includes/shortcodes.php(223): preg_replace_callback(‘/\\[(\\[?)(cart_b…’, ‘do_shortcode_ta…’, ‘<p><span>[cart_…’) #3 /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(720): do_shortcode(‘<p><span>[cart_…’) #4 /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-includes/shortcodes.php(345): ET_Builder_Element->_shortcode_callback(Array, ‘<p><span>[cart_…’, ‘et_pb_text’) #5 [internal function]: do_shortcode_tag(Array) #6 /homepages/31/d221571097/h in /homepages/31/d221571097/htdocs/clickandbuilds/Robeca/wp-content/plugins/woo-cart-count-shortcode/woocommerce-cart-count-shortcode.php on line 35

    Wordpress Ver.: 4.8.2
    WooCommerce Cart Count Shortcode: 1.0.4
    WooCommerce Ver.:3.1.2

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author prontotools

    (@prontotools)

    Hi arcearte,

    We just found this kind of problem last week and push the fix in the latest version. We will see more if something caused this problem. Thanks!

    Regards,
    Natty

    Plugin Author prontotools

    (@prontotools)

    Hi arcearte,

    I’ve tried with the same version as you mentioned but my localhost is working as expected. I’ve installed both woocommerce 3.2.1(latest) and 3.1.2 with the same WordPress and woo-cart-count version as you.

    Could please make sure you install latest Woocommerce and woo-cart-count?

    Thanks,

    Natty

    Hi There
    Just uploaded the plug-in, great stuff!
    However, when trying to go into Elementor, I am getting the same PHP Fatal error description as mentioned in this post.
    I’m running WC version 3.33/ WordPress Ver.: 4.9.4
    WooCommerce Cart Count Shortcode: 1.0.4

    Thanks for your support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error (PHP)’ is closed to new replies.