Earthquakes plugin broken on IIS - Fix
Posted: Fri Feb 16, 2018 7:49 am
Another broken plugin - the earthquakes plugin.
Doesn't return anything, just shows map.
I see it works on the demo but won't on my system for some reason...
EDIT:
This problem deals with cURL - since this script is downloading from a HTTPS site, if the Certificates list is not present (isn't installed by default by PHP), it will fail.
I found this error after doing some testing and debugging.
Fix:
Download certificate from https://curl.haxx.se/docs/caextract.html
Save it somewhere
Edit PHP.INI and change:
;curl.cainfo =
to
curl.cainfo = "C:\Program Files\PHP\cacert.crt"
(change the above line to wherever you saved it)
Make sure to rename .pem to .crt otherwise it won't work.
Doesn't return anything, just shows map.
I see it works on the demo but won't on my system for some reason...
EDIT:
This problem deals with cURL - since this script is downloading from a HTTPS site, if the Certificates list is not present (isn't installed by default by PHP), it will fail.
I found this error after doing some testing and debugging.
Fix:
Download certificate from https://curl.haxx.se/docs/caextract.html
Save it somewhere
Edit PHP.INI and change:
;curl.cainfo =
to
curl.cainfo = "C:\Program Files\PHP\cacert.crt"
(change the above line to wherever you saved it)
Make sure to rename .pem to .crt otherwise it won't work.