• Resolved csilvasuperiortext

    (@csilvasuperiortext)


    Yesterday I began importing a list of product csv’s to WooCommerce and everything was going fine. Today when I got in, I updated to WordPress 5.0.1 and now the importer does not work and gives and error of:
    “Sorry, this file type is not permitted for security reasons.”
    Is this a known bug with WordPress 5.0.1 and WooCommerce 3.5.2? Anyone know of a solution? Need to get these products imported!

Viewing 7 replies - 31 through 37 (of 37 total)
  • This probably won’t be helpful to most of you, but I have tried everything and I was still getting failed imports, using default WC (WP) CSV importer for Coupons.

    The problem in my case was that special characters were used in my CSV (e.g. ‘ó’, ‘?’ etc.). Once I got rid of those, it works fine.

    I hope this will be helpful to someone.

    For anybody that ran into this issue while working on localhost, just enable unsafe urls on your functions.php:

    
    function yourprefix_allow_unsafe_urls($args, $url) {
    	$args['reject_unsafe_urls'] = false;
    	return $args;
    }
    add_filter('http_request_args', 'yourprefix_allow_unsafe_urls', 20, 2);
    

    If you’re trying to pull images from another localhost install and ran into a cURL error after that, try:

    
    function yourprefix_http_request_args($r, $url) {
      $r['sslverify'] = false;
      return $r;
    }
    add_filter('http_request_args', 'yourprefix_http_request_args', 0, 2);
    

    That will make sure you don’t have any issues with neither the file upload, nor with pulling files from another localhost install.

    Im sorry, I am trying to post a price question. Can anybody share share a link to post a new question? Ive been searhing for days now and all I can do it sometines reply on someone elses post ??

    Stef

    (@serafinnyc)

    @kasmel simply click on the woocommerce hyperlink at the top of this article. You’ll be taking to the main page then scroll alllllllll the way to the bottom and you’ll see post form.

    @serafinnyc i found it. I literally typing my post when ur response came thru (mind u ive been aimlessly searching for days now??) Thank u so much for responding though. Have an awesome day!!

    Stef

    (@serafinnyc)

    LOL that’s always the way it goes. Have a good one!

    Jon

    (@freshyjon)

    For what its worth, I still had to use the Disable Real MIME Check despite being on 5.0.3, and the latest WooCommerce. Using Pressable as host.

    I am using a CSV that I exported via Google Sheets.

    • This reply was modified 5 years, 6 months ago by Jon.
Viewing 7 replies - 31 through 37 (of 37 total)
  • The topic ‘WP 5.0.1 breaks WooCommerce csv import?’ is closed to new replies.