Reproduction:
- Navigate to Structure > Openlayers > Layers.
- Clone the "Google Maps Satellite"
- Edit the "Layer Machine Name" to "google_satellite_zoom_level_22", "Layer Description" to "Google Maps Satellite Imagery, enhanced zoom." and "Number of Zoom Levels" to "22".
- Click "Save" to attempt to save the layer.
Get the following warning:
Strict warning: Only variables should be passed by reference in openlayers_layer_type->save() (line 950 of [...]\drupal\sites\all\modules\contrib\openlayers\openlayers.module).
and a confirmation message that the layer was saved.
The same warning is raised when we try to edit the layer we just created/cloned.
Comments
Comment #1
nod_Comment #2
GeertWil commentedI have the same issue when trying to add a kml layer.
I created a kml file that works fine in Google Maps and Google Earth. When I try to add the layer, I get the same error. In my case Drupal says the error happened in line 951, but I am working with dev version 3.x and nog 2.x.
Comment #3
GeertWil commentedThe error dissappears when I switch back to version 7.x-2.0-beta, but then my old error messages show up again. The real list of error messages is much longer, I included only the first two ones.
Strict warning: Declaration of openlayers_layer_type_cloudmade::options_form() should be compatible with that of openlayers_layer_type::options_form() in ctools_plugin_load_includes() (regel 468 van C:\xampp\htdocs\btm\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_geojson::options_form() should be compatible with that of openlayers_layer_type::options_form() in ctools_plugin_load_includes() (regel 468 van C:\xampp\htdocs\btm\sites\all\modules\ctools\includes\plugins.inc).
Comment #4
zzolo commentedHey @George Petsagourakis, are you still getting this warning. I cannot reproduce.
Hey @GeertWil, please make sure that your issue is the same as the original, and if not, please open another issue. Also, there is no reason to use the 3.x version of this module at the moment.
Comment #5
petsagouris commented@zzolo I've moved on since then. I can't get back there now, sorry.
Comment #6
zzolo commentedThanks @George.
Comment #6.0
zzolo commentedRemoved path data.