Woocommerce Deposits and Function get_cart was called incorrectly.
-
Hi,
I’m trying to integrate klarna into our checkout on a test version of the shop. We use a plugin called wp deposits https://woocommerce.com/products/woocommerce-deposits/
When I add something to my basket and then click to pay with klarna from the cart page I end up with an error, if I disable the deposits plugin it goes away. The problem is that the deposits plugin is essential for the shop. Is your plugin compatible with the deposits plugin? Is this something that you have seen before?
The full error goes like this:
Function get_cart was called incorrectly. Get basket should not be called before the wp_loaded action.
Backtrace: require(‘wp-blog-header.php’),
require_once(‘wp-load.php’),
require_once(‘wp-config.php’),
require_once(‘wp-settings.php’),
do_action(‘init’),
WP_Hook->do_action,
WP_Hook->apply_filters,
Krokedil\KlarnaExpressCheckout\KlarnaExpressCheckout->maybe_unhook_kp_actions,
WC_Payment_Gateways->get_available_payment_gateways,
apply_filters(‘woocommerce_available_payment_gateways’),
WP_Hook->apply_filters,
WC_Deposits_Cart_Manager->disable_gateways,
WC_Deposits_Cart_Manager->has_deposit,
WC_Cart->get_cart, wc_doing_it_wrong
Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /wwwroot/wp-includes/functions.php on line 6078
- The topic ‘Woocommerce Deposits and Function get_cart was called incorrectly.’ is closed to new replies.