• 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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wooassist

    (@wooassist)

    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.

    Thread Starter Majeed Raza

    (@lorro)

    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://www.ads-software.com/support/topic/export-causes-fatal-error/

    Thread Starter Majeed Raza

    (@lorro)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Export Error’ is closed to new replies.