• Resolved buyacsgo

    (@buyacsgo)


    [28-Mar-2018 22:31:06 UTC] PHP Fatal error: Call to a member function format() on null in /home/buyacsgo/public_html/wp-content/plugins/woocommerce/templates/emails/email-order-details.php on line 30

    I’m using woocommerce version 3.0.1
    I wasn’t receiving order notification mails after upgrading to latest version(Topic: https://wordpress.org/support/topic/order-notification-mails-not-receiving/).

    So, I have downgraded to 3.0.1 and I was used to received order notification mails. From yesterday I saw that I’m not receiving any order notification emails but I’m receiving wordpress emails like: when I’m trying to reset password. Any kind of woocommerce mails I’m not receiving.

    I have also installed Email log plugin, woocommerce related mails are not generated..
    Like: create account, new order notification, cancelled orders, Completed order mail to customer. nothing is generated in Email log.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter buyacsgo

    (@buyacsgo)

    I have fixed this by adding “add_filter( ‘woocommerce_defer_transactional_emails’, ‘__return_false’ );” this.

    But I’m unable to receive any order notification mails in latest version of woocommerce.

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    That snippet will set up emails to be sent after an order is created (for performance reasons). Did that solve the problem and now emails are sending, or?

    With emails not showing up in the logs at all, that means something is stopping them from even being sent. First, make sure the emails are enabled at WooCommerce > Settings > Emails.

    If the problem still happens, the next thing to do is rule out plugin/theme conflicts: https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    Thread Starter buyacsgo

    (@buyacsgo)

    Hello, Thank you so much for replying me.

    Email are enabled already WooCommerce > Settings > Emails. I’m currently using 3.0.1 and after adding that in function.php I’m receiving all woocommerce emails.

    In latest version only order notification mails are not sending. But when someone creating an account in our website that time email is sending and also generating in logs. I don’t know why it’s happening.

    I have tested by disabling all plugins except some of plugins which I can’t disable:
    1> woocommerce
    2> yoast seo
    3> License Manager plugin (paid version)

    Still order emails are not receiving/sending. I have contacted ENFOLD support team, they said “it’s a woocommerce issue they made changes in woocommerce plugin.”

    Thanks
    BuyaCSGO

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    The order status of the new order must be “processing” or “completed” for emails to be sent out, they will not be sent for “pending payment” orders. So double check that.

    If that does not help, then you’ll need create a staging/test site. On this staging site, disable everything but WooCommerce and have a default WordPress theme enabled. Then do a test order and see if emails are triggered to be sent at that point.

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    Hi @buyacsgo,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

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

The topic ‘Woocommerce mails not receiving suddenly’ is closed to new replies.