Closed (fixed)
Project:
Openlayers
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2009 at 22:45 UTC
Updated:
29 Jul 2009 at 07:02 UTC
warning: Invalid argument supplied for foreach() in /var/www/sandbox/sites/all/modules/openlayers/modules/openlayers_cck/openlayers_cck.module on line 499.
Not really sure why but seems to be angry with an empty $widget['openlayers_cck_feature_types'] field.
Comments
Comment #1
phayes commentedDeleted Comment.. I'm running on the wrong version.
Comment #2
phayes commentedI've made a pseudo fix here: http://drupal.org/cvs?commit=237504
The problem is in the widget settings form, it wants a default value, and wants to display a map to do so. In this circumstance the $field object is empty, so it throws a wobbly. This fix simply disables the map etc. from the widget settings form.
In the long run to make this work properly, we need to fix another (bigger) bug: getting maps to work when they are in a hidden div.
Comment #3
zzolo commentedCCK has been overhauled. Please update and try newest dev version. Start new ticket if needed