• Resolved danielspain

    (@danielspain)


    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

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Support aprokaev

    (@aprokaev)

    Hello

    Could you submit your settings as new ticket to https://algolplus.freshdesk.com/ ?
    Visit tab “Tools” to get them.

    Thread Starter danielspain

    (@danielspain)

    I’ll do, but it’s not related to my settings i think, the offending line 89:

    $results = $wpdb->get_col( $wpdb->prepare( “SELECT DISTINCT meta_value FROM {$wpdb->postmeta} WHERE meta_key = %s AND post_id IN($list_placeholders)”, array_merge( [$type . strtolower( $key )],$list_placeholders ) ) );

    $list_placeholders is expecting an array and receiving an string…if i alter the line to convert it to an array before the merge the error disappears! please review this…thanks!

    Plugin Support aprokaev

    (@aprokaev)

    hi

    Yes, we figured it out already 🙂

    I’ll reply to the ticket in 15-20 minutes

    Thread Starter danielspain

    (@danielspain)

    Ok, i’ll wait for the fix! Thanks a lot…will be a new release or a patch?

    Plugin Support aprokaev

    (@aprokaev)

    We can’t just patch file (security plugins might show warnings), we will have to release new version .

    We updated development version now, so
    please, visit https://wordpress.org/plugins/woo-order-export-lite/advanced/
    scroll to bottom
    click “Download”
    replace plugin via >Plugins>Add New>Upload

    Thread Starter danielspain

    (@danielspain)

    ok, thanks a lot i’ll try, then i’ll have to upgrade when you release new version from the devel one? thanks!

    Plugin Support aprokaev

    (@aprokaev)

    It will depend on situation .

    If we don’t get new bug reports this week — we’ll just publish development version on Monday.

    Thread Starter danielspain

    (@danielspain)

    Thanks a lot, the devel version worked right away , great plugin and support!!

    Hi

    We are getting a similar fatal error – will the patch on Monday address this?

    Thanks

    2025-03-27T12:07:41+00:00 Critical Uncaught TypeError: ZipStream\File::__construct(): Argument #1 ($fileName) must be of type string, ZipStream\ZipStream given, called in /nas/content/live/vanillawoodflo/wp-content/plugins/filebird-pro/vendor/maennchen/zipstream-php/src/ZipStream.php on line 221 and defined in /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/vendor/maennchen/zipstream-php/src/File.php:46 CONTEXT: {“error”:{“type”:1,”file”:”/nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/vendor/maennchen/zipstream-php/src/File.php”,”line”:46},”remote-logging”:true,”backtrace”:[“”,”#0 /nas/content/live/vanillawoodflo/wp-content/plugins/filebird-pro/vendor/maennchen/zipstream-php/src/ZipStream.php(221): ZipStream\File->__construct(Object(ZipStream\ZipStream), ‘[Content_Types]…’, Object(ZipStream\Option\File))”,”#1 /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php(661): ZipStream\ZipStream->addFile(‘[Content_Types]…’, ‘<?xml version=”…’)”,”#2 /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php(668): PhpOffice\PhpSpreadsheet\Writer\Xlsx->addZipFile(‘[Content_Types]…’, ‘<?xml version=”…’)”,”#3 /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php(519): PhpOffice\PhpSpreadsheet\Writer\Xlsx->addZipFiles(Array)”,”#4 /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/formats/class-woe-formatter-xls.php(577): PhpOffice\PhpSpreadsheet\Writer\Xlsx->save(‘/tmp/XLS5AJqdu’)”,”#5 /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/core/class-wc-order-export-engine.php(692): WOE_Formatter_Xls->finish()”,”#6 /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/admin/tabs/ajax/trait-wc-order-export-ajax-helpers.php(181): WC_Order_Export_Engine::build_file_full(Array, ‘/tmp/XLS5AJqdu’, 0, Array)”,”#7 /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/admin/tabs/ajax/class-wc-order-export-ajax.php(40): WC_Order_Export_Ajax->build_and_send_file(Array, false, true)”,”#8 /nas/content/live/vanillawoodflo/wp-content/plugins/woo-order-export-lite/classes/class-wc-order-export-admin.php(535): WC_Order_Export_Ajax->ajax_export_download_bulk_file()”,”#9 /nas/content/live/vanillawoodflo/wp-includes/class-wp-hook.php(324): WC_Order_Export_Admin->ajax_gate(”)”,”#10 /nas/content/live/vanillawoodflo/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)”,”#11 /nas/content/live/vanillawoodflo/wp-includes/plugin.php(517): WP_Hook->do_action(Array)”,”#12 /nas/content/live/vanillawoodflo/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_order_e…’)”,”#13 {main}”,”thrown”]}

    Hi

    I rolled back to 3.60 and that seems to work, I tried the dev version and that didnt.

    Thanks

    Plugin Support aprokaev

    (@aprokaev)

    Could you submit your settings as new ticket to https://algolplus.freshdesk.com/ ?

    Visit tab “Tools” to get them.

    I too have the same problem. Dev version 4.0.2 did not solve the problem:

    2025/03/27 14:54:22 [error] 116125#116125: *111556 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: ZipStream\File::__construct(): Argument #1 ($fileName) must be of type string, ZipStream\ZipStream given, called in /www/SITENAME/public/wp-content/plugins/filebird-pro/vendor/maennchen/zipstream-php/src/ZipStream.php on line 221 and defined in /www/SITENAME/public/wp-content/plugins/woo-order-export-lite/classes/vendor/maennchen/zipstream-php/src/File.php:46

    Stack trace:

    #0 /www/SITENAME/public/wp-content/plugins/filebird-pro/vendor/maennchen/zipstream-php/src/ZipStream.php(221): ZipStream\File->__construct(Object(ZipStream\ZipStream), ‘[Content_Types]…’, Object(ZipStream\Option\File))

    #1 /www/SITENAME/public/wp-content/plugins/woo-order-export-lite/classes/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php(661): ZipStream\ZipStream->addFile(‘[Content_Types]…’, ‘<?xml version=”…’)

    #2 /www/SITENAME/public/wp-content/plugins/woo-order-export-lite/classes/vendor/phpoffice/phpspreadsheet/s” while reading response header from upstream, client: 194.48.249.12, server: SITENAME.com, request: “GET /wp-admin/admin-ajax.php?action=order_exporter&method=export_download_bulk_file&export_bulk_profile=now&ids=222071 HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.2-fpm-SITENAME.sock:”, host: “SITENAME.com:56376”, referrer: “https://SITENAME.com/wp-admin/edit.php?s=pamela&post_status=all&post_type=shop_order&action=-1&m=0&_customer_user&_shop_order_shipping_provider&paged=1&action2=-1&#8221;

    I also restored the version 3.6.0 and solved the problem.

    • This reply was modified 1 year, 1 month ago by metalinedev.

    Have submitted settings as requested

    Plugin Support aprokaev

    (@aprokaev)

    hi @metalinedev @tonyduckett

    It’s a conflict with “filebird-pro” plugin .

    Can you upload this plugin(zip file) as ticket to https://algolplus.freshdesk.com/ ?

    Same critical error with 4.0.1 release (ok with previous versions) when exporting in .xls format ; when this box unselected (in .xls config) : Exporter en tant que .xls (Format de fichier binaire) Utiliser le nom de la …

    ok in csv

    waiting for new release

Viewing 15 replies - 1 through 15 (of 23 total)

The topic ‘php fatal error accessing plugin after 4.01 update’ is closed to new replies.