Title: Email Error help
Last modified: August 19, 2018

---

# Email Error help

 *  Resolved [mattbrandon](https://wordpress.org/support/users/mattbrandon/)
 * (@mattbrandon)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/email-error-help/)
 * Hi,
 * I have a product going line in a few hours and I just saw this error. In my emails
   I get this code at the top of the email:
 * Notice: id was called incorrectly. Order properties should not be accessed directly.
   Backtrace: require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array,
   WP_Hook->do_action, WP_Hook->apply_filters, WC_API->handle_api_requests, do_action(‘
   woocommerce_api_wc_gateway_paypal’), WP_Hook->do_action, WP_Hook->apply_filters,
   WC_Gateway_Paypal_IPN_Handler->check_response, do_action(‘valid-paypal-standard-
   ipn-request’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Gateway_Paypal_IPN_Handler-
   >valid_response, WC_Gateway_Paypal_IPN_Handler->payment_status_completed, WC_Gateway_Paypal_Response-
   >payment_complete, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition,
   do_action(‘woocommerce_order_status_pending_to_processing’), WP_Hook->do_action,
   WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array,
   WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_New_Order->trigger, WC_Email-
   >get_content, WC_Email_New_Order->get_content_html, wc_get_tem in /home2/thedigk0/
   public_html/wp-includes/functions.php on line 4161
 * Can anyone help me figure out how to fix this? I have the latest Payment gateway.
   But it looks like other things are at play as well. My guess there is a conflict
   between plugings.
 * THanks
 * Matt

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

 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [7 years, 9 months ago](https://wordpress.org/support/topic/email-error-help/#post-10604335)
 * Hi, [@mattbrandon](https://wordpress.org/support/users/mattbrandon/)!
 * It looks like you’ve added some custom code to your theme’s `functions.php` file
   that isn’t compatible with WC v3.0+
 * You’ll need to find that code, specifically the older `$order->id` and replace
   it with `$order->get_id()`
 * Cheers!
 *  Thread Starter [mattbrandon](https://wordpress.org/support/users/mattbrandon/)
 * (@mattbrandon)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/email-error-help/#post-10605099)
 * rynald0s,
 * Thanks! I don’t recall adding or changing any code on the actual php. That stuff
   is beyond me. I did a search of my theme’s dunctions.php, (Extra by Elegant) 
   and didn’t find it. Could it be in some place else or an app that does it?
 * Thanks again
 *  Thread Starter [mattbrandon](https://wordpress.org/support/users/mattbrandon/)
 * (@mattbrandon)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/email-error-help/#post-10605197)
 * I had my host tech look through the functions.php and the even the WordPress 
   core files and nothing. We even switched themes and the error was still there.
   Any other thoughts? It’s getting down tot he wire when this goes live.
 *  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * (@luminus)
 * Automattic Happiness Engineer
 * [7 years, 9 months ago](https://wordpress.org/support/topic/email-error-help/#post-10614954)
 * [@mattbrandon](https://wordpress.org/support/users/mattbrandon/),
 * You must have some piece of code that is outdated. Let’s see your site’s System
   Status Report? You can find it by going to **WooCommerce → Status** in your site’s
   WP-Admin.
 * Click on **Get system report** and then **Copy for support**. Once you’ve done
   that, you can paste it in [https://pastebin.com/](https://pastebin.com/) and 
   share the link to it here.
 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [7 years, 9 months ago](https://wordpress.org/support/topic/email-error-help/#post-10635942)
 * Howdy!
 * We haven’t heard back from you in a while, so I’m going to go ahead and mark 
   this thread as resolved. If you have any other questions please start a new thread.
 * Cheers!

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

The topic ‘Email Error help’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [email error](https://wordpress.org/support/topic-tag/email-error/)

 * 5 replies
 * 3 participants
 * Last reply from: [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/email-error-help/#post-10635942)
 * Status: resolved