Question

Constant wc_get_cart_url() error

  • 25 March 2021
  • 3 replies
  • 22 views

Badge

Hello, 

I have the following issue: no matter what I do, I get a constant wc_get_cart_url() related error from the Klaviyo WooCommerce module and the error log reads: 

PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wc_get_cart_url() in /wp-content/plugins/klaviyo/includes/wck-cart-functions.php:94

Has anybody seen something like this? 

Thanks!

 


3 replies

Badge

Hi @hristolaskov 

 

Sorry to hear you’re having trouble with the Klaviyo plugin. Can you please tell me what version of Klaviyo’s plugin you have installed? Additionally, what version of Woocommerce? Are you using Wordpress’ multisite feature?

 

Best,

Scott

Badge

Helo @Scott - no drama, I just want to fix the issue. 

So, I am running a multisite on WordPress 5.7, WooCommerce 5.1.0. and Klaviyo plugin v. 2.4.0 - but the problem is even before that, honestly speaking - since for ever. 

Badge

Thanks @hristolaskov , I suspect this is related to multisite. Klaviyo’s plugin was never built to be compatible with multisite Wordpress instances. Let me test this a little further to try and re-create the issue and, if able, we can hopefully update our plugin to resolve this issue.

 

Best,

Scott

Reply