Title: Fatal error: Cannot redeclare wc_string_to_bool()
Last modified: July 9, 2020

---

# Fatal error: Cannot redeclare wc_string_to_bool()

 *  Resolved [mhogas](https://wordpress.org/support/users/mhogas/)
 * (@mhogas)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-wc_string_to_bool/)
 * 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)

 *  [semstix](https://wordpress.org/support/users/semstix/)
 * (@semstix)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-wc_string_to_bool/#post-13117407)
 * 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.
 *  [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * (@aweissinpsyde)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-wc_string_to_bool/#post-13162331)
 * Hello [@semstix](https://wordpress.org/support/users/semstix/) [@mhogas](https://wordpress.org/support/users/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
 *  [Soft79](https://wordpress.org/support/users/josk79/)
 * (@josk79)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-wc_string_to_bool/#post-13171022)
 * Duplicate. See [https://wordpress.org/support/topic/fatal-error-when-activating-mollie/page/2/#post-13171018](https://wordpress.org/support/topic/fatal-error-when-activating-mollie/page/2/#post-13171018)
 *  [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * (@aweissinpsyde)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-wc_string_to_bool/#post-13354679)
 * 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.

 * ![](https://ps.w.org/mollie-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3090580)
 * [Mollie Payments for WooCommerce](https://wordpress.org/plugins/mollie-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mollie-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mollie-payments-for-woocommerce/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Andreas W.](https://wordpress.org/support/users/aweissinpsyde/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-wc_string_to_bool/#post-13354679)
 * Status: resolved