Search code examples
image-processingimporterrormagmimagento-1.9

Magmi Image attributes processor v1.0.31 import error


When importing an image via http in Magmi with the Image attribute processor it will not parse an http link correctly if it has a "(" or ")" in the image name. I have tried numerous ways to format the url.

example:

http://img.banggood.com/images/upload/2012/liuguanglian/SKU064425%20&#x28-;4&#x29-;.JPG
Had to add - to the above example or it would auto change to ( )

http://img.banggood.com/images/upload/2012/liuguanglian/SKU064425%20(4).JPG

both are retrievable via http (browser) but fail during importing. This is the error:

source error, Cannot fetch URL:
http://img.banggood.com/images/upload/2012/liuguanglian/SKU064425%20(
Image attributes processor v1.0.31 - 4) cannot be found in images path
Image attributes processor v1.0.31 - .JPG cannot be found in images path
Image attributes processor v1.0.31 - error copying

Any help would be greatly appreciated.


Solution

  • I suppose your problem happens only on media_gallery column.

    The problem might come from the ; of the encoded ( and ) since it's a separator for media_gallery column.

    Would those ( and ) be set as is in the image url instead of encoded, then it should work correctly.

    this can be solved by using value replacer with following settings:

    • attribute to replace : media_gallery,image,small_image,thumbnail
    • new value for media_gallery : {{ urldecode(html_entity_decode({item.media_gallery})) }}
    • new value for image : {{ urldecode(html_entity_decode({item.image})) }}
    • new value for small_image : {{ urldecode(html_entity_decode({item.small_image})) }}
    • new value for thumbnail : {{ urldecode(html_entity_decode({item.thumbnail})) }}