get_cart was called incorrectly.
-
The Mollie plugin V7.4.1 and V7.4.0 are constantly causing the error below in combination with Woo and this taking up a lot of resources of our hosting provider and they decided to no move our sites to a server with limited resources. This error is happen in all our 3 webshops that use this plugin with. If we revert the Mollie plugin back to V7.3.12 the error is gone. Can you pls fix this problem?
Error message:
get_cart was called incorrectly. ‘Get cart’ dient niet te worden aangeroepen voor de wp_loaded actie. Backtrace: 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, Automattic\\WooCommerce\\Blocks\\BlockTypesController->register_blocks, Automattic\\WooCommerce\\Blocks\\BlockTypes\\AbstractBlock->__construct, Automattic\\WooCommerce\\Blocks\\BlockTypes\\Cart->initialize, Automattic\\WooCommerce\\Blocks\\BlockTypes\\AbstractBlock->initialize, Automattic\\WooCommerce\\Blocks\\BlockTypes\\Cart->register_block_type_assets, Automattic\\WooCommerce\\Blocks\\BlockTypes\\AbstractBlock->register_block_type_assets, Automattic\\WooCommerce\\Blocks\\Assets\\Api->register_script, apply_filters(‘woocommerce_blocks_register_script_dependencies’), WP_Hook->apply_filters, Automattic\\WooCommerce\\Blocks\\Payments\\Api->add_payment_method_script_dependencies, Automattic\\WooCommerce\\Blocks\\Payments\\PaymentMethodRegistry->get_all_active_payment_method_script_dependencies, Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType->get_payment_method_script_handles_for_admin, Mollie\\WooCommerce\\Assets\\MollieCheckoutBlocksSupport->get_payment_method_script_handles, Mollie\\WooCommerce\\Assets\\MollieCheckoutBlocksSupport::localizeWCBlocksData, Mollie\\WooCommerce\\Assets\\MollieCheckoutBlocksSupport::gatewayDataForWCBlocks, WC_Payment_Gateways->get_available_payment_gateways, Mollie\\WooCommerce\\Gateway\\MolliePaymentGateway->is_available, Mollie\\WooCommerce\\Gateway\\MolliePaymentGateway->cartAmountAvailable, WC_Payment_Gateway->get_order_total, WC_Legacy_Cart->__get, WC_Cart->get_total, apply_filters(‘woocommerce_cart_get_total’), WP_Hook->apply_filters, Montapacking::shipping_total, Montapacking::get_shipping_total, WC_Cart->get_cart, wc_doing_it_wrong.
- The topic ‘get_cart was called incorrectly.’ is closed to new replies.