Pressing the "Convert" tab button to convert a Node with node references triggers this error:
Notice: Undefined index: value in node_convert_get_field_value() (line 1150 of sites\all\modules\node_convert\node_convert.module).

In node_convert.module that lines 1143 thru 1148 are commented out:

  elseif ($field['type'] == "nodereference") {
    $value = "nid: " . $field_values[0]['nid'];
  }
  elseif ($field['type'] == "userreference") {
    $value = "uid: " . $field_values[0]['uid'];
  }

Cracking into the module a little bit, I found out that the new $field['type'] identifiers for References are "node_reference" and "user_reference". Updating these in node_convert.module and uncommenting these lines, it converts safely.

Comments

wjaspers’s picture

Title: Converting a Node with Revisions » Converting a Node with References
pauljohn32’s picture

OK, I see the same error. I changed those lines in node_convert.module as *I think* you recommend:

elseif ($field['type'] == "node_reference") {
$value = "nid: " . $field_values[0]['nid'];
}
elseif ($field['type'] == "user_reference") {
$value = "uid: " . $field_values[0]['uid'];
}

But I still see same error. After editing those lines, am I supposed to run some update script?

drasgardian’s picture

I upgraded to the latest dev release and no longer see this issue

alcroito’s picture

Status: Active » Fixed

Fixed in 7.x-dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.