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.
When installing our site with drush, and it gets to the point of importing the default content. We get the notice:
node_reference_export_alter() failed: Undefined index: nid
This occurs in plugins/node_reference.inc and relates to the fact that the plugin expects the default content to have an nid. Our default content does not have an nid.
I have attached a patch that adds an isset to the condition to ensure it only attempts this if an nid is present.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1896232-defaultcontent-nid.patch | 740 bytes | tim-e |
Comments
Comment #1
tim-e CreditAttribution: tim-e commentedHere is the patch
Comment #2
govind.maloo CreditAttribution: govind.maloo at Salsa Digital commentedHi,
Patch is working fine and solved the mentioned issue. RTBC