I have a problem when trying to run the archive.php file from my browser.
If I do a fresh install and only load piwik or archive.php under HTTP it works fine. As soon as I access piwik from HTTPS and then try to load the archive.php again it fails with the error regardless of using HTTP or HTTPS:
I have a valid SSL certificate that I paid for. It is not self signed.
INFO [2014-09-12 17:54:28] [7cb59] ---------------------------
INFO [2014-09-12 17:54:28] [7cb59] INIT
INFO [2014-09-12 17:54:28] [7cb59] Piwik is installed at: https://www.mysite.com/piwik/index.php
INFO [2014-09-12 17:54:28] [7cb59] Running Piwik 2.6.1 as Super User
ERROR [2014-09-12 17:54:29] [7cb59] The Piwik URL https://www.mysite.com/piwik/index.php does not seem to be pointing to a Piwik server. Response was 'Got invalid response from API request: https://www.mysite.com/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'curl_exec: SSL certificate problem: unable to get local issuer certificate. Hostname requested was: www.mysite.com''.
When I put an updated cacert.pem in the /piwik/core/DataFiles directory, the error changes to:
INFO [2014-09-12 18:06:06] [63efc] ---------------------------
INFO [2014-09-12 18:06:06] [63efc] INIT
INFO [2014-09-12 18:06:06] [63efc] Piwik is installed at: https://www.mysite.com/piwik/index.php
INFO [2014-09-12 18:06:06] [63efc] Running Piwik 2.6.1 as Super User
ERROR [2014-09-12 18:06:07] [63efc] Got invalid response from API request: https://www.mysite.com/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'Got invalid response from API request: https://www.mysite.com/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'curl_exec: error setting certificate verify locations: CAfile: C:\site\wwwroot\piwik/core/DataFiles/cacert.pem CApath: none. Hostname requested was: www.mysite.com''
ERROR [2014-09-12 18:06:07] [63efc] The Piwik URL https://www.mysite.com/piwik/index.php does not seem to be pointing to a Piwik server. Response was ''.
I started with piwik on version 2.4 and this error has persisted. I have been updating to beta releases as well.
I do not have CLI access to my web server. I also cannot change the default php.ini file.
If I do a fresh install and only load piwik or archive.php under HTTP it works fine. As soon as I access piwik from HTTPS and then try to load the archive.php again it fails with the error regardless of using HTTP or HTTPS:
I have a valid SSL certificate that I paid for. It is not self signed.
INFO [2014-09-12 17:54:28] [7cb59] ---------------------------
INFO [2014-09-12 17:54:28] [7cb59] INIT
INFO [2014-09-12 17:54:28] [7cb59] Piwik is installed at: https://www.mysite.com/piwik/index.php
INFO [2014-09-12 17:54:28] [7cb59] Running Piwik 2.6.1 as Super User
ERROR [2014-09-12 17:54:29] [7cb59] The Piwik URL https://www.mysite.com/piwik/index.php does not seem to be pointing to a Piwik server. Response was 'Got invalid response from API request: https://www.mysite.com/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'curl_exec: SSL certificate problem: unable to get local issuer certificate. Hostname requested was: www.mysite.com''.
When I put an updated cacert.pem in the /piwik/core/DataFiles directory, the error changes to:
INFO [2014-09-12 18:06:06] [63efc] ---------------------------
INFO [2014-09-12 18:06:06] [63efc] INIT
INFO [2014-09-12 18:06:06] [63efc] Piwik is installed at: https://www.mysite.com/piwik/index.php
INFO [2014-09-12 18:06:06] [63efc] Running Piwik 2.6.1 as Super User
ERROR [2014-09-12 18:06:07] [63efc] Got invalid response from API request: https://www.mysite.com/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'Got invalid response from API request: https://www.mysite.com/piwik/index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp. Response was 'curl_exec: error setting certificate verify locations: CAfile: C:\site\wwwroot\piwik/core/DataFiles/cacert.pem CApath: none. Hostname requested was: www.mysite.com''
ERROR [2014-09-12 18:06:07] [63efc] The Piwik URL https://www.mysite.com/piwik/index.php does not seem to be pointing to a Piwik server. Response was ''.
I started with piwik on version 2.4 and this error has persisted. I have been updating to beta releases as well.
I do not have CLI access to my web server. I also cannot change the default php.ini file.