I have created a custom content type with a image file field which is set to required. These are the steps I take to import my nodes:

1. FTP image files to sites/default/files/images directory (i.e. sites/default/files/images/p16552_1.jpg)
2. Go to Import Content, choose my custom content type (vehicle) and upload my csv file

i.e.
Title, Type, Image
2004 Chrysler Sebring GTC Convertible 2D, R, p16554_1.jpg

3. Choose CSV option
4. Map the Image content field to the Image column
5. Displays message "You need to FTP the files you reference in this field manually to the correct location (sites/default/files/images) before doing the import." which I have already done.
6. Shows preview which does not include image label or picture
7. Click start import
8. Imports with no errors

The node is created successfully except for in the "content_type_vehicle" table everything is inserted correctly except for the field_image_fid and field_image_list fields which are set to 0. I then checked the "files" table and find that the image was inserted correctly and has a valid fid.

If I update the "content_type_vehicle" table field_image_fid field with the fid from the "files" table it works as expected.

Why are these two fields being to set to 0? and why isn't this working correctly for me. I have looked in the forum but wasn't able to find any answers. PFA the node import bug report. Thanks!

CommentFileSizeAuthor
node_import-node_vehicle-8.txt83.86 KBjohn_manuel

Comments

john_manuel’s picture

Title: Custom content type with Image file field does not display image (field_image_fid and field_image_list set to 0) » Node import Image field does not display (field_image_fid and field_image_list set to 0)
john_manuel’s picture

Correction to step 6: in the Preview page it does display the image label and correct image but after I import and go to the node the image label and image are not displayed.

JackThompson’s picture

Could it be your permissions? Many times that is the reason.