-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Geocode fails due to OpenSSL error in GM 2.9.3 with PHP 5.6 #167
Comments
|
The solution posted here: solved the problem when inserted above the call to simplexml_load_file($request_url). In the case of MS4W users, they can point to the certificate that is included with that server, so the insert to google_geocoder.php looks like: But that's obviously specific to MS4W configuration, so I guess a generic fix would involve being able to tell GeoMoose where your certificate is in local_settings.ini if that were possible? |
|
Is there a reason the Windows build of PHP doesn't know where the CA files are by default? Is there a php.ini setting or maybe compile time setting for this? IIRC the Linux builds of PHP just know where to look. |
|
Yeah that would be a better solution. MS4W's Apache knows where the cert is, but not PHP. Looking at the php.ini file, it just looks like it is not set / commented out, so I'll close here and link this issue to a MS4W ticket instead. |
|
For reference, here is the related MS4W ticket: https://ms4w.com/trac/ticket/171 |
from the list:
https://lists.osgeo.org/pipermail/geomoose-users/2018-April/006385.html
I looked into this today for a while and at first it looks like the 2.9.x google_geocoder.php should work fine:
However, the simplexml_load_file($request_url) request in the google_geocoder.php script fails with "url not loading", which is somewhat mysterious.
Looking in the Apache error logs, I found:
So the error is related to:
http://php.net/manual/en/migration56.openssl.php
Solution would be to correctly enable OpenSSL verification, (or if desperate, turn it off) :
https://stackoverflow.com/questions/26148701/file-get-contents-ssl-operation-failed-with-code-1-and-more
The text was updated successfully, but these errors were encountered: