Meh… still happening. I’ve checked and made sure NTP is set to the servers in our location:
server 0.north-america.pool.ntp.org
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
server 3.north-america.pool.ntp.org
PHP.ini is set correctly as well.
Still getting this error:
Last Error: exception 'Google_AuthException' with message 'Error refreshing the OAuth2 token, message: '{
"error" : "invalid_grant"
}'' in /wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/auth/Google_OAuth2.php:288
Stack trace:
#0 /wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/auth/Google_OAuth2.php(248): Google_OAuth2->refreshTokenRequest(Array)
#1 /wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google_Client.php(311): Google_OAuth2->refreshToken('1/u16MQiGZ_R9fZ...')
#2 /wp-content/plugins/google-analytics-dashboard-for-wp/tools/gapi.php(141): Google_Client->refreshToken('1/u16MQiGZ_R9fZ...')
#3 /wp-content/plugins/google-analytics-dashboard-for-wp/tools/gapi.php(47): GADASH_GAPI->ga_dash_refresh_token()
#4 /wp-content/plugins/google-analytics-dashboard-for-wp/tools/gapi.php(1090): GADASH_GAPI->__construct()
#5 /wp-content/plugins/google-analytics-dashboard-for-wp/admin/dashboard_widgets.php(140): include_once('/wp-c...')
#6 [internal function]: GADASH_Widgets->gadash_dashboard_widgets('', Array)
#7 /wp-admin/includes/template.php(985): call_user_func(Array, '', Array)
#8 /wp-admin/includes/dashboard.php(193): do_meta_boxes('dashboard', 'side', '')
#9 /wp-admin/index.php(125): wp_dashboard()
#10 {main}
Is there a limit to the number of GA Accounts or properties the plugin can work with?