Hi All,
I have tried to import the content based on XML file and i had to convert encoding type to UTF-8 to input a greek content. When i did it i got the following error:
Warning: Invalid argument supplied for foreach() in node_export_json_decode_objects() (line 44 of /mnt/www/html/pfwebinarsdev/docroot/sites/all/modules/contrib/node_export/formats/json.inc).
Warning: Invalid argument supplied for foreach() in node_export_drupal_decode_objects() (line 32 of /mnt/www/html/pfwebinarsdev/docroot/sites/all/modules/contrib/node_export/formats/drupal.inc).
Node export was unable to recognize the format of the supplied code. No nodes imported.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#3 | Screenshot.png | 45.98 KB | BruceDawson |
Comments
Comment #1
anavarreI can confirm a pretty similar error when trying to import XML via code paste, not file import:
Warning: Invalid argument supplied for foreach() in node_export_file_field_import() (line 1091 of /www/sites/default/modules/node_export/node_export.module).
However import worked just fine and both title and body from the article content type made it through as expected.
Comment #2
Fanaile CreditAttribution: Fanaile commentedI did a copy-paste export of blog entries from one drupal installation to another drupal installation and received the same error as in #1
Warning: Invalid argument supplied for foreach() in node_export_file_field_import() (line 1091 of /sites/all/modules/node_export/node_export.module).
The nodes look as though they got imported okay even with the error, but when I try to configure it to not reset things like the author, it doesn't work. Also, even though they look fine, when I go to edit them, the body is not shown on the edit form.
Comment #3
BruceDawson CreditAttribution: BruceDawson commentedI did a Download on export, and imported the file using Node Export and got the error "Warning: Invalid argument supplied for foreach() in node_export_file_field_import().
However, it appears as if the import worked anyway.
See attached screenshot.
Comment #4
danielb CreditAttribution: danielb commentedThere was a bug with XML numeric arrays, I bet it has to do with that. Reopen if it's still an issue with the latest code.