Title: PHP Notice being thrown
Last modified: November 1, 2017

---

# PHP Notice being thrown

 *  Resolved [XLPlugins](https://wordpress.org/support/users/xlplugins/)
 * (@xlplugins)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-notice-being-thrown/)
 * Hi,
 * You can fix this PHP Notice being thrown on Thank You Page.
 * Here is the backtrace [https://i.imgur.com/pvswJeG.png](https://i.imgur.com/pvswJeG.png)
 * Thanks
    Daman

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

 *  Plugin Contributor [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-notice-being-thrown/#post-9642242)
 * [@xlplugins](https://wordpress.org/support/users/xlplugins/),
 * Thanks for letting me know about that.
 * If you have any insight to offer, we would appreciate the help. At first glance,
   it looks like a simple notice that’s not best practice to access the object property
   directly. But, perhaps, I need to use $order->get_user_id() and then get_customer()
   from that. Does that sound right to you?
 * I’ll take a closer look probably within the week. Thanks.
 *  Thread Starter [XLPlugins](https://wordpress.org/support/users/xlplugins/)
 * (@xlplugins)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-notice-being-thrown/#post-9644871)
 * Hi,@natekinkead
 * Yes, from WC3.0, We should not access order object properties directly.
 * I suggest you to use getter functions to access the data like `$order->get_billing_email();`
   to all the data you are using.
 * Thanks
    Daman
 *  Plugin Contributor [natekinkead](https://wordpress.org/support/users/natekinkead/)
 * (@natekinkead)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-notice-being-thrown/#post-9649001)
 * [@xlplugins](https://wordpress.org/support/users/xlplugins/), we’ve released 
   an update which uses WooCommerce 3.x getter methods with WooCommerce 2.x backward
   compatibility.
 * Thanks for bringing this to our attention.
 *  Thread Starter [XLPlugins](https://wordpress.org/support/users/xlplugins/)
 * (@xlplugins)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-notice-being-thrown/#post-9649871)
 * Good to hear that 🙂

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

The topic ‘PHP Notice being thrown’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ecr-google-customer-reviews_b1cad0.
   svg)
 * [Google Customer Reviews for WooCommerce](https://wordpress.org/plugins/ecr-google-customer-reviews/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ecr-google-customer-reviews/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ecr-google-customer-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/ecr-google-customer-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ecr-google-customer-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ecr-google-customer-reviews/reviews/)

## Tags

 * [PHP Notice](https://wordpress.org/support/topic-tag/php-notice/)

 * 4 replies
 * 2 participants
 * Last reply from: [XLPlugins](https://wordpress.org/support/users/xlplugins/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/php-notice-being-thrown/#post-9649871)
 * Status: resolved