Page 1 of 1

Earthquakes plugin broken on IIS - Fix

Posted: Fri Feb 16, 2018 7:49 am
by azchrisf
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.

Re: Earthquakes plugin broken on IIS - Fix

Posted: Fri Feb 16, 2018 9:58 pm
by dmgould
It's working fine on both of my sites - the plugin and the block.

Re: Earthquakes plugin broken on IIS - Fix

Posted: Fri Feb 16, 2018 11:03 pm
by Jeffm5690
Works on my site as well.

Re: Earthquakes plugin broken on IIS - Fix

Posted: Sun Mar 04, 2018 12:07 pm
by azchrisf
Guys I posted the fix, it's a cURL issue where the certificates aren't installed by default.
All fixed :-)