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.

CommentFileSizeAuthor
#3 Screenshot.png45.98 KBBruceDawson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anavarre’s picture

I 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.

Fanaile’s picture

I 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.

BruceDawson’s picture

Version: 7.x-3.0-rc3 » 7.x-3.0
FileSize
45.98 KB

I 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.

danielb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

There 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.