• Resolved Oleksandr

    (@track77)


    Hi.
    I received the next error with plugin version 4.6.1

    PHP Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null in /woo-save-abandoned-carts/public/class-cartbounty-public.php:75

    Thanks for your great plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi @track77,

    Thanks for posting it here and letting us know.
    And are you able to reproduce this error? It might be related with Exit Intent since.
    The function get_cart_contents_count() itself is actually a WooCommerce built-in function that is responsible for counting how many items are in the customers cart. A bit hard to tell right now since this is the first time I’m getting reported on such issue, but it might be linked to some caching issues or maybe theme specific issue.
    Are you able to reproduce this error?

    Thanks

    Thread Starter Oleksandr

    (@track77)

    I can’t reproduce this error and now I added a few changes to the code so this will not appear again.

    if(!WC()->cart ){
    	return;
    }
    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Thanks for the information.
    We will run some tests to see if we are able to somehow reproduce it and include a fix in the next version.

    Best wishes,
    Nauris

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi @track77

    Thanks for pointing out this issue.
    We have just released an update that includes a fix for this. really appreciate your assistance and input!

    Best wishes,
    Nauris

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Call to a member function get_cart_contents_count() on null’ is closed to new replies.