Support » Plugin: Mollie Payments for WooCommerce » Fatal error when activating Mollie

  • Resolved Renaat


    Never had the issue before, but it seems that I now have to activate WooCommerce first, and only afterwards activated Mollie. I got this error. When I tried to activate them the other way around. In earlier Mollie versions, I did not experience an issue like that.

    Fatal error: Cannot redeclare wc_string_to_bool() (previously declared in /var/web/site/public_html/wp-content/plugins/mollie-payments-for-woocommerce/inc/woocommerce.php:70) in /var/web/site/public_html/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 22

Viewing 15 replies - 1 through 15 (of 19 total)
  • I have the same error. Occurred after updating Woocommerce to 4.2.0

    Same here.

    +1, site did not work anymore because of this πŸ™

    @cbservices As @rsioncke said, the order is important. They both run but I think Mollie is broken anyway.

    As of this week, it doesn’t return Paid status callback to Woo properly, leaving all my paid orders in Payment Pending status. I logged multiple tickets / emails with Mollie but am getting no responses from them…
    One of the 2 services has a problem I think.

    If I enable, WordPRess does not work anymore… I’ll wait for an update πŸ™‚

    I also have a fatal error with Woocommerce and Mollie. For me the solution was to disable cache $use_cache = false in the function in Mollie. Perheps be worth …..


    Same here! This solved it for me:

    1. Disable WooCommerce
    2. Disable Mollie
    3. Enable WooCommerce
    4. Enable Mollie

    Problem is, that with the next update of WooCommerce, WP crashes again…

    Yes, but for now it’s a workaround, until the developer solves this πŸ™‚

    The same probleme here after update woo to 4.1.0

    from my fatal errors log

    2020-06-22T14:37:07+00:00 CRITICAL Uncaught Error: [] operator not supported for strings in /…/wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Helper/Data.php:275
    Stack trace:
    #0 /…/wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Helper/Data.php(369): Mollie_WC_Helper_Data->getAllPaymentMethods(false)
    #1 /…/wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Gateway/Abstract.php(1793): Mollie_WC_Helper_Data->getPaymentMethod(false, ‘banktransfer’)
    #2 /…/wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Gateway/Abstract.php(235): Mollie_WC_Gateway_Abstract->getMollieMethod()
    #3 /…/wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Gateway/Abstract.php(88): Mollie_WC_Gateway_Abstract->isValidForUse()
    #4 /…/wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Gateway/BankTransfer.php(21): Mollie_WC_Gateway_Abstract->__constr in /…/wp-content/plugins/mollie-payments-for-woocommerce/src/Mollie/WC/Helper/Data.php on line 275

    Same issue here

    Is this fixed in newer versions?

    Not fixed. I updated M a couple of days ago and Woo yesterday and got fatal crashes.
    Need to deactivate Mollie before updating Woo. Works ok after.

    Plugin Support Andreas W.



    we will have a closer look at this.

    Thank you
    Best regards

    Plugin Support Andreas W.


    Hello @fdittmar @saens @jojoba007 @jojoba007 @sotnas @josk79

    can you please try the following:

    – download the plugin Transients Manager
    – Go to Tools > Transients
    – Search for Mollie and delete all Transients

    This should fix that issue

    Best regards

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Fatal error when activating Mollie’ is closed to new replies.