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]
CommentFileSizeAuthor
#1 1189624-fix-bad-return.patch445 bytesmerlinofchaos

Comments

merlinofchaos’s picture

Status: Active » Needs review
StatusFileSize
new445 bytes

Try this patch

zabelc’s picture

Thanks 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:

  • Notice: Undefined index: field_std_m_nr_crag_nid in views_handler_field_field->get_base_table() (line 89 of ~/public_html/sites/all/modules/views/modules/field/views_handler_field_field.inc).
  • Notice: Undefined index: in views_handler_field_field->get_base_table() (line 91 of ~/public_html/sites/all/modules/views/modules/field/views_handler_field_field.inc).
  • Notice: Undefined index: in views_handler_field_field->access() (line 73 of ~/public_html/sites/all/modules/views/modules/field/views_handler_field_field.inc).
  • Notice: Undefined index: field_std_m_nr_crag_nid in views_handler_field_field->get_base_table() (line 89 of ~/public_html/sites/all/modules/views/modules/field/views_handler_field_field.inc).
  • Notice: Undefined index: in views_handler_field_field->get_base_table() (line 91 of ~/public_html/sites/all/modules/views/modules/field/views_handler_field_field.inc).
  • Notice: Undefined index: in views_handler_field_field->access() (line 73 of ~/public_html/sites/all/modules/views/modules/field/views_handler_field_field.inc).

Would this be related, or another issue?

dkroneb’s picture

The patch is good, thanks

tbayens’s picture

I 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?

tbayens’s picture

Ok, download the field.views.inc then change the - line in the patch with the + line and it should work right?

merlinofchaos’s picture

I committed #1. This still leaves the problem in #2 which I'm having a little more trouble figuring out.

dawehner’s picture

Status: Needs review » Fixed

Let's fix this one #1190526: Undefined Indices & SQL Errors in Views with Exposed Filters is a duplicate of this one with the commited patch.

zabelc’s picture

@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.

merlinofchaos’s picture

I only just committed it. It'll be in the next -dev reroll.

Status: Fixed » Closed (fixed)

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