Upon updating to openlayers 7.x-2.x-dev, I received this error during the update.php process:(

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://domainnamehere.com/drupal/update.php?op=selection&token=XXXX&id=X... StatusText: OK ResponseText: Fatal error: Cannot redeclare _mapbox_layers_info() (previously declared in /../drupal/sites/all/modules/mapbox/includes/mapbox.layers.inc:8) in /../drupal/sites/all/modules/openlayers/includes/openlayers.layers.inc on line 428.

I'm going to drop all tables and re-import, then try this again, but disable the mapbox module first and see if that helps though it's still an incompatibility between the modules.

Comments

pol’s picture

Status: Active » Fixed

Hello,

The functionnalities of the mapbox modules has been included in OpenLayers.

Delete the mapbox module and everything will be ok.

Status: Fixed » Closed (fixed)

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

AndreyD’s picture

Hello,
I got the same problem by updating my website. (NGO Children's Home)
Our problem is that we work with OpenAid ( http://drupal.org/project/openaid ) and OpenAidprojects requires Mapbox ...
You have a Idea what we can do? Or I have to contact the OpenAid developers.
Would be really great if you can help me.
You need the link for the website?

Andrey

pol’s picture

Hi AndreyD,

Delete all the layers and files related to the old mapbox module and read #1961612: MapBox support missing from OL.

AndreyD’s picture

Hi Pol,
thanks for your fast answer. I'm quite a newbie (It's my first website) and few more explaining words would be really helpful.
"The base_url has been renamed in url for more consistency" --> so if I understand you right I have to rename base_url in url?
Also the link to the changelog is not a real help for me. http://drupal.org/node/1957728
Thank you
Andrey

pol’s picture

Ok,

In a few word, I've incorporated into OpenLayers the mapbox layer type, you don't need the old mapbox module or else you will have problems like the ones you encounter.

You don't have to rename anything, it will be done automatically when saving the layer.

I suggest you to use the latest dev version, so 7.x-2.x.

If you need anything, just ask.

AndreyD’s picture

Hi,
Thank you but the problem is:

MapBox Layers for OpenLayers and GMaps
Required by: OpenAid Projects (enabled)

I work with OpenAid and the Project page requires MapBox. So I can't enable / deinstall it, because my Projectpage is based on OpenAid Projects ... so I thougt about reinstall a older version from OpenLayer. Is that possible, where you didn´t fixed / changed this?

Andrey

( Thank you for your help, tell me if you need further information )

pol’s picture

This is unfortunately not a problem with OpenLayers.

What you can do in the meantime is to open an issue in the OpenAID project and suggest to remove the MapBox module which is unmaintained.

If you want, you can also edit the file drupal-org.make manually and remove the 2 lines about mapbox.