Fatal error if export refunds
-
When is checked Export refunds in Filter by order, export returns a PHP fatal error:
Fatal error: Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_qty_refunded_for_item() in /.../wp-content/plugins/woo-order-export-lite/classes/core/trait-woe-core-extractor.php:891
Stack trace:
#0 /.../wp-content/plugins/woo-order-export-lite/classes/core/trait-woe-core-extractor.php(972): WC_Order_Export_Data_Extractor::fetch_order_products(Object(Automattic\WooCommerce\Admin\Overrides\OrderRefund), Object(WC_Order_Export_Labels), Array, Array, Object(WC_Order_Export_Order_Fields))
#1 /.../wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-engine.php(563): WC_Order_Export_Data_Extractor::fetch_order_data('55092', Array, Array, Array, Array)
#2 /.../wp-content/plugins/woo-order-export-lite/classes/admin/tabs/ajax/trait-wc-order-export-admin-tab-abstract-ajax-export.php(93): WC_Order_Export_Engine::build_file(Array, 'partial', 'file', 0, 30, '/tmp/ordersUmnw...')
#3 /.../wp-content/plugins/woo-order-export-lite/classes/class-wc-order-export-admin.php(552): WC_Order_Export_Admin_Tab_Abstract->ajax_export_part()
#4 /.../wp-includes/class-wp-hook.php(324): WC_Order_Export_Admin->ajax_gate('')
#5 /.../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#6 /.../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /.../wp-admin/admin-ajax.php(192): do_action('wp_ajax_order_e...')
#8 {main}
thrown in /.../wp-content/plugins/woo-order-export-lite/classes/core/trait-woe-core-extractor.php on line 891
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Fatal error if export refunds’ is closed to new replies.