I received the following errors after updating to the latest 2.x dev release.

Strict warning: Declaration of openlayers_behavior_attribution::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_attribution.inc).
Strict warning: Declaration of openlayers_behavior_boxselect::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 25 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_boxselect.inc).
Strict warning: Declaration of openlayers_behavior_cluster::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_cluster.inc).
Strict warning: Declaration of openlayers_behavior_dragpan::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_dragpan.inc).
Strict warning: Declaration of openlayers_behavior_drawfeatures::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_drawfeatures.inc).
Strict warning: Declaration of openlayers_behavior_fullscreen::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_fullscreen.inc).
Strict warning: Declaration of openlayers_behavior_geolocate::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_geolocate.inc).
Strict warning: Declaration of openlayers_behavior_layerswitcher::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_layerswitcher.inc).
Strict warning: Declaration of openlayers_behavior_mouseposition::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_mouseposition.inc).
Strict warning: Declaration of openlayers_behavior_navigation::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_navigation.inc).
Strict warning: Declaration of openlayers_behavior_panzoom::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_panzoom.inc).
Strict warning: Declaration of openlayers_behavior_panzoombar::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_panzoombar.inc).
Strict warning: Declaration of openlayers_behavior_permalink::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_permalink.inc).
Strict warning: Declaration of openlayers_behavior_popup::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_popup.inc).
Strict warning: Declaration of openlayers_behavior_scaleline::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_scaleline.inc).
Strict warning: Declaration of openlayers_behavior_tooltip::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_tooltip.inc).
Strict warning: Declaration of openlayers_behavior_zoombox::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_zoombox.inc).
Strict warning: Declaration of openlayers_behavior_zoomtolayer::options_form() should be compatible with that of openlayers_behavior::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\behaviors\openlayers_behavior_zoomtolayer.inc).
Strict warning: Declaration of openlayers_layer_type_cloudmade::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 26 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_cloudmade.inc).
Strict warning: Declaration of openlayers_layer_type_geojson::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_geojson.inc).
Strict warning: Declaration of openlayers_layer_type_google::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 23 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_google.inc).
Strict warning: Declaration of openlayers_layer_type_kml::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_kml.inc).
Strict warning: Declaration of openlayers_layer_type_maptiler::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_maptiler.inc).
Strict warning: Declaration of openlayers_layer_type_osm::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_osm.inc).
Strict warning: Declaration of openlayers_layer_type_raw::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 26 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_raw.inc).
Strict warning: Declaration of openlayers_layer_type_tms::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_tms.inc).
Strict warning: Declaration of openlayers_layer_type_virtualearth::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_virtualearth.inc).
Strict warning: Declaration of openlayers_layer_type_wms::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_wms.inc).
Strict warning: Declaration of openlayers_layer_type_xyz::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 24 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_xyz.inc).
Strict warning: Declaration of openlayers_layer_type_yahoo::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 23 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\plugins\layer_types\openlayers_layer_type_yahoo.inc).
Strict warning: Declaration of openlayers_layer_type_openlayers_views_vector::options_form() should be compatible with that of openlayers_layer_type::options_form() in require_once() (line 21 of C:\Melissa\Drupal\Installation\Versions\Drupal Core\drupal-7.x\sites\all\modules\openlayers\modules\openlayers_views\plugins\layer_types\openlayers_views_vector.inc).

Please advise what actions can be taken to solve these.

Looking forward to your reply.

Thanks in advance.
Melissa

Comments

g_f’s picture

Did you run update.php?

oystercrackher’s picture

yes. after running update is when errors appeared.

Thanks

B0ZE’s picture

I get these on a clean install:
Strict warning: Declaration of openlayers_behavior_attribution::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_boxselect::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_cluster::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_dragpan::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_drawfeatures::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_fullscreen::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_geolocate::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_layerswitcher::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_mouseposition::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_navigation::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_panzoom::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_panzoombar::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_permalink::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_popup::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_scaleline::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_tooltip::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_zoombox::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_behavior_zoomtolayer::options_form() should be compatible with openlayers_behavior::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_cloudmade::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_geojson::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_google::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_kml::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_maptiler::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_osm::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_raw::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_tms::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_virtualearth::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_wms::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_xyz::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).
Strict warning: Declaration of openlayers_layer_type_yahoo::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (line 475 of C:\wamp\www\test3\sites\all\modules\ctools\includes\plugins.inc).

