Fatal error: Uncaught Error: Call to a member function get_cart_contents_count() on null

Hey guys, we’re seeing this error on a client site. Basically it’s trying to pull in woocommerce data ( cart contents) when on the editing screen which obviously there won’t be wocommerce instance so it won’t be able to do that.

I checked the changelog (https://theme.co/docs/changelog/pro-4) and I see that version 4.2.1 should have had a fix in there in regards to the dynamic woocommerce content. We are are on 4.2.3 and the issue is still happening.

I’ll paste the exact error code in a secure note.

Hi @SWWD,

Can you please explain the steps to replicate the issue at our end, so we can investigate it further? If that is not possible, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– Specific page where you are having this issue.
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.