Support » Theme: Storefront » Fatal error when adding payment gateway

  • Hello
    After adding and enabling a payment gateway plugin I got a fatal error because both storefront template and plugin were declaring the same function. The plugin does check if that function is already declared, but that check is missing from storefront theme, and because the plugin is loaded first I get a fatal error. Can you please add a check to see if this function is declared to the storefront theme?

    [27-Oct-2016 21:41:18 UTC] PHP Fatal error: Cannot redeclare is_woocommerce_activated() (previously declared in /wp-content/plugins/woocommerce-korta/Korta/classes/mg-includes/mg-functions.php:12) in /wp-content/themes/storefront/inc/storefront-functions.php on line 13

    They have the following line before declaring the function but it’s missing from the storefront theme code:
    if ( ! function_exists( ‘is_woocommerce_activated’ ) )

    thanks
    Finnur

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error when adding payment gateway’ is closed to new replies.