• I got this error log when i installed this plugins.
    since then our website cannot sending email to customer.

    my site already using SMTP and it works fine until i got this error after installed this plugin.

    2018-12-02T10:23:48+00:00 CRITICAL Uncaught Error: Call to a member function format() on null in /srv/users/www/apps/www/public/wp-content/plugins/woocommerce/templates/emails/email-order-details.php:36
    Stack trace:
    #0 /srv/users/www/apps/www/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(208): include()
    #1 /srv/users/www/apps/www/public/wp-content/plugins/woocommerce/includes/class-wc-emails.php(383): wc_get_template(’emails/email-or…’, Array)
    #2 /srv/users/www/apps/www/public/wp-includes/class-wp-hook.php(286): WC_Emails->order_details(Object(WC_Order), NULL, NULL, NULL)
    #3 /srv/users/www/apps/www/public/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #4 /srv/users/www/apps/www/public/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /srv/users/www/apps/www/public/wp-content/plugins/woocommerce/templates/emails/customer-on-hold-order.php(39): do_action(‘woocommerce_ema…’, Object(WC_Order) in /srv/users/www/apps/www/public/wp-content/plugins/woocommerce/templates/emails/email-order-details.php on line 36

    Please help

Viewing 1 replies (of 1 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @waitwhatweb,

    It seems this not related to our plugin. It seems your order has no date / time and this causes problems in the email template when it tries to print the order date in the WooCommerce email.

    Are you using the latest version of WooCommerce? And are you using custom email templates or code snippets to alter your email templates? The problem is coming from the email-order-details.php email template. (wp-content/plugins/woocommerce/templates/email-order-details.php)

    • This reply was modified 6 years, 3 months ago by kluver.
Viewing 1 replies (of 1 total)
  • The topic ‘Not sending email to customer’ is closed to new replies.