This error happens when having an "attached files" field in a view when the view has no result.

the error is in the views_handler_field_upload_fid.inc file line 37:

foreach ($values as $result) {
$vids[] = $result->{$this->field_alias};
}

$values is empty so php throws this error.

The same error can happen in viws_handler_field_upload_description.inc at line 39.

Comments

dawehner’s picture

The general problem behind this is, that pre_render shouldn't be runned when the view is empty.

I'm pretty sure there was an issue with a patch for this, but i'm unable to find it.

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)