Title: PHP Error &#8211; Uncaught Google_Auth_Exception: Error refreshing the OAuth2 token
Last modified: September 21, 2016

---

# PHP Error – Uncaught Google_Auth_Exception: Error refreshing the OAuth2 token

 *  [twentyfourdegrees](https://wordpress.org/support/users/twentyfourdegrees/)
 * (@twentyfourdegrees)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-error-uncaught-google_auth_exception-error-refreshing-the-oauth2-token/)
 * Hello,
 * I installed and configured the Google SMTP plugin. The status is connected, I
   have updated everything but when I try to send a test email, I get the following
   error:
 * Uncaught Google_Auth_Exception: Error refreshing the OAuth2 token, message: ‘{“
   error” : “invalid_request”, “error_description” : “Missing required parameter:
   refresh_token” }’ in /srv/bindings/51056139c8ec413492a638212ed8ae8a/code/wp-content/
   plugins/gmail-smtp/google-api-php-client/src/Google/Auth/OAuth2.php:363 Stack
   trace: #0 /srv/bindings/…
 * It used to work perfectly. I did go from php 5.5 to 7, so maybe that’s the reason?
 * thanks,
 * Mich

The topic ‘PHP Error – Uncaught Google_Auth_Exception: Error refreshing the OAuth2
token’ is closed to new replies.

 * ![](https://ps.w.org/gmail-smtp/assets/icon-128x128.png?rev=2432932)
 * [Gmail SMTP](https://wordpress.org/plugins/gmail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gmail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gmail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/gmail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gmail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gmail-smtp/reviews/)

## Tags

 * [gmail](https://wordpress.org/support/topic-tag/gmail/)
 * [OAuth2](https://wordpress.org/support/topic-tag/oauth2/)

 * 0 replies
 * 1 participant
 * Last reply from: [twentyfourdegrees](https://wordpress.org/support/users/twentyfourdegrees/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/php-error-uncaught-google_auth_exception-error-refreshing-the-oauth2-token/)
 * Status: not resolved