Exception ‘Google_IO_Exception in Google/IO/Curl.php:86

Today, I finally resolved the issue I had trying to install the Google Analytics plugin for WordPress.

I had the cryptic error message where no details was provided
exception 'Google_IO_Exception' in /home/www/perso.casidy.com/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/IO/Curl.php:86

Stack trace:
#0 /home/www/perso.casidy/wordpress/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/IO/Abstract.php(135): Google_IO_Curl->executeRequest(Object(Google_Http_Request))
#1 /home/www/perso.casidy/wordpress/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/Auth/OAuth2.php(113): Google_IO_Abstract->makeRequest(Object(Google_Http_Request))
#2 /home/www/perso.casidy/wordpress/wp-content/plugins/google-analytics-dashb

Forums over the Internet report such an issue and is resolved by contacting the hosting service administrator. My hosting service by default, forbids to make HTTP request to another domain. For that, they provide a webpage where you can list which URL you want to access and enable it.
Ok, I am willing to contact him but what should I say to him? Maybe that by giving him the date and time of the error he would be able to access the web server log and tell you what the problem is.

No more talking, you have to give access to accounts.google.com.
Once this allowed, be sure to request a new authorization code and you should be set.

Laisser un commentaire