• Resolved Renaat

    (@rsioncke)


    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 4 replies - 16 through 19 (of 19 total)
  • Andreas, maybe that fixes the issue mentioned by jojoba007, but that’s a different issue than the one mentioned in the opening post.

    I made a PR that fixes the original issue

    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

    https://github.com/mollie/WooCommerce/pull/393

    Searching for Mollie in Transient Manager yields 0 results. I manually went through the pages and no mollie found either.

    I just upgraded to latest Woocommerce 4.3.3 and still got this error. Which gave me quite the scare, before I realised what happened last time.
    Mollie version 5.8.1

    Had that problem today again, when upgrading to WooCommerce 4.4.0.

    – deactivated Mollie 5.8.1
    – activated WooCommerce 4.4.0
    – Reactivated Mollie 5.8.1

    before doing anything else and that works. Still, either WooCommerce or Mollie needs to stop redeclaring that function in that way, perhaps.

    Also contributed to the issue over at github: https://github.com/mollie/WooCommerce/issues/377

    Closed because of inactivity

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