OpenLayers released a new version in which they removed a lot of deprecated functions (for which they have warned for many months that it would happen).

There are a few possible solutions:

  • Update your javascript to use the alternative (non-deprecated) OpenLayers functions.
  • Include the deprecated.js script available from OpenLayers.org in your site so that you can use the deprecated functions.
  • Get an older version of OpenLayers and put it on the webserver of your website and include this version instead of including the OpenLayers.js from openlayers.org.