• Resolved ferrarid72

    (@ferrarid72)


    Goodmorning,

    I updated the plugin Version 2.3.9 but when uploading file for import, I got the error: “Invalid file type. Only CSV are allowed.”, even using files previously used for successfully imports.

    Same problem to plugin: “Import Export WordPress Users and WooCommerce Customers
    Version 2.5.0

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi?@ferrarid72,


    Thanks for getting in touch with us.


    We tried to replicate the issue on our test sites using the latest version of our plugin and it worked fine without any issues. Can you please let us know the operating system that you are using to upload the file, along with the operating system that has been used on your server? 

    Also, let us know which browser and its version you are using so that we can check with those environments.

    Thread Starter ferrarid72

    (@ferrarid72)

    Good morning,
    the server is provided by Cloudways, on the top of DigitalOcean, so I suppose it is a Linux/Ubuntu, PHP 8.2, MariaDB 10.6
    My PC is Win 10, Chrome Version 120.0.6099.200 (Official Build) (64-bit)

    It fails even using yoiut CSV demo: https://www.webtoffee.com/wp-content/uploads/2020/10/Sample_Users.csv

    Last successful import was on  2023-07-28 07:38:28
    I do not remember the package version at that date, but I always keep the latest version.

    Thanks a lot for your help

    Yes we are experiencing the same error when trying to upload a csv file

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @ferrarid72 @flinty2000,

    We  apologize for the inconvenience and we would like to inform that we have addressed this issue in the latest version of the plugin. 

    We recommend updating the plugin to the latest version. Once updated, please try importing your files again and let us know how it goes.

    Thread Starter ferrarid72

    (@ferrarid72)

    Goodmorning,
    just to inform you that even installing the latest version of the plugim, the error still occours.
    Thanks in advance
    Davide

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @ferrarid72,

    Once again, we apologize for any inconvenience caused by this error.

    To investigate the issue further, we need to know which file type your device is reading the CSV file as. Could you please share the error log after completing the steps below?

    Please follow the path:

    product-import-export-for-woo → admin → modules→import→classes→class-import-ajax.php 

    After the code?

    $upload_file_details = wp_check_filetype($_FILES['wt_iew_import_file']['name']);
    

    Please add the following line of code:

    error_log('<pre>$abc:-' . print_r($upload_file_details, 1) . '</per>', 3, ABSPATH . "/wp-content/uploads/wc-logs/test-log.log");

    Similarly,

    After the code?

    elseif( $upload_file_details['ext'] == 'csv')			{
    				$is_file_type_allowed=true;
    			}
    

    Please add the following line of code:

    error_log('<pre>$xyz:-' . print_r($_FILES['wt_iew_import_file']['type'], 1) . '</per>', 3, ABSPATH . "/wp-content/uploads/wc-logs/test-log.log");
    

    After this change, please check the test log on the path WooCommerce → Status → logs → test-log and share the exact error message shown via support.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @ferrarid72?@flinty2000,

    We’ve identified the cause and implemented a fix in the newly released plugin version 2.4.1. Please update to the latest version to fix this issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error “Invalid file type. Only CSV are allowed.”’ is closed to new replies.