Viewing 1 reply thread
  • Author
    Posts
    • #10197
      Anonymous
      Inactive

      Hi,

      I was facing repeated AJAX errors while importing.

      After checking the error logs, I made two fixes.

      First, the following lines in product-csv-import-export-for-woocommerce/includes/importer/class-wf-prodimpexpcsv-product-import.php

      
      $abs_url    = str_replace( trailingslashit( site_url() ), trailingslashit( ABSPATH ), $url );
      $new_name   = wp_unique_filename( $upload_dir['path'], basename( $url ) );
      

      should be replaced with:

      
      $abs_url    = str_replace( trailingslashit( site_url() ), trailingslashit( ABSPATH ), urldecode($url) );
      $new_name   = wp_unique_filename( $upload_dir['path'], basename( urldecode($url) ) );
      

      (The file name is being fetched from a URL, which can/should be URL-encoded.)

      Secondly, I increased the memory limit.

    • #10211
      Anonymous
      Inactive

      Hello moustafa,

      Very thanks for your suggestions, we will check this and update.

      Thank you.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Scroll to Top