• Great plugin! Caught a fatal error today after updating to the latest WP MultiSite release. I’m empty handed after a few Google searches but I better understand how it works.

    So, Version 6.4.7.3 is throwing the error:

    Fatal error: Uncaught exception 'Google_AuthException' with message 'Error refreshing the OAuth2 token, message: '{ "error" : "invalid_grant" }'' in /public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288 Stack trace: #0 /public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(248): Google_OAuth2->refreshTokenRequest(Array) #1 /public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken('1/OJbne1G5ZE1wo...') #2 /public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest)) #3 /public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(1010): Google_ServiceResource->__call('list', Array) #4 /public_html/wp-content/plugins/goo in /public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 288

    I’ve omitted the absolute path on our servers but the path is as expected:

    /home/user/public_html/wp-content/plugins/google-analyticator/

    We use this plugin on many websites within MultiSite and our clients enjoy it. Would love to have this resolved ASAP.

    Thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jarod Thornton

    (@jarmerson)

    Update: Ok so apparently it is only an error on the root domain of the MultiSite network.

    We use virtual directories and both mapped domains and sites yet to be mapped but with this plugin already configured and authenticated appear to be working fine.

    Nonetheless, insight on resolving this for our root site is much appreciated.

    Thread Starter Jarod Thornton

    (@jarmerson)

    I was wrong about the error only being present on the root site. It is affecting all sites with this plugin activated.

    One strange behavior we observed is the widgets and drop down menus were not working until we performed a reset on the plugin. However upon re-authenticating the account we now experience an API service error 400 and 403 Error calling GET. This error appears on the settings page and breaks the account selection drop down.

    Any insight is greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error refreshing the OAuth2 token’ is closed to new replies.