warning: Invalid argument supplied for foreach() in /var/www/ocdevel/sites/treedavis.ocdevel.com/modules/gmap/gmap_views.module on line 116.

and none of my nodes showing up on the map.

what I did was:

  1. install gmap, locations, cck, views
  2. create a content type "Loc" and added location information
  3. created a few of these types with addresses (geotranslation didn't kick in, so I hard-coded lat/long obtained from external site)
  4. created view called "Map" with fields= location:lat, location:long, node:title

Comments

lefnire’s picture

works after i uninstalled & reinstalled gmap. I think you have to install everything in order, instead of at the same time:

  1. cck & views
  2. location
  3. gmap
lefnire’s picture

Status: Active » Closed (fixed)
kamazeuci’s picture

Version: 5.x-1.0-beta4 » 5.x-1.0-rc2
Status: Closed (fixed) » Postponed (maintainer needs more info)

I have the same problem:

"warning: Invalid argument supplied for foreach() in /home/www/kamazeuci/permaculturachile.org/docs/sites/all/modules/gmap/gmap_views.module on line 116."

Map appears but with no markers. I uninstalled gmap and installed it again but problem persists. Any idea?

podarok’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

release unsupported
feel free to open issue against latest 7.x dev