Home Forums Pre-Sale BUG – WooCommerce Orders Tracking – SMS – PayPal Tracking Autopilot

BUG – WooCommerce Orders Tracking – SMS – PayPal Tracking Autopilot

  • Author
    Posts
  • #242432

    Amr Abdel-Wahab
    Participant

    Hi Plugin Developer Team,

    I hope you’re doing well!

    I’ve been using your WooCommerce Orders Tracking plugin for a while now and really appreciate the functionality – great job!

    However, since the latest update, I’m encountering an error when trying to preview the “Completed Order” emails in WooCommerce:

    “There was an error rendering the email preview. This doesn’t affect actual email delivery. Please contact the extension author for assistance.”

    Troubleshooting steps already taken:
    • Deactivated all other plugins
    • Switched to the default theme
    • Removed all custom code

    The issue only disappears when the Orders Tracking plugin is deactivated, so it seems to be directly related to the latest update.

    Technical background:

    WooCommerce uses a dummy order for email previews, but the plugin throws a fatal error when calling $order->get_meta() if $order is false.
    Here’s the error:

    Uncaught Error: Call to a member function get_meta() on bool in …/includes/admin/woo-order-email.php on line 122

    Suggested fix:

    Add a simple check before calling $order->get_meta():

    $order = wc_get_order( $order_id );
    if ( ! $order || ! is_a( $order, ‘WC_Order’ ) ) {
    return;
    }

    This would prevent the error and allow email previews to work properly without affecting actual email delivery.

    I’d really appreciate it if you could include this fix in the next update.

    Please let me know if you need any further info.

    Thanks again for your great plugin and your support!

    Best regards,
    chxz

You must be logged in to see replies to this topic. Click here to login or register