• Resolved raindeer2

    (@raindeer2)


    Hi, I get the following exception when renewal emails are generated for Woocommerce subscriptions, with the consequence that no emails are sent.

    I upgraded to the latest Woocommerce version but it did not help.

    I’m running these versions:
    Woocommerce: 4.7.1
    Woocommerce multilingual: 4.10.3
    Woocommerce subscriptions: 3.0.11

    2020-12-02T13:34:53+00:00 CRITICAL Uncaught Error: Call to a member function set() on null in xxx/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency.php:608
    Stack trace:
    #0 xxx/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency-prices.php(825): WCML_Multi_Currency->set_client_currency(‘GBP’)
    #1 xxx/wp-includes/class-wp-hook.php(288): WCML_Multi_Currency_Prices->filter_wc_price_args(Array)
    #2 xxx/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
    #3 xxx/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php(572): apply_filters(‘wc_price_args’, Array)
    #4 xxx/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1873): wc_price(39, Array)
    #5 xxx/wp-content/plugins/woocommerce/templates/emails/email-order-items.php(86): WC_Abstract_Order->get_formatt in xxx/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-multi-currency.php on line 608

Viewing 1 replies (of 1 total)
  • Hi,

    Thank you for reaching out.

    I took a quick look at the code and it seems like there is no valid WooCommerce Session initialized when those emails are being generated.

    This could be a bug, a server configuration issue or perhaps you have a custom job that triggers this.

    Could I please request that you open a ticket in our Support Forums:
    https://wpml.org/forums/forum/english-support/

    We will need some more information about your website and perhaps to debug your site if we cannot recreate the issue in a fresh environment.

    Best,
    Izzi

Viewing 1 replies (of 1 total)
  • The topic ‘Multi currency email template exception’ is closed to new replies.