WPIntell

Source evidence

Export Error

Where Did You Hear About Us Checkout Field for WooCommerce · support · 2022-12-30T13:13:00+00:00

complaintsentiment
highseverity
1.0relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 34 rows with source links

17.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Peter Lawrenson unresolved
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->apply_filters('', Array) #3 *redacted*/wp-includes/plugin.php(517): WP_Hook->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. HI @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. 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. @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. $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/ This reply was modified 3 years, 3 months ago by Kevin Hagerty . This reply was modified 3 years, 3 months ago by Kevin Hagerty . Can confirm the fix provided by @khag7 works great. Hopefully it will be included in the next update soon. This worked for me also – thanks @khag7 – it was only working for about 10 entries, now works for at least 50 or a 100 which didn’t before!

Comments

5 shown
wooassist 2023-02-13T03:14:00+00:00

HI @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.

Peter Lawrenson 2023-02-13T12:42:00+00:00

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 2023-02-17T21:28:00+00:00

@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. $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/ This reply was modified 3 years, 3 months ago by Kevin Hagerty . This reply was modified 3 years, 3 months ago by Kevin Hagerty .

Peter Lawrenson 2023-04-06T20:00:00+00:00

Can confirm the fix provided by @khag7 works great. Hopefully it will be included in the next update soon.

kworrall 2023-07-20T13:32:00+00:00

This worked for me also – thanks @khag7 – it was only working for about 10 entries, now works for at least 50 or a 100 which didn’t before!