• Resolved Peter Le C

    (@peter-le-c)


    Hi Ben,

    6.3.2 now running on all of my blogs bar one.

    All sites on same server, all running same version of WP and up to date themes, no issues with the theme on other domains. (WeaverII)

    I deactivated and deleted and reinstalled GA twice to no avail so a bit of a head scratch…. can you assist?

    The domain isn’t new BTW.

    Thanks

    Fatal error: Uncaught exception ‘Google_AuthException’ with message ‘Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant” }” in /home/dirtytal/public_html/very/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:279 Stack trace: #0 /home/dirtytal/public_html/very/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(239): Google_OAuth2->refreshTokenRequest(Array) #1 /home/dirtytal/public_html/very/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(216): Google_OAuth2->refreshToken(‘1/GANsPbyDZFm_5…’) #2 /home/dirtytal/public_html/very/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(166): Google_OAuth2->sign(Object(Google_HttpRequest)) #3 /home/dirtytal/public_html/very/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(54): Google_ServiceResource->__call(‘list’, Array) #4 /home/dirtytal/publi in /home/dirtytal/public_html/very/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 279

    https://www.ads-software.com/extend/plugins/google-analyticator/

Viewing 15 replies - 1 through 15 (of 35 total)
  • G’day, I’ve got this error msge twice after de-authenticating and re-authenticating.
    Regards, Pete

    Fatal error: Uncaught exception ‘Google_ServiceException’ with message ‘Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3Aga%3AUA-31187248-1&start-date=2012-08-15&end-date=2012-09-14&metrics=ga%3Avisits&dimensions=ga%3Adate&sort=ga%3Adate: (400) Invalid value ‘ga:ga:UA-31187248-1’. Values must match the following regular expression: ‘ga:[0-9]+” in /home/footloos/public_html/painmanagement4u.com/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php:66 Stack trace: #0 /home/footloos/public_html/painmanagement4u.com/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest)) #1 /home/footloos/public_html/painmanagement4u.com/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(177): Google_REST::execute(Object(Google_HttpRequest)) #2 /home/footloos/public_html/painmanagement4u.com/wp-content/plugins/google-analyticator/google-api-php-cl in /home/footloos/public_html/painmanagement4u.com/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php on line 66

    Hi Peter

    If you click Deauthorize Google Analyticator. and re-authenticate, does it work for you then? That can be the only difference b/w your two sites.

    Ben

    Hi rustypete

    That’s a new error, I’ve not seen before. When you authenticate, do you see the dropdown of domain names to select?

    Ben

    Thread Starter Peter Le C

    (@peter-le-c)

    Ben – Deauthorize Google Analyticator is not available from the plugin settings page. Hence I cannot test that option.

    A fresh install (deactivate, delete take new 6.3.2) same deal – go to settings and all you have is the enable/disable option plus the error message.

    SOMETHING must have corrupted some files in WordPress or something isn’t actually deactivating the plug in but leaving remnants behind..
    where can I start looking?

    Appreciate your help!

    Thread Starter Peter Le C

    (@peter-le-c)

    Additional:

    GA appears in my list of widgets, but I have no active widgets now visible, in other words I can’t add or edit any of the existing widgets. Its very similar to the problem of yesterday morning, prior to 6.3.2

    Hope of help.

    Hello All,

    I have a similar fatal exception also:

    Fatal error: Uncaught exception ‘Google_ServiceException’ with message ‘Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3Aga%3Awww.david-allen-studios.com&start-date=2012-08-16&end-date=2012-09-15&metrics=ga%3Avisits&dimensions=ga%3Adate&sort=ga%3Adate: (400) Invalid value ‘ga:ga:www.david-allen-studios.com’. Values must match the following regular expression: ‘ga:[0-9]+” in /home/content/40/7682940/html/blog/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php:66 Stack trace: #0 /home/content/40/7682940/html/blog/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest)) #1 /home/content/40/7682940/html/blog/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(177): Google_REST::execute(Object(Google_HttpRequest)) #2 /home/content/40/7682940/html/blog/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_ in /home/content/40/7682940/html/blog/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php on line 66

    I went in settings and tried to put my actual UID number instead of my domain name–which this plugin filled in for me, but could not change it.

    -david
    https://www.david-allen-studios.com/blog/

    Hi Peter

    Someone had success by totally cleaning out their wp_options table of any option with ga_ in it. This may help if you clean it out completely and start a new?

    In the plugin option there should be a RESET link, near activate/edit etc for the plugin itself

    Ben

    Thread Starter Peter Le C

    (@peter-le-c)

    Hi Ben

    The reset makes no difference I’, afraid ;-(
    Certainly it looks like something in GA is essentially leaving detritus post installation.

    I’m not savvy enough to check the wp_options tables myself however.

    Can follow instructions though ??

    Thanks for assistance so far.

    Kind regards

    Peter

    Hi Peter,

    We are going to put out 6.3.3 really soon, and one of the added features will to clean out the wp_options table of all Google Analyticator preferences – so it should help you out!

    Keep an eye out!

    Ben

    Moderator Bet Hannon

    (@bethannon1)

    I’ve also been having this same issue– and it continutes even after updating to 6.3.3.

    The affected site is one site in a multisite install, and all the other sites updated/authenticated just fine.

    Fatal error: Uncaught exception ‘Google_AuthException’ with message ‘Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant” }” in /nfs/c08/h04/mnt/123041/domains/churchwebsiteprogram.com/html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:279 Stack trace: #0 /nfs/c08/h04/mnt/123041/domains/churchwebsiteprogram.com/html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(239): Google_OAuth2->refreshTokenRequest(Array) #1 /nfs/c08/h04/mnt/123041/domains/churchwebsiteprogram.com/html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(216): Google_OAuth2->refreshToken(‘1/0cHcgb9ZCvHpH…’) #2 /nfs/c08/h04/mnt/123041/domains/churchwebsiteprogram.com/html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(166): Google_OAuth2->sign(Object(Google_HttpRequest)) #3 /nfs/c08/h04/mnt/123041/domains/churchwebsiteprogram.com/html/wp-content/plugins/google in /nfs/c08/h04/mnt/123041/domains/churchwebsiteprogram.com/html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 279

    Moderator Bet Hannon

    (@bethannon1)

    BTW, I’ve also tried the “reset” option from the installed plugins page, but no luck.

    I’ve upgraded to 6.3.3, hit reset about 100 times, and still get the oAuth error

    There was an Analytics API service error 400:Error fetching OAuth2 access token, message: ‘invalid_grant’

    I’ll delete the GA% out of my wp_options table next

    Thread Starter Peter Le C

    (@peter-le-c)

    Looks like this one is proving a toughie to sort.

    For sure its a GA issue though – as we have have reset, deactivated, de-authorized and then re laid GA on our blogs… it’s not theme related as I have multiple themes all configured the same way – all on the same server all on the same WP version.

    My sites are single, not multi.

    deleted anything ga% out of the wp_options table and reset/ reactivated twice. still getting
    here was an Analytics API service error 400:Error fetching OAuth2 access token, message: ‘invalid_grant’ Warning: Invalid argument supplied for foreach() in /home/content/html/wp/wp-content/plugins/google-analyticator/google-analyticator.php on line 427
    Tracking Settings

    I’ve taken a look through Google API docs, and they have the following message for when we get the “invalid_grant” error.

    Solving invalid_grant errors
    Make sure your server’s clock is in sync with NTP.

    https://code.google.com/p/google-api-php-client/wiki/OAuth2#Solving_invalid_grant_errors

    So, this may be an issue with your host. Only a very small number of users are having this error, so it may be a server related error.

    Thread Starter Peter Le C

    (@peter-le-c)

    Ben I have 52 blogs on two servers. Only one blog returns the errors stated above.

    I’ve also removed everything by FTP and tried again. Same issue.

    So it’s something else. ( If it was the clock synch issue all other installations of WP on the same server with the same themes etc. would be so effected. They aren’t.)

    What I can’t do is to delete everything and start afresh. There the medicine is more harmful than the disease. But there remains something that I’m sure you will find.

    Good hinting and if I sound ungrateful I’m not! I really appreciate your work. The only plugin I guess that I’d pay for without wingeing! – it’s THAT useful! ??

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘[Plugin: Google Analyticator] Google_AuthException – why just on this domain?’ is closed to new replies.