Earthquakes plugin broken on IIS - Fix

Post Reply
azchrisf
Observer
Observer
Posts: 46
Joined: Tue Jan 02, 2018 2:55 pm
Location: Phoenix, AZ
Station model: Davis Vantage Pro 2 Plus
Software: Meteobridge
Contact:

Earthquakes plugin broken on IIS - Fix

Post by azchrisf » 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.
Image

User avatar
dmgould
Forecaster
Forecaster
Posts: 173
Joined: Sat Aug 26, 2017 2:43 am
Location: Divide, Colorado, USA
Station model: Davis Pro 2 Plus Wireless
Software: Meteobridge
Contact:

Re: Earthquakes plugin broken on IIS - Fix

Post by dmgould » Fri Feb 16, 2018 9:58 pm

It's working fine on both of my sites - the plugin and the block.
Dave G
Image

User avatar
Jeffm5690
Advisor
Advisor
Posts: 80
Joined: Sun Aug 20, 2017 1:30 pm
Location: New York USA
Station model: Davis Pro 2
Software: Weather Display
Contact:

Re: Earthquakes plugin broken on IIS - Fix

Post by Jeffm5690 » Fri Feb 16, 2018 11:03 pm

Works on my site as well.

azchrisf
Observer
Observer
Posts: 46
Joined: Tue Jan 02, 2018 2:55 pm
Location: Phoenix, AZ
Station model: Davis Vantage Pro 2 Plus
Software: Meteobridge
Contact:

Re: Earthquakes plugin broken on IIS - Fix

Post by azchrisf » Sun Mar 04, 2018 12:07 pm

Guys I posted the fix, it's a cURL issue where the certificates aren't installed by default.
All fixed :-)
Image

Post Reply