Warning: Invalid argument supplied for foreach() in eva_field_extra_fields() (line 25 of /mysite/sites/all/modules/eva/eva.module).

No errors in functionally, everything works as it should.

Entity content settings
Entity type: Node
Bundles: Event
Arguments: id
Show title: No

• Drupal 7.17
• Views 7.x-3.5

Comments

j.johnson.bbt’s picture

Getting the same error. Any way to supress it?

masher’s picture

Only by turning of errors e.g. /admin/config/development/logging

Never managed to solve this one. I try to use block-views instead.

Not as useful though as you can't position them within fields of a content-type.

ayesh’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.94 KB

The attached patch should fix it. It simply wraps the foreach with an if statement to make sure $view['bundles'] is not empty and an array.

masher’s picture

I can report the patch fixes the issue on my installations

Many thanks!!

tim.plunkett’s picture

Status: Needs review » Fixed

The code has changed since your last patch, but this should fix it.
Thanks!
http://drupalcode.org/project/eva.git/commitdiff/5798231

ayesh’s picture

Even better. #5 mentioned commit fixed the problem.

Status: Fixed » Closed (fixed)

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