• jkriester

    (@jkriester)


    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.

    • This topic was modified 10 months ago by jkriester.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Femi

    (@femiyb)

    Hello @jkriester

    Looking at the stack trace in the log you shared, it seems this issue is caused by an error here: Montapacking::shipping_total, Montapacking::get_shipping_total, WC_Cart->get_cart, wc_doing_it_wrong.

    Please check if you have any plugin installed that relates to “Montapacking”, deactivate this plugin and test again.

    Regards,
    Femi.

    Thread Starter jkriester

    (@jkriester)

    Hello! TRhank you for your reply.

    If we use the Mollie plugin version 7.4.1 in combination with Monta Checkout plugin version 1.58.17 we get this error. If we use the Mollie plugin 7.3.12 the error is gone. So we do think the problem is caused by something in 7.4.1. If we use 7.4.1 and deactivate the Monta Checkout plugin the problem is also gone. Would it be possible for you to check what the differences are between 7.3.12 and 7.4.1 that could be causing the conflict with Monta Checkout plugin version 1.58.17 ?

    We will also contact the Monta Checkout plugin developers and see if they can see a solution. But as the Monta Checkout plugin works fine with the Mollie plugin version 7.3.12 is seems to me the root cause of this error is some changes that you made from 7.3.12 to 7.4.1.

    Plugin Support Femi

    (@femiyb)

    Hello

    Thanks for providing the additional details, I have created an issue and the developers will look into this. I will get back to you as soon as they have provided an update.

    Regards,
    Femi.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_cart was called incorrectly.’ is closed to new replies.