oystercrackher’s picture

Any update?

anou’s picture

Hello,
I got strict warnings on the 7.x-2.0-beta1 version too.

kokkytos’s picture

I also have the same warnings

ipwa’s picture

+1

mgifford’s picture

ksavoie’s picture

Same issue here D7.16 and 2.0-beta1
Read somewhere that it could be related to latest version of PHP.

marc.groth’s picture

This is also happening on openlayers 7.x-2.0-beta1 - Upgraded from 7.x-2.0-beta1+46-dev

As ksavoie mentioned, this is related to a PHP version issue.

Version that doesn't work: 5.4.4
Version that does work: 5.2.17

Using latest version of MAMP

Tabestan’s picture

It's fixed in 3.x-dev.

ksavoie’s picture

Is it possible to add in corrections to v2.x. as v3.x is not safe for productions sites?

My PHP version 5.2.10.

(i.e. D7 3.x development branch. As of 11-11, when created, this is nowhere near close to working.)

crutch’s picture

Same issue D7.16 and 2.0-beta1
php5.4.7
clean install, not upgrade

Pol’s picture

Status: Active » Needs work

Hi all,

Could you try with the latest 7.x-2.x version and report to me ?

Thanks!

Chi’s picture

Status: Needs work » Fixed

I've just updated to beta 3. The messages have gone away.
PHP 5.4.6
Drupal 7.17

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kumkum29’s picture

Hello,

I also have several errors "strict warning".
I transferred my website from one server with php 5.3 to a server with php 5.4. Now I get these errors.

I use OL 7.x-2.0-beta3 + MapBox 7.x-2.0-alpha2.
Should I install the version 2.x dev ?

Thank you for your help.

PS: when i use update.php, i get this error Strict warning : Declaration of openlayers_layer_type_virtualearth::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (ligne 475 dans /srv/data/web/vhosts/www.mydomaine.com/htdocs/sites/all/modules/ctools/includes/plugins.inc).

Pol’s picture

Hello KumKum,

What we need to fix the problem:

  • Screenshots or Copy paste of the error
  • Patch to fix the problem
  • More information
kumkum29’s picture

Hello,

I get these errors when I edited the map in OL pages. I use this map with a MapBox layer.

    Strict warning : Declaration of openlayers_layer_type_virtualearth::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (ligne 475 dans /srv/data/web/vhosts/www.mydomain.com/htdocs/sites/all/modules/ctools/includes/plugins.inc).
    Strict warning : Declaration of openlayers_layer_type_mapbox::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_get_class() (ligne 848 dans /srv/data/web/vhosts/www.mydomain.com/htdocs/sites/all/modules/ctools/includes/plugins.inc).
    Strict warning : Declaration of openlayers_layer_type_virtualearth::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_load_includes() (ligne 475 dans /srv/data/web/vhosts/www.mydomain.com/htdocs/sites/all/modules/ctools/includes/plugins.inc).
    Strict warning : Declaration of openlayers_layer_type_mapbox::options_form() should be compatible with openlayers_layer_type::options_form($defaults = Array) in ctools_plugin_get_class() (ligne 848 dans /srv/data/web/vhosts/www.mydomain.com/htdocs/sites/all/modules/ctools/includes/plugins.inc).

Maybe the error comes with MapBox module?
Do you need more information?

Thanks.

kumkum29’s picture

Hello Pol,

I read on this post (http://drupal.org/node/1791478#comment-7022122) that we should no longer use MapBox module. We can now directly use a MapBox map in OL, is that correct? Which version of OL should I use?

Thank you for your help.

Pol’s picture

Download the latest 2.x version, this is the most up to date.

You do not need mapbox module indeed, it has been integrated into OpenLayers.

Also, don't forget to remove old layer type such as virtualhearth who doesn't exists anymore.

kumkum29’s picture

Thanks Pol !

I have no error.
But I used the "OL Proximity" module. With the news 2.x dev version it does not work. I created a new post about it.