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.

CommentFileSizeAuthor
#1 1896232-defaultcontent-nid.patch740 bytestim-e
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim-e’s picture

Status: Active » Needs review
FileSize
740 bytes

Here is the patch

govind.maloo’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Hi,

Patch is working fine and solved the mentioned issue. RTBC