• Resolved coccoinomane

    (@coccoinomane)


    Hello!

    First of all thank you for your plugin: it makes email template development much easier ??

    I am having issues generating email previews for older orders.
    Whenever I use the “Search Orders” field (https://d.pr/i/6Igj8A) I get an emtpy email on the screen (https://d.pr/i/AFOeU) and a fatal error in debug.log:

    
    [12-Mar-2018 13:37:09 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_formatted_billing_full_name() on null in /home/xyz/public_html/wp-content/plugins/woocommerce/templates/emails/admin-new-order.php:28
    Stack trace:
    #0 /home/xyz/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(211): include()
    #1 /home/xyz/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(231): wc_get_template('emails/admin-ne...', Array, '', '')
    #2 /home/xyz/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-new-order.php(110): wc_get_template_html('emails/admin-ne...', Array)
    #3 /home/xyz/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(476): WC_Email_New_Order->get_content_html()
    #4 /home/xyz/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-new-order.php(92): WC_Email->get_content()
    #5 /home/xyz/public_html/wp-content/plugins/woo-preview-emails/classes/class-wooco in /home/xyz/public_html/wp-content/plugins/woocommerce/templates/emails/admin-new-order.php on line 28
    

    This happens regardless of the order I choose.
    I’ve always tried with orders in the “Processing” state.
    I am on the latest WooCommerce (3.3.3).

    Thank you,
    Guido

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author digamberpradhan

    (@digamberpradhan)

    hi,
    could you please let me know what version of Woo Preview E-mails you are using ?

    I did check against the latest version of WooCommerce plugin and haven’t run into this issue.

    Also, what kind of Product is being used on those orders ?
    – Simple , Variable , Virtual ?

    That would help me review and update as needed.

    Thread Starter coccoinomane

    (@coccoinomane)

    Hello Digamber, thank you for your quick reply!
    I am using version 1.3.1 of your plugin.
    The shop (marksandangels.it) contains only simple products.
    Please let me know if you need any other information.
    Cheers,
    Guido

    Plugin Author digamberpradhan

    (@digamberpradhan)

    Hey coccoinomane,
    I just tested it on my local install with the latest version of my plugin.
    And i am working on a fix for it, it seems there is a problem with processing order.

    I will update you as soon as I can.

    Plugin Author digamberpradhan

    (@digamberpradhan)

    Hey @coccoinomane,
    Please update to the latest version of the plugin. I have identified and fixed the issue.

    Thread Starter coccoinomane

    (@coccoinomane)

    Thank you very much Digamber!
    I have downloaded v1.4.0 and it works fine: now also emails for older orders are sent correctly.
    Thank you for your assistance ??
    Have a nice day!
    Guido

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error on email preview’ is closed to new replies.