I am using geocoder with address field and Google Geocoder. Google returns a response but the geofield is not populated.
Steps to reproduce:

  1. Install geocoder, geofield, addressfield and their dependencies
  2. Create an Postal address field and a geofield on a content type
  3. Set the goefield's widget to "Geocode from another field"
  4. Set the goefield's display settings to whatever you like
  5. Create a new node filling in the address

Expected result:
The geofield should appear with content when viewing the newly created node.


Actual result:

The geofield is not displayed at all and the corresponding database table is empty.

Google returns no errors and visiting the url that is used by geocoder to fetch geocoded data does return such data. I also tried using a different widget for the geofield and it works fine that way.

Maybe this is related? #2217273: GeoCoder does not execute geofield backend save callback

Comments

tterranigma created an issue. See original summary.

tterranigma’s picture

Status: Active » Closed (works as designed)

I managed to make it work. Not sure what fixed it though. I am using php 7 and openssl support may be what was causing the problem. I was getting a "php_network_getaddresses: getaddrinfo failed: Name or service not known" and I thought maybe the problem was that google is using https. So, I added this line to my php.ini extension=openssl.so, although it was not needed in the php 7 package I am using and restarted apache. It started working. :-/ I then removed that line and it was still working. Anyway, just mentioning here the https/openssl stuff just in case it helps someone.