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 tried to export from D6 with node export 6.x-3.4, a node ... and to import it into D7 with Node export 7.x-3.0 (at the moment the only one available)
I get the following warning:
Warning: Invalid argument supplied for foreach() in node_export_file_field_import() (line 1091 of /web/htdocs/www.mysite.eu/home/drupal/sites/all/modules/node_export/node_export.module).
as result: the node's content is not imported, nor the author etc.
Comments
Comment #1
HyperD CreditAttribution: HyperD commentedplease is anybody there which can help for this issue?
Comment #2
schildi CreditAttribution: schildi commentedsame effects here. For each node to be imported I get messages like
The content to import is of type "biblio". Most fields look ok, but the biblio-authors are not migrated. These entries should be inserted into table biblio_contributor, but no record can be found there.
EDIT:
Ok, the ERROR situation "Undefined index: auth_category" is solved, when changing line 142 from
$author = $node->biblio_contributors[$i]
to
$author = $node->biblio_contributors[$i][0]
But I am sure that this is a hack!
Another point is, that only the author-categories of type 1 (Author) is handled
if ($author['auth_category'] == 1)
But in my case all entries to be imported are of type 5 (Corporate Author). This might be the reason why no one author is migrated.
Comment #3
danielb CreditAttribution: danielb commentedUsing this module for migration across Drupal versions is not easy. You have to use Node Export Feeds which is a very manual process, or convert the D6 site to a D7 site first.
Comment #4
danielb CreditAttribution: danielb commented