• Hi,

    I’ve find a bug :
    PHP Fatal error: Uncaught Error: Call to a member function get_date_created() on boolean in /wp-content/plugins/kadence-woocommerce-email-designer/includes/class-kadence-woomail-preview.php:362

    Just check if $order is an object ( like on line 337 for ‘customer_refunded_order’ ):

    if ( is_object( $order ) ) {
    $email->replace[‘order-date’] = wc_format_datetime( $email->object->get_date_created() );
    $email->replace[‘order-number’] = $email->object->get_order_number();
    // Other properties
    $email->recipient = $email->object->get_billing_email();
    };

    have a good day

    serge

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey,
    Thanks for posting, What version of the plugin are you using?

    The customer_refunded_order section is already checking if $order is an object before it runs get_date_created.

    Ben

    I think I understand, I was looking at the file in current development and the lines numbers are not the same ??

    I’ll update soon

    Ben

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