Title: Export Error
Last modified: December 30, 2022

---

# Export Error

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/export-error-41/)
 *     ```wp-block-code
       Fatal error:  Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_billing_first_name() in *redacted*/wp-content/plugins/wc-customer-source/includes/wccs-admin-export.php:68
       Stack trace:
       #0 *redacted*/wp-content/plugins/wc-customer-source/wc-customer-source.php(148): WC_Customer_Source_Export::export_data()
       #1 *redacted*/wp-includes/class-wp-hook.php(308): WC_Customer_Source::display_main('')
       #2 *redacted*/wp-includes/class-wp-hook.php(332): WP_Hook-&gt;apply_filters('', Array)
       #3 *redacted*/wp-includes/plugin.php(517): WP_Hook-&gt;do_action(Array)
       #4 *redacted*/wp-admin/admin.php(259): do_action('woocommerce_pag...')
       #5 {main}
         thrown in *redacted*/wp-content/plugins/wc-customer-source/includes/wccs-admin-export.php on line 68
       ```
   
 * Seeing this fatal error when trying:
   Dashboard > WooCommerce > Customer Source
   > Export tab
 * We have over 1,000 orders and there will be some order-refunds in there, so unable
   to say which refund caused the above.
 * Using v1.2.0 of the plugin. Using Storefront and all established plugins.

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

 *  Plugin Author [wooassist](https://wordpress.org/support/users/wooassist/)
 * (@wooassist)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/export-error-41/#post-16464212)
 * HI [@lorro](https://wordpress.org/support/users/lorro/), we have updated the 
   plugin and fixed compatibility issues with php 8. please update the plugin and
   check again if you still get the error.
 *  Thread Starter [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/export-error-41/#post-16465751)
 * Thank you. I have updated the plugin and I’m still getting the same error when
   trying to export.
 * “undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_billing_first_name()”
 * My site is using PHP 7.4.33.
 *  [Kevin Hagerty](https://wordpress.org/support/users/khag7/)
 * (@khag7)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/export-error-41/#post-16482241)
 * [@wooassist](https://wordpress.org/support/users/wooassist/) you need to only
   export orders of type `shop_order` and not include `shop_order_refund` types.
 * Go to `wccs-admin-export.php` Line 57 and add `'type' => 'shop_order'` to your
   query.
 *     ```wp-block-code
       $query = new WC_Order_Query( array(
       	'limit' => $lim,
       	'type' => 'shop_order',
       ) );
       ```
   
 * It looks to me like this error has been an issue for over 11 months now. See 
   this ticket: [https://wordpress.org/support/topic/export-causes-fatal-error/](https://wordpress.org/support/topic/export-causes-fatal-error/)
    -  This reply was modified 3 years, 3 months ago by [Kevin Hagerty](https://wordpress.org/support/users/khag7/).
    -  This reply was modified 3 years, 3 months ago by [Kevin Hagerty](https://wordpress.org/support/users/khag7/).
 *  Thread Starter [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/export-error-41/#post-16634217)
 * Can confirm the fix provided by [@khag7](https://wordpress.org/support/users/khag7/)
   works great. Hopefully it will be included in the next update soon.
 *  [kworrall](https://wordpress.org/support/users/kworrall/)
 * (@kworrall)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/export-error-41/#post-16909629)
 * This worked for me also – thanks [@khag7](https://wordpress.org/support/users/khag7/)–
   it was only working for about 10 entries, now works for at least 50 or a 100 
   which didn’t before!

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

The topic ‘Export Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wc-customer-source.svg)
 * [Where Did You Hear About Us Checkout Field for WooCommerce](https://wordpress.org/plugins/wc-customer-source/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-customer-source/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-customer-source/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-customer-source/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-customer-source/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-customer-source/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [kworrall](https://wordpress.org/support/users/kworrall/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/export-error-41/#post-16909629)
 * Status: not resolved