Google Analytics “Critical Error on your website”
-
Google Analyticator has just worked for me, quietly sitting there in the background doing what it should without a complaint for many years ??
But a couple of days ago, having just gone into the front-end customiser it caused a “Critical Error”. WordPress sent me a nice recovery email, so I was able to get back in and start investigating.
Had just updated the theme, so tried rolling that back a version. Didn’t change anything.
Had just updated AllinoneSEO, so likewise tried rolling that back a version. Also changed nothing.HADN’T updated Google Analytics, but that was the plugin that the error mentioned (and in the recovery login it said GA had failed to start correctly). Disabling this solved the problem – temporarily (obviously disabling this permanently isn’t a good solution!). Can anyone help?
Recovery email:
WordPress version 5.3.2
Current theme: Customizr Pro (version 2.1.41)
Current plugin: Google Analyticator (version 6.5.4)
PHP version 7.3.14
Error Details
=============
An error of type E_ERROR was caused in line 288 of the file /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php. Error message: Uncaught Google_AuthException: Error refreshing the OAuth2 token, message: ‘{
“error”: “invalid_grant”,
“error_description”: “Bad Request”
}’ in /home/sites/1b/f/f9ae20ea13/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:288
Stack trace:
#0 /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(247): Google_OAuth2->refreshTokenRequest(Array)
#1 /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(225): Google_OAuth2->refreshToken(‘**Deleted for public posting in case this is a security thing**’)
#2 /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(167): Google_OAuth2->sign(Object(Google_HttpRequest))
#3 /home/sites/1b/f/*deleted*/public_html/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(784): Google_ServiceRes
- The topic ‘Google Analytics “Critical Error on your website”’ is closed to new replies.