• Resolved reg2s

    (@reg2s)


    When importing images thumbnails are not generated. To fix this after wp_insert_attachment() must be called wp_generate_attachment_metadata() and wp_update_attachment_metadata() (http://codex.ww.wp.xz.cn/Function_Reference/wp_insert_attachment).

    class-wf-prodimpexpcsv-product-import.php? line 1187 (v1.0.0):
    $attachment_id = wp_insert_attachment( $post, $attachment_file, $post_id );
    $attach_data = wp_generate_attachment_metadata( $attachment_id, $attachment_file );
    wp_update_attachment_metadata( $attachment_id, $attach_data );

    class-wf-prodimpexpcsv-product-import.php, line 1214 (v1.0.0):
    $attachment_id = wp_insert_attachment( $post, $upload[‘file’], $post_id );
    $attach_data = wp_generate_attachment_metadata( $attachment_id, $upload[‘file’] );
    wp_update_attachment_metadata( $attachment_id, $attach_data );

    https://ww.wp.xz.cn/plugins/product-import-export-for-woo/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,
    Sorry for the inconvenience. We will update this soon.
    Kindly check this space for information on the next release.

    Hi,

    We have fixed the issue with thumbnail in version 1.0.1.
    Please try the latest version and let us know if you face any issue.

    Thread Starter reg2s

    (@reg2s)

    Works as it should. Also it is convenient to see thumbnails generaion progress, as it can take a long enough time. Thank you for quick fix.

    You are welcome!

    Thread Starter reg2s

    (@reg2s)

    Today I found that when importing more than 4 images thumbnail generation process stops with error in jquery.js:

    function (){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);”function”===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&”string”!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this}

    Tested on WP 4.4.2 and Uniform Server, Firefox and Opera browsers. Caching plugin is turned off.

    Hi

    We were able to import the product with 6 thumbnail images. Attached the screenshot here. It will be great if you can try again with valid image URLs. If the issue persists please provide us the wp-admin credentials along with sample csv to reproduce the issue.

    Thread Starter reg2s

    (@reg2s)

    Problem was connected with “WP Smush – Image Optimization” plugin. When it is turned off thumbnails are generated normally.

    With WP Smush generation takes much more time. May be there is some timeout ussie. Or may be there is connection limit to remote server where images are optimized.

    Hi

    Great that you figured out the problem. Let us know if you need any help from our side.

    TopCat

    (@kennyteecee)

    Hello,
    How do i import images from my image library without making duplicates of the images? I used the url for the featured images

    Hi kennyteecee,
    The plugin will import the images from the URL provided in the CSV. You can achieve this by moving all the images from your media to another source and update the CSV with new source image URL and import. Now it will not create duplicate images.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Generating thumbnail fix’ is closed to new replies.