We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16430
    • 217 Posts
    hi,
    after I login to manager (2.2.9) I got page error 500 and empty page. I dont know why it happened. It worked before.
    Tried already clearing cache, reinstal via setup..
    I turned on PHP log and see this:
    [19-Oct-2016 15:19:23 Europe/Prague] PHP Fatal error:  Uncaught exception 'Google_Auth_Exception' with message 'Error refreshing the OAuth2 token, message: '{
      "error" : "invalid_grant"
    }'' in /hosting/www/sportujsnami.cz/www/core/components/analytics/model/google-api-php-client/src/Google/Auth/OAuth2.php:346
    Stack trace:
    #0 /hosting/www/sportujsnami.cz/www/core/components/analytics/model/google-api-php-client/src/Google/Auth/OAuth2.php(270): Google_Auth_OAuth2->refreshTokenRequest(Array)
    #1 /hosting/www/sportujsnami.cz/www/core/components/analytics/model/google-api-php-client/src/Google/Client.php(412): Google_Auth_OAuth2->refreshToken('1/8v2qi386B2udI...')
    #2 /hosting/www/sportujsnami.cz/www/core/components/analytics/elements/widget/widget.analytics.php(120): Google_Client->refreshToken('1/8v2qi386B2udI...')
    #3 /hosting/www/sportujsnami.cz/www/core/model/modx/moddashboardwidget.class.php(72): include_once('/hosting/www/sp...')
    #4 /hosting/www/sportujsnami.cz/www/core/model/modx/moddashboard.class.php(78): modDashboardWidget->getContent(Object(WelcomeManagerCon in /hosting/www/sportujsnami.cz/www/core/components/analytics/model/google-api-php-client/src/Google/Auth/OAuth2.php on line 346
    


    Any idea how to fix this?

    This question has been answered by kudykam. See the first response.

      • 22840
      • 1,572 Posts
      Looks like your google analytics widget on the dashbord, see if you can goto yourdomain.com/manager/?a=system/dashboards and disable it for now until you can get a fix for it
        • 16430
        • 217 Posts
        I cant go to that url...
        Http Error 500

        Maybe try to disable it via mysql? but don know how.. [ed. note: kudykam last edited this post 7 years, 6 months ago.]
        • discuss.answer
          • 16430
          • 217 Posts
          I deleted record in database modx_dashboard_widget with google anylitics and now I can login.
            • 10076
            • 1,024 Posts
            Quote from: kudykam at Oct 21, 2016, 12:02 PM
            I deleted record in database modx_dashboard_widget with google anylitics and now I can login.

            Same here, happens after updating MODx...
            Same solution.