Title: fatal error when empty order
Last modified: February 19, 2025

---

# fatal error when empty order

 *  [mcbmcb0](https://wordpress.org/support/users/mcbmcb0/)
 * (@mcbmcb0)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-empty-order/)
 * i’m using your plugin with php 8, xampp, wp 6.7.2. I must have some weird or 
   dead orders as get errors like this:
 *     ```wp-block-code
       PHP Fatal error: Uncaught Error: Call to a member function get_meta() on bool in xxxx\wp-content\plugins\wc-order-analytics-add-on\includes\admin\pages\report-orders\class-oa-addon-report-orders.php:63
       ```
   
 * same for billing adddress and other parameters that reply on $order. so in the
   above file I had to catch it like this:
 *     ```wp-block-code
       if($order){            foreach ( $get_columns as $column ) { // the old line 61.....
       ```
   
 * Now, works well. Thanks for this plugin as I’ve found woo analytics a nightmare
   to tweak.

The topic ‘fatal error when empty order’ is closed to new replies.

 * ![](https://ps.w.org/wc-order-analytics-add-on/assets/icon-256x256.jpg?rev=3069966)
 * [WC Order Analytics Add-on Plugin](https://wordpress.org/plugins/wc-order-analytics-add-on/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-order-analytics-add-on/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-order-analytics-add-on/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-order-analytics-add-on/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-order-analytics-add-on/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-order-analytics-add-on/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mcbmcb0](https://wordpress.org/support/users/mcbmcb0/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/fatal-error-when-empty-order/)
 * Status: not resolved