Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
greetings
i am unable to retrieve geo coordinates from addressfield. i have tried on three separate drupal installations so i assume it is a configuration issue. can somebody help me troubleshoot this? here are my particulars ...
geocode 7.x-1.3
geofiled 7.x-2.3
addressfiled 7.x-1.2
settings ... geofield field, geocode from another field (field_address my post address field), google geocoder with default settings, and my display i have tried every option in content type display and in a views debug display.
does anybody have any ideas what else i can try? thanks.
Comments
Comment #2
pyxio CreditAttribution: pyxio commentedjust an update ... i tried on a fresh installation of drupal and still not working. i tried with location field and still not working. so i tried on simplytest.me and it works just fine. so the issue must be related to my server configuration and geoPHP communication. is there some special apache mods or php7 extensions i should check that are installed? i was not able to find any info at geoPHP website regarding server configuration. thanks for any tips
Comment #3
pyxio CreditAttribution: pyxio commentedso i ended up doing some configuration on remote server and then importing that database to local and now it appears to be working locally. i have no idea what the issue is/was. marking this as closed.
Comment #4
pyxio CreditAttribution: pyxio commentedwell, i was mistaken. i thought it was working locally because the coordinates were saved in the db i imported from remote server where it does work. still not working locally. i enabled debug and found this in log, so at least something to indicate what the problem is ..
Exception: HTTP request to google API failed.\nCode: 0\nError: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in geocoder_google() (line 113 of /var/www/html/mysite/sites/all/modules/contrib/geocoder/plugins/geocoder_handler/google.inc).
how can i solve this? thanks
Comment #5
ibuildit CreditAttribution: ibuildit commentedDid you install the geophp library?
Comment #6
ibuildit CreditAttribution: ibuildit commentedDid you install the geophp library?
Comment #7
ibuildit CreditAttribution: ibuildit commentedAlso make sure you're not using location coordinates in views, it's stored in the geocoordinates field
Comment #8
wranvaud CreditAttribution: wranvaud at Phase2 commentedAdding a few issues as possible duplicates, wrong formatted address can result in geocoder failing to retrieve the location
https://www.drupal.org/project/geocoder/issues/2135849
https://www.drupal.org/project/geocoder/issues/1967520
https://www.drupal.org/project/geocoder/issues/2859851
Comment #9
Pol