Critical error when exporting XLS
-
Hi there,
When I try to export my orders as XLS (sorted by Product ID), the export generates a critical error and then aborts.
The following can be found in the debug logs:
[14-Dec-2024 07:29:04 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string - string in /www/htdocs/xxx/domain/wp-content/plugins/woo-order-export-lite/classes/formats/storage/class-woe-formatter-storage-csv.php:200
Stack trace:
#0 [internal function]: WOE_Formatter_Storage_Csv->{closure}(Object(WOE_Formatter_Storage_Row), Object(WOE_Formatter_Storage_Row))
#1 /www/htdocs/xxx/domain/wp-content/plugins/woo-order-export-lite/classes/formats/storage/class-woe-formatter-storage-csv.php(212): usort(Array, Object(Closure))
#2 /www/htdocs/xxx/domain/wp-content/plugins/woo-order-export-lite/classes/formats/storage/class-woe-formatter-storage-csv.php(194): WOE_Formatter_Storage_Csv->sortRows(Object(Closure))
#3 /www/htdocs/xxx/domain/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xls.php(310): WOE_Formatter_Storage_Csv->sortRowsByColumn(Array)
#4 /www/htdocs/xxx/domain/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-engine.php(458): WOE_Formatter_Xls->finish()
#5 /www/htdocs/xxx/domain/wp-content/plugins/woo-order-export-lite/classes/admin/tabs/ajax/trait-wc-order-export-admin-tab-abstract-ajax-export.php(147): WC_Order_Export_Engine::build_file(Array, 'finish', 'file', 0, 0, '/tmp/orders7LtL...')
#6 /www/htdocs/xxx/domain/wp-content/plugins/woo-order-export-lite/classes/class-wc-order-export-admin.php(540): WC_Order_Export_Admin_Tab_Abstract->ajax_export_finish()
#7 /www/htdocs/xxx/domain/wp-includes/class-wp-hook.php(324): WC_Order_Export_Admin->ajax_gate('')
#8 /www/htdocs/xxx/domain/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#9 /www/htdocs/xxx/domain/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#10 /www/htdocs/xxx/domain/wp-admin/admin-ajax.php(192): do_action('wp_ajax_order_e...')
#11 {main}
thrown in /www/htdocs/xxx/domain/wp-content/plugins/woo-order-export-lite/classes/formats/storage/class-woe-formatter-storage-csv.php on line 200However, the same export as CSV works.
Is this problem already known?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Critical error when exporting XLS’ is closed to new replies.