Yesterday I upgraded the OpenLayers module from 7.x-2.0-beta1-46-dev to 7.x-2.0-beta5.
I am now getting this error message at the top of my OpenLayers settings page and in my status report:
"Not suggested compatible version. Though you are very welcome to use whatever version of the OpenLayers library you want, it is suggested that you use version 2.12. You are currently not using that version or we are unable to determine which version you are using. Update your library settings at OpenLayers settings."

I am currently using the External library at http://openlayers.org/api/2.12/OpenLayers.js, although the settings page still throws the error, and also says "Your version found from client-side, Javascript check: Release 2.11." I have already removed 2.11 and installed 2.12, but it still says it finds 2.11.

(see attached screenshot.)

I have tried to enable the loading the Internal library, but my settings page does not change. The internal library resides at http://[domain.com]/sites/all/libraries/OpenLayers2-12/OpenLayers.js. How can I make the Internal radio box appear? I am unclear how to "use" the libraries module to enable the internal loading of the library. I have Libraries 7.x-2.1 installed.

Thank you for your help.
Jean

CommentFileSizeAuthor
#10 OpenLayers - Library.png119.99 KBPol
OL_settings.JPG89.45 KBjmatuska
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dianacastillo’s picture

I get the exact same problem:
The configuration options have been saved.
Warning message
Not suggested compatible version. Though you are very welcome to use whatever version of the OpenLayers library you want, it is suggested that you use version 2.12. You are currently not using that version or we are unable to determine which version you are using. Update your library settings at OpenLayers settings.
Valid library found with a Javascript client check; version: Release 2.12

Pol’s picture

Status: Active » Fixed

Hi,

It's better to use the internal version of the library, it has to be in

sites/all/libraries/openlayers

Good luck.

jmatuska’s picture

thanks. yes, i tried that first (directory name was OpenLayers, just as i extracted from zip file), so my internal path was:
sites/all/libraries/OpenLayers/OpenLayers.js.
However, this path produced the exact same error i detailed above.
So, then I tried renaming the internal directory to OpenLayers2-12 to see if the javascript check would STOP finding version 2.11, which i had deleted. no changes.

dianacastillo’s picture

i have it in sites/all/libraries/openlayers and yet i still get that contradictory message:
Warning message
Not suggested compatible version. Though you are very welcome to use whatever version of the OpenLayers library you want, it is suggested that you use version 2.12. You are currently not using that version or we are unable to determine which version you are using. Update your library settings at OpenLayers settings.
Valid library found with a Javascript client check; version: Release 2.12

dianacastillo’s picture

Status: Fixed » Needs work
jmatuska’s picture

Status: Needs work » Active

can we keep this as active since it has not been fixed?

dianacastillo’s picture

Status: Active » Fixed

okay all my problems fixed with the help of Pol, see here https://drupal.org/node/1971162#comment-7307690

jmatuska’s picture

great, dianacastillo.
that fix (#22 @ https://drupal.org/node/1971162#comment-7307690) worked for me too.
all good. no more error messages, and the internal library is found/working.
thanks.

aasarava’s picture

Status: Fixed » Active

Marking this as "active" again since it's not truly a fixed issue. The warning message still appears when trying to use the external library.

Pol’s picture

Status: Active » Fixed
FileSize
119.99 KB

Just tested with simplytest.me, setting the external library is working perfectly and doesn't produces any errors, no matter which setting I use.

See the attached screenshot.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

I still have this issue. It started when I upgraded openlayers to beta7, and doesn't go away.

I don't have ssh access to the server, so can't use Drush. I now placed OpenLayers.js version 2.13.1 into /sites/all/libraries/openlayers, but it still reports it finds version 2.11 ...

It even reports that when I delete the openlayers folder under libraries...

Might not be a problem with new installations. But I'm stuck with this not working. It's a problem, as my site needs to be accessible via https too, and then it doesn't load the external openlayers library as it is via http...

Any solution without using drush?

Anonymous’s picture

Version: 7.x-2.0-beta5 » 7.x-2.0-beta7
Issue summary: View changes

I reopen this as it doesn't seem to be fixed in beta7. At least not for those who can't use drush...

Anonymous’s picture

Status: Closed (fixed) » Active
mustardman’s picture

This is not working for me either. I tried everything suggested in all these comments and linked issues.

philalonso’s picture

One of my sites also receives the "Not suggested compatible version. Though you are very welcome to use whatever version of the OpenLayers library you want, it is suggested that you use version 2.13. You are currently not using that version or we are unable to determine which version you are using. Update your library settings at OpenLayers settings." warning after updating from 7.x-2.0-beta to 7.x-2.-beta9.

I followed the steps described by dianacastillo in https://drupal.org/node/1971162#comment-7307690. Drush libraries-list shows that openlayers 2.13 is installed with OK status. I ran drush cc all, yet the message persists. I ran drush dl-openlayers again, cleared the caches again, and still receive the message.

Rolling back to 7.x-2.0-beta7 removed the warning message.

How can I update to 7.x-2.0-beta9 and not receive the warning message?

rajmataj’s picture

I confirm seeing this as well. Using:

  • Drupal 7.29
  • Openlayers 7.x-2.0-beta9
  • OpenLayers library version 2.13 (installed with drush dl-openlayers

The OpenLayers Library was not found and as a result, all markers on my map disappeared. Rolled back to openlayers-7.x-2.0-beta7 and stuck with the 2.13 library and now the map works again, and the internal library is found.

rajmataj’s picture

Component: OL UI » OL Behaviors
Priority: Normal » Major

I found that by switching the library being used on admin/structure/openlayers from 'original' to something else, like 'light' and saving, and then switching back to 'original' and saving the page that the 2.13 library is both listed as not found and as detected (see linked image). However, my map is now completely devoid of any markers whatsoever.

Seems like a major bug. Using:

  • Drupal 7.29
  • Openlayers 7.x-2.0-beta9
  • OpenLayers library version 2.13 (installed with drush dl-openlayers

OpenLayers Settings Errors

bazingaedward’s picture