• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am also getting the same error with Version 6.5.4 installed (PHP 7.2 and WordPress 5.3.2 ) when I go to either Appearance > Customize or Appearance > Background

    For now I’ve commented out line 288 of /wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php and this ha stopped the fatal error but would be good to get a fix on this.

    Thread Starter peakimages

    (@peakimages)

    Many thanks Vali – that also stops the fatal error on mine too.

    But agree, it would be good to get a fix on this as clearly the error is still underlying, just your fix stops it causing obvious havoc!

    I got the same email notice today about Google Analyticator causing a “fatal” error. I deactivated it and things are fine now. But, why haven’t the developers resolved this problem?

    Lisa

    (@realisaorggmailcom)

    I am getting this error as of today but I did not get email notice. And I am a novice. I do not do any php programming. I just do the blogging and I am stuck. And frustrated. Had hoped to get back to blogging for November and as a distraction…

    I disabled the Google Analyticator…and that solved the critical error but like you said, that is not the long term solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google Analytics “Critical Error on your website”’ is closed to new replies.