Closed JaviereN closed 12 years ago
IMO, your production server does not receive any response from google API. If you can debug from this line, that can be very usefull !
The issue is in the file_get_contents function (https://github.com/kriswallsmith/Buzz/blob/master/lib/Buzz/Client/FileGetContents.php#L45) because allow_url_fopen is disabled on my server.
Can i configure the bundle in config.yml to use curl (https://github.com/kriswallsmith/Buzz/blob/master/lib/Buzz/Client/Curl.php) instead of file_get_contents??
Thanks again :)
I will ask you tonight. I have no time currently.
Thx ;)
If you take a look at the documentation, you see a section call adapter
in the config. If you want to use buzz instead of curl for example, you need to config the adapter like that:
ivory_google_map:
geocoder:
adapter: "Geocoder\HttpAdapter\BuzzHttpAdapter"
Available adapters are:
Hope that help !
Using "Geocoder\HttpAdapter\CurlHttpAdapter" works perfect! Great egeloen ;) thanks again
Hello,
First thanks for reading. In my localhost all is working fine but in my production server i get this error:
Catchable Fatal Error: Argument 1 passed to Ivory\GoogleMapBundle\Model\Services\Geocoding\Provider::buildGeocoderResponse() must be an instance of stdClass, null given, called in /usr/home/ongcarmel.net/web/carmelitas/vendor/bundles/Ivory/GoogleMapBundle/Model/Services/Geocoding/Provider.php on line 137 and defined in /usr/home/ongcarmel.net/web/carmelitas/vendor/bundles/Ivory/GoogleMapBundle/Model/Services/Geocoding/Provider.php line 243
It's probably caused by a misconfiguration, but I can not find the problem.