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

phayes’s picture

Deleted Comment.. I'm running on the wrong version.

phayes’s picture

I'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.

zzolo’s picture

Status: Active » Closed (fixed)

CCK has been overhauled. Please update and try newest dev version. Start new ticket if needed