• Resolved Юлия

    (@ncp2023)


    Hello. After the last update, the error “Invalid file type. Only CSV are allowed.” I add the file that I downloaded using this plugin without changes. Please help me solve the problem.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The same is happening to me.

    I have the same issue; when trying to import products in a csv file format, I get the error message “Invalid file type. Only CSV are allowed.” Please help fix this issue.

    Unfortunately the same thing is happening to me on several web sites.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @ncp2023 @atitec @kowabungawp @dwoott @atitec,

    Thanks for getting in touch with us.

    We’re really sorry for the issue you are facing with the plugin.

    We’ve tested the import with the latest version of the plugin and it’s working fine on our test sites. Please share the import CSV files after removing any sensitive data from it and the system status report so that we can debug the issue. You can share the files using any file sharing services like WeTranfer or Google drive.

    kowabungawp

    (@kowabungawp)

    dwoott

    (@dwoott)

    Hi WebToffee Support,

    Please find requested files here: https://drive.google.com/drive/folders/1k0HofAh6Y5NIH4CBWYjPQRq_8GEuZNZG?usp=sharing

    thowden

    (@thowden)

    Hi,

    Same.

    Test process. Use the Export option to export a single Product.

    Without changing anything in that file, try to Import it and get the invalid file message.

    No need to provide a test file, you have one in your own setup.

    I spent a good 4 hours this afternoon, trying lots of options relating to the content of my invalid import which worked fine last week.

    I have tried 3 computers / browsers, etc. just to make sure it was not something in my setup.

    Tony

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @thowden @ncp2023 @atitec @kowabungawp @dwoott @atitec,

    We would like to inform that a new version of our plugin has just been released, and it includes a fix for the issue you’ve been experiencing.

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

    If you encounter any further issues or have additional feedback, don’t hesitate to get in touch with us.

    dwoott

    (@dwoott)

    Hi @webtoffeesupport I have tried importing my file again after updating the plugin, and I am happy to say all is working now as expected. Thank you ??

    Hi,

    I still encounter the same error when using your own .csv as well as a freshly exported csv.
    Plugin is updated to 2.3.9, deleted the plugin and installed again, cleared my caches and deleted old uploaded product.csv-files via ftp.
    What can I do to get this to work again?
    Thx in advance,
    besterpapa

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @besterpapa,

    Thank you for your response.


    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.

    Hi!

    I can’t import the csv file, not even the example base file.

    I have tried different operating systems and browsers, all updated. The plugin is also updated to the latest version.
    What is the problem?

    Regards!

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @besterpapa @ngilm,

    Even though we were unable to replicate this issue. We have made some changes regarding imports in our latest plugin release.

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

    Hi! Same for me…

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @veivan4,

    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.

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