No Weather showing with Forecast IO

I’ve googled this issue to death and have looked at all issues related here.

Here is my error in the Log:
Unable to reach Forecast API. No Host Found (HTTP Code 0). Curl Error = error setting certificate verify locations:

CAfile: C:\php\cacert.pem
CApath: none

I got the cacert from the curl site by copying the text and pasting it into a notepad file and saving it as cacert.pem. I placed it in the php folder and changed the php.ini file.

Please help.

This post covers the problem you are having I think.

I have used that article. However, the error is different. The one in the article linked is able to find the SSL cert, where the one I linked appears to be unable to find it.

What OS is the php on? Windows, Linux or host?

It’s on a Windows box, running Apache as a service.

Hi, i resolve the same problem:

  1. go to: http://curl.haxx.se/docs/caextract.html
  2. download the file ca-bundle.crt
  3. copy the file into C:\xampp\php (php folder)
  4. edit php.ini adding the line: curl.cainfo=C:\xampp\php\ca-bundle.crt (his is my path, put in the line your path). Save the file
  5. Restart the apache service.

enjoy it!

1 Like