I have location and gmaps modules installed and configured. They are working properly for older nodes (geocode lat/long and create map). When I had the dev version of location installed, it stopped creating geocode for new nodes (that issue was filed here: http://drupal.org/node/798484). Upgrading to rc1 fixed it, but now it's stopped working again.

I'm a little unclear whether this is a location module issue (since lat/long coordinates aren't being created) or a gmap issue (since this similar issue is posted there as well: http://drupal.org/node/663450).

Any help/guidance is greatly appreciated.

Comments

yesct’s picture

Status: Active » Closed (duplicate)
Issue tags: +location geo-coding

tagging and marked as a duplicate of #798484: nodes not creating geocode data (if the issue is different, just repost and say why).

zdean’s picture

Status: Closed (duplicate) » Active

That issue was filed under the Dev version, this one is rc-1. My assumption was that the same problem under different versions required separate issue tickets.

jdwfly’s picture

I can confirm this under the rc1 and the latest dev. The longitude and latitude fields are not getting populated with the data from the geocode.

yesct’s picture

Maybe in some projects... but the pattern in location lately is for someone to post a problem in 3.0, for someone to suggest dev has a fix, for someone to test and see if dev indeed has the fix. Then if the problem is fixed in dev, to mark the issue fixed/closed. If it is not fixed in dev, to proceed to try and make the fix against dev.

So really, we need to know if it is a problem in dev.

zdean’s picture

Version: 6.x-3.0-rc1 » 6.x-3.1-rc1

I originally marked this incorrectly as against the 3.0-rc1 instead of 3.1-rc1.

jdwfly’s picture

Version: 6.x-3.1-rc1 » 6.x-3.x-dev

Yes, latest dev version is broken.

By the way I am using the location cck field.

zdean’s picture

Version: 6.x-3.x-dev » 6.x-3.1-rc1

jdwfly...the dev has another ticket at #798484: nodes not creating geocode data...you should reopen that one...

bba99’s picture

I'm not sure where to post this or if it is relevant.

I am adding nodes using Node Import and suddenly the newly important nodes didn't show up in my proximity search. After a ton of head scratching I figured out the long / lat weren't being created. I found that to make it work I had to use the full state name instead of the two letter abbreviation.

jdwfly’s picture

For anyone else that might stumble upon this I was able to fix my issue after reading much of the source code of this module and after having to jump through many hoops to get gmap geocoding working. I didn't have to modify any source code to do it, but there are several configuration options that must be set in order for this to work.

It doesn't seem that JIT geocoding is working, but I haven't done any troubleshooting on why it doesn't work yet.

@zdean
If the problem exists in dev then the issue goes against dev not against the certain version. Then it gets fixed in dev and a new release will be made. If the problem doesn't exist in dev then it is fixed and you either need to use dev or wait for a new release. That is standard drupal practice in these queues. This problem happens to exist in both dev and 6.x-3.1-rc1 and so it should be marked against the dev. I am going to leave it to you since it is your issue and I don't seem to have this problem anymore. You might want to provide more information about your setup (modules using, configuration options, etc.). I might be able to help you if you provide more information.

zdean’s picture

Version: 6.x-3.1-rc1 » 6.x-3.x-dev

@jdwfly...thanks for the explanation. I've been chastised on these boards for not posting to the right version, so I just wanted to make sure I was following procedure. I'm ok with your explanation so have now changed it back to dev.

I would appreciate hearing what steps you took to fix this. I've got a very long list of modules and, of course, the many configuration pages for gmap/location...I'm not sure where to start in terms of giving you what you need to help diagnose that. Maybe learning about your steps would be helpful to get it resolved generally for everyone.

Thanks....

zdean’s picture

@jdwfly...could you please provide some insight as to what configuration settings you had to adjust to make this work?

Thanks.

Spikezz’s picture

@jdwfly. Would definitely be useful to understand the config steps. We could probably add that later in the documentation which seems to be in need of updates.

zdean’s picture

I would be willing to sponsor this if someone has any ideas about how to fix it...

yesct’s picture

Issue tags: +location bounties

tagging (adding key word bounty so someone might find this issue)

Spikezz’s picture

I created Documentation on how to get this to work. Please check out http://drupal.org/node/817592 and let me know your comments. This worked for me, hopefully I didn't miss any steps. Hope this helps newcomers to the Location module to get up to speed an running quicker.

Do I get the bounty? :-)

zdean’s picture

@Spikezz...thanks for this step-by-step...it will definitely be helpful to newcomers. Unfortunately, this thread is from people that have followed these steps but can't get geocode data for the nodes...the bounty is still alive :-)

zdean’s picture

Issue tags: -location bounties
yesct’s picture

zdean, why did you remove the location bounties tag? Someone in location, looking to do paid work will have a hard time finding this without it... ?

zdean’s picture

I played around with the configurations again, and it seems to be working for me again. I'm not sure exactly what fixed it.

This has happened before where it was working and then it stopped working...so I'm waiting to continue testing and to narrow down which of the config changes made the difference. It's on a live site, so I'm having to work carefully not to make a bigger mess.

yesct’s picture

Status: Active » Postponed (maintainer needs more info)

ok, post back when you have more info on how to reproduce the issue. thanks for sticking with this and keeping us updated.

jboeger’s picture

I'm having the same problem. My first node (of type Tour Date) is the only one that would generate coordinates. Same with first user. Other nodes and users not appearing on gmap.

jboeger’s picture

Been working on this for 2 days, and just moments after posting I fixed it: in the content type settings, make sure to allow coordinates.

yesct’s picture

did something change that made it necessary to add allowing coordinates? for example, did it work before an upgrade to dev, where before allowing coordinates was not selected?

jboeger’s picture

stopped working again! Something is broken. I'm using latest location and gmap dev versions on a fresh install.

yesct’s picture

the official release just came out. I know this has been going on for a while, but please try the new official release on a new blank test site, and document the tests to reproduce the problem and post back. Thanks.

kerberos’s picture

Here's what happens to us:

A new node gets saved fine with geo-coding because it is entered with the full state name, e.g.

City: New York
State: New York

when it gets saved, that info is stored as:

City: New York
State: NY

If a node like this hasn't already been geocoded, it will fail to geo-code it with the abbreviated state name. Change the state name to New York and save, geo-coding works fine. I didn't try dev yet, this is with the most recent release. Was this fixed in dev?

-Daniel
My Gym and Trainer

ccheu’s picture

Dear all,
Not sure if you have seen this. Have a look:
http://drupal.org/node/899624

I think this is the same problem, but I do not know if the suggested code will help. Can someone take a look and tell me if it is relevant or I've just sent you on a wild goose chase. :)

Look forward to hearing from you. Cheers!

Regards,
Chang

grasmash’s picture

I'm still experiencing this issue in dev. Geocoding only works if you create a node, delete its location, and then specify the location again.

grasmash’s picture

Update -- After removing the base_url variable from my settings.php file, this began working.

This leads me to believe that location (and in my case gmap_location) is making a request for lat and long, but that the geocoding information isn't making it back. This could stem from hosting problems or Drupal's configuration.

Kind of vague, I know, but it's a starting point.

legolasbo’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

Closing old D6 issues as D6 is end of life