I upgraded from an earlier version (don't exactly remember, but I think is was 7.x-2.0) to 7.x.-2.x-dev a few weeks ago. Since then the "from" field remains empty, although the referenced node definitely contains the geocoded location. This is an example node:
http://www.spessart-erleben.de/getdirections/location/to/7
Other nodes referenced to are exactly the same, i.e. node/47, node/10, node/117, …

I saved the Get directions configuration and I cleared all the caches. I even removed the location from node/7 and re-entered it, just to exclude a misconfiguration with the Location module or it's geocoder.

Today I tried to get rid of the problem by upgrading to 7.x-3.x-dev. Same behaviour.

Edit: I don't get any error messages in the log.

Comments

hutch’s picture

At the moment, I am not seeing any map at all and am getting this error in the js error console in Firefox:

Timestamp: 30/04/13 17:20:17
Error: TypeError: a is null
Source File: http://maps.gstatic.com/cat_js/intl/de_ALL/mapfiles/api-3/12/10/%7Bmain,places%7D.js
Line: 28

You have js aggregation switched on so although the files are listed in the CDATA I cannot see which order they are being loaded, could you switch it off for now please and see if that is interfering with map generation or some other js is causing the problem. Also revisit the getdirections admin page and save it plus flush cache.

I have just done a couple of experiments, I think you need to uninstall completely and reinstall if you are using v3.x. The js paths have changed.

kreatIL’s picture

Ok. js aggregation is now switched off.

Just this minute I uninstalled Get directions completely. I reinstalled v3.x., visited the admin page and saved. Right afterwards I flushed all the caches.

It's the same behavior as before. The error console shows several js errors.

hutch’s picture

I think you need jquery_update module, version 1.4.4 is very old.

kreatIL’s picture

Thanks. I have done the jquery upgrade, switching between 1.5, 1.7 and 1.8. Neither version helps. Flushed caches right after the switches.

Now it is jQuery 1.8.2.

Maybe there is a conflict with other js scripts, i.e. beautytips, superfish, views_slideshow? Is there a way to turn them off on specified nodes, without having to uninstall the modules?

hutch’s picture

There are two distinct issues here, the map not showing and your location not being found.
I have tried to replicate the map not appearing but it always appears for me.

I don't know why your locative information is not being found, this is not related to the map issue as this is set up serverside. What module are you using to provide the latitude and longitude of the location?
I see gmap on http://www.spessart-erleben.de/content/fellen which suggests you are using the Location module which Getdirections supports.

kreatIL’s picture

It surprised me a little that you could see the map. By which browser is it being shown to you? For me it is not visible at all (Internet Explorer 9, Chrome, Mozilla, Safari).

That's right, I am using the Location module on that content type. I haven't been changing it for about one year. The only thing I did was upgrading the Getdirections module a few weeks ago. Since then it hasn't been working any longer.

The CCK field of that content type is represented by a table named "field_data_field_loc_name" which contains references to the lids stored in the "location" table. The data structure of that "location" table is "lid", "name", "street", "additional", "city", "province", postal_code", "country", "latitude", "longitude", "source", "is_primary".

hutch’s picture

I cannot see the map, if I try
http://www.spessart-erleben.de/getdirections
I do not get the map either, this url does not try to fetch anything from the location table.

I do not know why the entry for node 7 is not being found, the code in Getdirections for connecting to the location and location_instance tables has not changed for over a year.

evelien’s picture

same problem here, "from" not filled at all. I tried a lightweight testing edition of my site, and it is working there.
For testing;
this one isn't working:
http://www.pacco.nl/getdirections/location/to/192
this one is working:
http://pacco.nl/testomgeving-evelien/getdirections/location/to/1
Using location and gmap as well.

hutch’s picture

Category: bug » support

In
http://www.pacco.nl/getdirections/location/to/192
Looking at the source html I can see that Getdirections js is loaded and is defined in CDATA but no map or form.

You are using Google version 2 which is deprecated now, and there is no key:

<script src="http://maps.google.com/maps?file=api&amp;v=2.115&amp;key=&amp;hl=nl"></script>

That is why there is no map.

The second link also uses Google v2 but it declares a key which is why it does work.

You should look into using Google v3 maps, The original deadline of May 13 has been extended but sooner or later v2 will die.

Getdirections supports v3 and you should use it, it is much better.

You might also want to have a look at Getlocations module which provides an alternative to Location/Gmap. If you do not have too many locations it might be worth your while to switch over and future-proof your site.

hutch’s picture

Issue summary: View changes

Edit: I don't get any error messages in the log.