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

drupalstrap created an issue. See original summary.

pyxio’s picture

just 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

pyxio’s picture

Status: Active » Closed (works as designed)

so 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.

pyxio’s picture

Status: Closed (works as designed) » Active

well, 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

ibuildit’s picture

Did you install the geophp library?

ibuildit’s picture

Did you install the geophp library?

ibuildit’s picture

Also make sure you're not using location coordinates in views, it's stored in the geocoordinates field

Pol’s picture

Status: Active » Closed (outdated)