I installed the Get_Direction module on a multi-site server.
No problem for the 1st site. I can display directions on a map and so on.

2nd and 3rd don't want to display the map. The only displayed thing is the title of the targeted node containing a location information. No map is displayed.

Comments

hutch’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

All my sites are on multisite and I've not seen this problem, I can only suggest that you ensure that each site has been configured
Also, look at the source html of the site that does work and compare with the site(s) that don't, presumably something is not loading, probably googlemaps
If you are using google API v2 you will need a key for each domain

webmestre’s picture

Hello and thanks for helping.

I'm surprised that the working website correctly displaying the Gmap with directions doesn't display the Gmap key. Impossible to find the key into the html code. In relation with the use of the Gmap v.3 API ?

hutch’s picture

Google maps v.3 API does not require a key, so if you are using Getdirections with v3 there will be no key.
If you are using something like
/getdirections/location/to/n
where n is a node id and no map is displayed then no location was found for that node
Have a look at location and location_instance tables with phpmyadmin

webmestre’s picture

/getdirections/location/to/35 works on the 1st website
/getdirections/location/to/41 DOESN'T work ont the 2nd with a 41 node with a location information

Both are working under Gmap V3
I checked all setting on GetDirection, Gmap, Location... modules and all are the same.

webmestre’s picture

Thanks to phpmyadmin, I saw that working and NON working site : location table : OK / location_instance : empty

hutch’s picture

The location_instance table is what links a location (lid) to nodes (nid/vid) or users (uid)

webmestre’s picture

On a 4th website, the GetDirections module works perfectly. All settings are the same on 4 websites. They are all on the same multi-sites installation (2 working / 2 not working).
I'm wondering if there would not be a conflict between installed modules...

hutch’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)