php fatal error accessing plugin after 4.01 update
-
First of all, thank you for this excellent plugin, I have been using it for years without problems. But with the last update to version 4.01 I found that generates a fatal error every time you access it (by clicking on “export orders” under the woocommerce menu). The error it throws every time in the logs is (the same error twice each time you access wp-admin/admin.php?page=wc-order-export ):
[26-Mar-2025 13:48:43 UTC] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, string given in /home/local.test/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-data-extractor-ui.php:89
Stack trace: 0 /home/local.test/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-data-extractor-ui.php(89): array_merge(Array, ‘%d,%d,%d,%d,%d,…’) 1 /home/local.test/wp-content/plugins/woo-order-export-lite/classes/admin/tabs/ajax/trait-wc-order-export-admin-tab-abstract-ajax-filters.php(145): WC_Order_Export_Data_Extractor_UI::get_order_meta_values(‘billing‘, ‘City’) 2 /home/local.test/wp-content/plugins/woo-order-export-lite/classes/class-wc-order-export-admin.php(561): WC_Order_Export_Admin_Tab_Abstract->ajax_get_order_billing_values() 3 /home/local.test/wp-includes/class-wp-hook.php(324): WC_Order_Export_Admin->ajax_gate(”) 4 /home/local.test/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 5 /home/local.test/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 6 /home/local.test/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_order_e…’) 7 {main}thrown in /home/local.test/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-data-extractor-ui.php on line 89
[26-Mar-2025 13:48:43 UTC] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, string given in /home/local.test/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-data-extractor-ui.php:89
Stack trace: 0 /home/local.test/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-data-extractor-ui.php(89): array_merge(Array, ‘%d,%d,%d,%d,%d,…’) 1 /home/local.test/wp-content/plugins/woo-order-export-lite/classes/admin/tabs/ajax/trait-wc-order-export-admin-tab-abstract-ajax-filters.php(139): WC_Order_Export_Data_Extractor_UI::get_order_meta_values(‘shipping‘, ‘City’) 2 /home/local.test/wp-content/plugins/woo-order-export-lite/classes/class-wc-order-export-admin.php(561): WC_Order_Export_Admin_Tab_Abstract->ajax_get_order_shipping_values() 3 /home/local.test/wp-includes/class-wp-hook.php(324): WC_Order_Export_Admin->ajax_gate(”) 4 /home/local.test/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 5 /home/local.test/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 6 /home/local.test/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_order_e…’) 7 {main}thrown in /home/local.test/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-data-extractor-ui.php on line 89
Once the plugin is accessed, the export works perfectly as usual, but accessing it always generates these fatal errors. It happens with both php 8.1 and php 8.2 and with any theme(i deactivated my custom theme and used an standard wp one and it happens the same way), i’m using wordpress 6.7.2. Can you help me? Thanks
The topic ‘php fatal error accessing plugin after 4.01 update’ is closed to new replies.