• Resolved ferrarid72

    (@ferrarid72)


    Goodmorning,

    I installed the plugin Version 2.5.0, but when uploading file for import, I got the error: “Invalid file type. Only CSV are allowed.”

    Same problem to plugin: “Product Import Export for WooCommerce
    Version 2.3.9
    After updating, the files I previously used to import products, now raise the “Invalid file type. Only CSV are allowed.”

    Thanks

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

    (@webtoffeesupport)

    Hi @ferrarid72,

    Thanks for getting in touch with us.

    We appreciate you bringing this to our attention. We are currently checking this problem in our testing environment.

    We will fix this issue and provide an update as soon as possible. Your patience is greatly appreciated.

    I’m facing the same problem with the WebToffee “Import Export WordPress Users” plugin.

    I’ve tried other plugins to create users from a CSV file, and all now seem to be failing (presumably for the same reason).

    I’m using WordPress 6.4.2. It’s a Multi-Site setup, but the WebToffee user import plugin was working in earlier WP versions, so I’m not sure this is relevant.

    This plugin is such a great time-saver, it’s a real shame it no longer seems to work! Is there an ETA on a fix @webtoffeesupport?

    • This reply was modified 10 months, 2 weeks ago by toneburst.
    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @ferrarid72 @toneburst,

    We would like to inform that a new version of our plugin has just been released, which 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.

    Great, thanks!

    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,

    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:

    users-customers-import-export-for-wp-woocommerce→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.

    vlester

    (@vlester)

    Hello,

    I also get the same error. Thought I tried with the sample CSV file.

    Thanks

    jmyntrn

    (@jmyntrn)

    I also am experiencing the same issue even after upgrading to the latest version.

    .csv and .CSV same issue

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @vlester @jmyntrn

    Could you please share the error log after completing the steps mentioned in the above response?

    toneburst

    (@toneburst)

    Still not fixed for me, with the latest version, I’m afraid.

    toneburst

    (@toneburst)

    @webtoffeesupport could you tell me the exact path to the log file mentioned above? I’ve added the specified debug lines to the class-import-ajax.php file, but can’t find the log it writes to now.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @toneburst,

    You may please follow this path.

    users-customers-import-export-for-wp woocommerce→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/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/test-log.log");

    After this change, please check the file? the path? /wp-content/uploads/test-log.log and share the exact error message shown via?support.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi?@ferrarid72 @toneburst @vlester @jmyntrn,

    We identified the cause and implemented a fix in the newly released plugin version 2.5.2. Kindly update the plugin to the latest version to fix the issue.

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