Closed (fixed)
Project:
OpenLayers Geocoder
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2010 at 23:53 UTC
Updated:
25 Jul 2012 at 12:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
henrijs.seso commentedAnd cloned preset is not working. Default map works, cloned preset won't.Misconfiguration. Nothing is broken, just annoying :)
Comment #2
zzolo commentedHi @LavaMeTender ak... Thanks for the information. None of these warnings can be automatically assumed to be from this module. Marking as support request until actual bug is found.
Comment #3
Brian294 commentedI am getting the same token error:
warning: Invalid argument supplied for foreach() in /data/www/jiffyclip/sites/all/modules/token/token.module on line 385.
the error occurs when I go to:
/admin/build/openlayers/presets/add
/admin/build/openlayers/presets/my_preset_name/edit
Token version: 6.x-1.15
OpenLayers: 6.x-2.0-alpha10
Comment #4
Brian294 commentedHere is what's going on in watchdog:
Comment #5
orbmantell commentedI am getting the same "Invalid argument supplied for foreach()" error on my install of openlayers, I am running a clean drupal 6.20 install with cck, views, token, ctools, and openlayers. I was getting this error on a dev site, and set up this clean install to try to isolate any interference from other modules. Given that the problem still occurs I am assuming this is an openlayers issue, and not an issue of incompatibility with another module.
Comment #6
kle commentedSorry - no Patchfile but after I changed this, the error is gone:
In openlayers_geocoder.token.inc I moved line 20
- $list = array();
just before line 19
- foreach ($layers as $layer_name => $layer) {
otherwise $list is NULL (and $tokens['openlayers data'] should not be NULL)
Grretings from Hamburg !
Comment #7
kardave commentedA made the patch. It works for me.
David
Comment #8
steinmb commentedDoes this commit cleanly against the current dev.?
Comment #9
steinmb commentedUnable to reproduce this error (Token 1.x), anyone now how to? But then again, defining the array inside the foreach loops does not look right. Rerolling.
Comment #10
steinmb commentedLike I wrote in #9 was I unable to reproduce it, but the small patch make totally sense so I went ahead and committed it:
http://drupalcode.org/project/openlayers_geocoder.git/commit/21b207a