I think this is a duplicate of #1245244: Undefined index: delta in views_handler_field_field->get_value(), which adresses 'delta' instead of 'und'.
Error appears when looping at display data when some columns/datacells have no data, in e.g. mymodule_views_plugin_style_xyz.inc :
foreach ($records as $row_index => $row) {
foreach ($this->view->field as $key => $field) {
if (!$field->options['exclude']) {
$object_value = $this->view->field[$key]->get_value($row);
}
}
}
The line 740 in views_handler_field_field::getvalue() may return an empty array, which is incorrectly tested for in line 686:
// The field we are trying to display doesn't exist on this entity.
+ if (empty($entity->{$this->definition['field_name']})) {
- if (!isset($entity->{$this->definition['field_name']})) {
return array();
}
...
if ($field == 'entity') {
return $entity;
}
else {
return $entity->{$this->definition['field_name']}[$langcode];
}
}
Patch coming up.
Comments
Comment #1
johnvhere's the patch.
Comment #2
johnvComment #3
dawehnerThanks! This makes absolute sense, commit to 7.x-3.x
Comment #4
dawehnerNo it doesn't make sense, see http://drupal.org/node/1325942#new
Comment #5
johnvAh, I was so hapy my little drop passed without comments on indents etc. ;-)
Comment #6
dawehnerHehe :)
What about this patch?
Comment #7
dawehnerSo commited to 7.x-3.x
Comment #9
giorgoskUnfortunatelly I still get exactly the same error on line 692
here is a patch that makes it go away
Comment #10
dawehnerYeah there seems to be multiple places with that issue, so your patch fixes another issue.
Commited this patch to 7.x-3.x