• Resolved mhogas

    (@mhogas)


    Hey!

    Got this error:

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

    I’m suggesting to make a wrapper function like mollie_wc_string_to_bool() and return wc_string_to_bool if function exists.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m getting this fatal error as well upon updating WooCommerce to 4.3.0. During the update, the plugin could not be activated:

    “Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare wc_string_to_bool() (previously declared in /home/../*.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/inc/woocommerce.php:70) in /home/../*.nl/public_html/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 20

    I can get things working by deactivating Mollie to activate WooCommerce. After that it’s possible to activate Mollie.

    Hello @semstix @mhogas

    I tried to reproduce this behavior but on my tests, all was working fine. I’ll forward your issue to our developers so they can have a closer look at it.

    Best regards
    Andreas

    Closed because of inactivity

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error: Cannot redeclare wc_string_to_bool()’ is closed to new replies.