error in google analytics wordpress pluging

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ndoshani
Forum Newbie
Posts: 2
Joined: Sat Sep 28, 2013 9:42 am

error in google analytics wordpress pluging

Post by ndoshani »

Hello,Friends i have wordpress blog,after i install "google analytics plugins" i have error on my dashboard like this "

SSL certificate problem, verify that the CA cert is OK. Retrying with the CA cert bundle from google-api-php-client.

after i search solution on net about this i find solution is like this

download http://curl.haxx.se/ca/cacert.pem and save it somewhere.
update php.ini -- add curl.cainfo = "PATH_TO/cacert.pem"

reference link "http://stackoverflow.com/questions/6400 ... 9#19067939"

now,i dont know how to do can anybody help me pleaseee?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: error in google analytics wordpress pluging

Post by Christopher »

You can follow those instructions to download the cacert.pem file to your server, update php.ini to point to the file, and restart the web server.

There is also a cURL setting that you can set by calling setop(). I think it is CURLOPT_CAINFO. See the PHP manual for cURL.
(#10850)
ndoshani
Forum Newbie
Posts: 2
Joined: Sat Sep 28, 2013 9:42 am

Re: error in google analytics wordpress pluging

Post by ndoshani »

How to update php.ini friend? I can't find php.ini file
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: error in google analytics wordpress pluging

Post by Christopher »

The php.ini file can be in various places depending on the OS running the webserver and how PHP was installed. If you cannot find it, or do not have access to it, then you can call the setop() function when using cURL.
(#10850)
Post Reply