All other fields work as expected, but no images do. There doesn't seem to be a connection between the files and the nodes, but all tables are filled with data, and just by looking at it I can't find anything wrong... I've tried the same migration several times. Any help greatly appreciated.

Comments

blackdog’s picture

So, I've found the issue here. All fields has been migrated to language 'nb' for Norwegian, but when the image field gets loaded, the query only looks for the value 'und'. This is not the case for the body field for instance. I'm not sure why this is though. If I manually change the language value to 'und', the image loads.

Querys:

SELECT t.* FROM field_data_body t WHERE (entity_type = 'node') AND (entity_id IN ('4850')) AND (language IN ('en', 'nb', 'und')) AND (deleted = '0') ORDER BY delta ASC

SELECT t.* FROM field_data_field_article_image t WHERE (entity_type = 'node') AND (entity_id IN ('4850')) AND (language IN ('und')) AND (deleted = '0') ORDER BY delta ASC

This is not a multilingual site, it's just not an english site. Don't really know where to look further... I could change all language values in the DB and move on, but I'd really like to understand the problem.

KarenS’s picture

What would be helpful is to try creating a whole new imagefield on your site and save something into it. Then see how the new field's data is stored. Is is set to 'und' or 'nb'?

Maybe we need a switch to determine if this is a multilingual site, but I don't know for sure what to look for. I really wish someone with a multilingual site would jump in and help here.

somatics’s picture

Subscribe

blackdog’s picture

Karen,

Thanks for your input and hard work with this!

I'll try and create a new field tomorrow and return with the results.

KarenS’s picture

Status: Active » Closed (duplicate)

See #1063852: D6 > D7 non-english migration bug, there is a general problem around translation handling. If the only thing wrong with your files is the language value, we should mark this as a duplicate and you should track that issue, where I am trying to clarify the 'right' way to handle the language.

If you think there is something wrong with the images other than the language you can reopen this.