After installing today's dev updates to entity-7.x-1.x-dev, views-7.x-3.x-dev, and views_bulk_operations-7.x-3.x-dev, I'm seeing numerous new views error throughout my site. The most immediate one comes up when I execute drush cc:
$ drush cc all
WD php: Warning: Invalid argument supplied for foreach() in field_views_field_default_views_data() (line 206 of ~/public_html/sites/all/modules/views/modules/field.views.inc).[warning]
WD php: Warning: Invalid argument supplied for foreach() in field_views_field_default_views_data() (line 315 of ~/public_html/sites/all/modules/views/modules/field.views.inc).[warning]
WD php: Warning: Invalid argument supplied for foreach() in field_views_field_default_views_data() (line 315 of ~/public_html/sites/all/modules/views/modules/field.views.inc).[warning]
WD php: Warning: Invalid argument supplied for foreach() in field_views_field_default_views_data() (line 315 of ~/public_html/sites/all/modules/views/modules/field.views.inc).[warning]
Invalid argument supplied for foreach() in field_views_field_default_views_data() (line 206 of ~/public_html/sites/all/modules/views/modules/field.views.inc). [warning]
Invalid argument supplied for foreach() in field_views_field_default_views_data() (line 315 of ~/public_html/sites/all/modules/views/modules/field.views.inc). [warning]
Invalid argument supplied for foreach() in field_views_field_default_views_data() (line 315 of ~/public_html/sites/all/modules/views/modules/field.views.inc). [warning]
Invalid argument supplied for foreach() in field_views_field_default_views_data() (line 315 of ~/public_html/sites/all/modules/views/modules/field.views.inc). [warning]
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1189624-fix-bad-return.patch | 445 bytes | merlinofchaos |
Comments
Comment #1
merlinofchaos commentedTry this patch
Comment #2
zabelc commentedThanks merlinofchaos! That patch took care of the errors showing up via drush.
Unfortunately, I regression tested some previously working views and seem to have quite a few errors & warnings coming from views_handler_field_field. FWIW, the views that seem to have problems use context parameters.
For example:
Would this be related, or another issue?
Comment #3
dkroneb commentedThe patch is good, thanks
Comment #4
tbayens commentedI don't know how to install a patch like this, a complete Drupal noob and I do not know what Putty is... But is there a way for a noob like me to use this patch?
Comment #5
tbayens commentedOk, download the field.views.inc then change the - line in the patch with the + line and it should work right?
Comment #6
merlinofchaos commentedI committed #1. This still leaves the problem in #2 which I'm having a little more trouble figuring out.
Comment #7
dawehnerLet's fix this one #1190526: Undefined Indices & SQL Errors in Views with Exposed Filters is a duplicate of this one with the commited patch.
Comment #8
zabelc commented@dereine, I'd agree that [1190526] is a separate (but possibly related) issue. I'd say that the patch fixes this issue, although the patch doesn't appear to have been included in today's dev update.
Comment #9
merlinofchaos commentedI only just committed it. It'll be in the next -dev reroll.