Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed the latest version of the dev version for 7.x-2.x-dev, and my site is no longer working properly. See attached for copy of errors:
There's a problem in the plugin definition of the layer type openlayers_layer_type_MY_MODULE. The layer will be disabled.
This seems to only occur as long as the IP Geoloc module is installed and enabled. I am unable to add new content types with GeoField and Openlayers, and the pre-sets for the GeoField Widget and Formatter do not display.
Comment | File | Size | Author |
---|---|---|---|
error-2.jpeg | 904.62 KB | IKE0088 | |
error-1.jpeg | 1.31 MB | IKE0088 |
Comments
Comment #1
Rob C CreditAttribution: Rob C commentedI've seen the same, but do not have IP Geo installed, just Geofield. (i get an error on adding a node with a geofield).
Comment #2
IKE0088 CreditAttribution: IKE0088 commentedI believe I fixed the Geofield issue by redoing all of the layers and maps to the same projection. Appears as though this version modified everything and added EPSG:900913 instead of 900913. That seems to work, and I can now view the Geofield Widget Map. Still have the same issue regarding the plugin definition incomplete.
Comment #3
julien.reulos CreditAttribution: julien.reulos commentedI can confirm this too. I am using Geofield, not IP_Geolocation.
After updating to dev version from 2013-Feb-27, if I edited a map there was no available map layer. No map projection radio button was selected.
Selecting the EPSG:900913 one, and saving the map, I have all my base layers back, but I have to configure back the default one and the enabled ones.
May be the update script should be more specific. For now it shows:
Comment #4
deanflory CreditAttribution: deanflory commentedI too am getting:
Comment #5
balancestuff CreditAttribution: balancestuff commentedThe regular release seems to break this as well.
Comment #6
PolThe new release is now using projections as they should and modules providing layers and map needs to be updated in order to function properly.
Read: #1940174: Projection EPSG:4326 requested but not supported in openlayers_get_projection_by_identifier() and #1331410: Better Handling of Projections.
Comment #7
balancestuff CreditAttribution: balancestuff commentedIs there any way to fix a previously-working configuration? I've only got two views using openlayers maps that I really care about, but not sure how to fix them. As I understand it it has to do with some modules specifying projects by just a number when the preferred has the 'EPSG:' prefix. Is there any way to track down which modules are not conforming?
(I'd guess it's IP Geolocation, but I'm not sure.)
Comment #8
balancestuff CreditAttribution: balancestuff commentedOnly hit for 'openlayers_layer_type_MY_MODULE' in my code base is in the file 'ip_geoloc_openlayers.inc'. I tried prepending all references to projections in that file with 'EPSG:' with no change in errors or behavior.
Comment #9
PolSorry, double post.
Comment #10
PolYes exactly,
A documentation page has been written, it explains to module developers how to update their code.
Read also why we did this here: #1943968: Layer Projections defined without projection authority cause "Exception: Projection 900913 requested but not supported".
Comment #11
balancestuff CreditAttribution: balancestuff commentedI've updated my copies of the IP Gelocation and Geofield modules, but maps are not displaying at all. I'm going to try rebuilding a map later to see if it is something map-specific.
Comment #12
dduck CreditAttribution: dduck commentedAlso updated Geofield module, still no map is rendered. Created a new map, to no avail.
Comment #13
jeremyvanlanda CreditAttribution: jeremyvanlanda commentedHas anyone found a solution to this problem?
Comment #14
augustus.kling CreditAttribution: augustus.kling commentedPlease recheck with 780da150a5ba36e1e0015aa15ce5b3315315f4de applied which should give more precise error messages.
Comment #15
RdeBoerI've recently applied mods to IP Geolocation Views and Maps, 7.x-1.x-dev, so that you can use it with the latest OpenLayers, i.e. 7.x-2.0-beta5 or later.
With IP Geolocation Views and Maps, you can pick any coordinate storage module you like, including Geofield.