Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have Commerce Product type with image field.
Feeds can import products from .csv with images very well, but only if images already uploaded.
If image missing, current product not imported at all.
First of all I set default image for image field.
So I want to get error message, but import all of current product fields (ignoring image field).
I can update image field value after uploading image.
Please add possibility to ignore file errors in import process.
Similar issue #1041030: path to image file and upload location when parsing a .csv file
Errors:
The specified file private://import/images/123456.jpg could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
Invalid enclosure private://import/images/123456.jpg
* Created 1 commerce product.
* Failed importing 1 commerce product.
Comments
Comment #1
Ivan Simonov CreditAttribution: Ivan Simonov commentedTemporary solution in creation of 2 importers.
First for all product fields except images.
Second for SKU and images only.
But it is not true way.
Comment #2
Brian@brianpuccio.net CreditAttribution: Brian@brianpuccio.net commentedI have this problem when I'm using an RSS feed and feeds with feeds_imagegrabber.
The specified file http://farm7.staticflickr.com/6166/6265013658_c3e4c75726_z.jpg could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
I don't see why it should ignore this feed item/node to be created, it should be created and the image attached.
Comment #3
Summit CreditAttribution: Summit commentedHi,
I have the same issue as the original poster.
My images are on another server and it is fine if they are not imported, but displayed.
How can I do this please. It took me a complete day to get to this point.
Everything is working except the image and enclosure of the image.
EDIT: the image url's are correct url's.
I use feeds tamper to provide the url and folder, and the image field only contains the filename. I tried with and without spaces and other encoding..
still no go..how to proceed please?
Please provide a working scenario if it is possible?
Thanks a lot in advance for your reply.
Greetings, Martijn
Comment #4
Summit CreditAttribution: Summit commentedHi,
I found out that may be the logic of image feed import is not correct...please suggest otherwise if I am mistaken.
I want to link to an image url in another place. I use the image field to show the image.
The image itself is not yet on my system. But when I see the log of my error it says:
Off course this file does not exist..because I try to import it from another website?
How can I get the image url to import please without copying the file?
Greetings, Martijn
Comment #5
Summit CreditAttribution: Summit commentedSet this to latest dev.
greetings, Martijn
Comment #6
danielhonrade CreditAttribution: danielhonrade commentedif your image is already there in the server, meaning uploaded via ftp, sfp, etc. in a folder
ex. sites/default/files/import_images/image1.jpg
just add the path with the image name in your csv
ex. sites/default/files/import_images/image1.jpg
Note: sites... and not /sites...
Comment #7
pdcarto CreditAttribution: pdcarto commentedThe original post was a request that Feeds not fail to import a node when an image (or file) source url that is mapped to an image (or file) field is blank or otherwise invalid. The current behavior is equivalent to rejecting a node for having a blank value in *any* field. That makes no sense. If I'm importing a bunch of nodes where some have pictures and some do not, I should not have to create two different importers to handle each case.I stand corrected. It fails to import only when the image url cannot be fetched (not when it is blank). I'm still not sure I agree with the decision to reject these nodes, but it's not an unreasonable judgement call.
Thanks.
Comment #8
Summit CreditAttribution: Summit commentedHi,
I have this error constantly when trying to upload feed again.
Somehow by deleting feed the images itself are not deleted I think..
greetings, Martijn
Comment #9
imclean CreditAttribution: imclean commentedTry using the media module and media_feeds to grab remote images.
Comment #10
imclean CreditAttribution: imclean commentedSee also #2002562: Ignore missing media