Received this notice when using Views with OpenLayers maps.The notice references the views_plugin_query_default.inc file. I also received a PHP Warning: Invalid argument supplied for foreach() on line 1099 of the same file.

Both issues were resolved when I declared the $fields property on line 95:

var $fields = array();

CommentFileSizeAuthor
#2 declare_fieds_var-1444272-2.patch526 byteshelmo

Comments

Macronomicus’s picture

Version: 7.x-3.1 » 7.x-3.x-dev

I've been getting these too but without OpenLayers... at any rate the declared property fixes it.

helmo’s picture

Status: Active » Needs review
StatusFileSize
new526 bytes

Got the same notice.

Here's a patch based on #0 .

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Yeah, I guess this makes sense.

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch. Committed to both 6.x-3.x and 7.x-3.x

Status: Fixed » Closed (fixed)

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