Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.8
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2009 at 20:12 UTC
Updated:
9 Jun 2010 at 23:12 UTC
I get the error "warning: Invalid argument supplied for foreach() in /.../modules/views/plugins/views_plugin_display.inc on line 547." when attempting to views a view using the GMap style plugin. No map displays. Also, on the view's edit page, I get the following above the display preview:
warning: Invalid argument supplied for foreach() in /.../modules/gmap/gmap_plugin_style_gmap.inc on line 172.
warning: Invalid argument supplied for foreach() in /.../modules/views/plugins/views_plugin_display.inc on line 547.
I'm using GMap 6.x-1.1-rc1 and Views 6.x-2.6.
Comments
Comment #1
seanrBTW, here are the node and view definitions if you want to try to recreate it:
Comment #2
seanrI also tried using the regular node location instead of the CCK field, but that had no effect. Looking at the code in question, it looks like this module isn't passing the right data to the views module so it's completely hosed. Some help with this would be greatly appreciated - I've got a client who needs to get this working ASAP.
Comment #3
seanrGMap 6.x-1.x-dev doesn't work either.
Comment #4
rooby commentedThe problem is due to Row style being node, not fields.
I'm too tired to look further into it now but soon.
[EDIT] removed reference to a duplicate issue as it seems it isn't a duplicate
Comment #5
rooby commentedRenaming as the line number is different in 6.x-2.8
I have looked into this further now that I am more awake and the problem persists even if not using the gmap view style.
This seems to be an issue with views as opposed to gmap.
Also, please see #697794: Invalid argument in /views_plugin_display.inc on line 667 on default views only as this might be a duplicate of that issue just for a different views version.
Comment #6
merlinofchaos commentedIf this persists without using the gmap style, please provide reproduction instructions.
Comment #7
esmerel commentedNo updates with more info in more than 30 days.