Title: Fatal Error Call to undefined method Google_Client
Last modified: February 8, 2018

---

# Fatal Error Call to undefined method Google_Client

 *  Resolved [flashnarfe](https://wordpress.org/support/users/flashnarfe/)
 * (@flashnarfe)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-google_client/)
 * I installed WP Mail SMTP to try to fix an email problem. I choose Google to send
   my SMTP mail. I have a Client ID and Client Secret. I have used Google API for
   other applications. When I got to the Authorized step the button was not sending
   my Client_ID. Everything was set up correctly but when I pressed “Allow plugin
   to send emails…” I got an error page that said no Client_ID was passed. I tried
   a number of times but nothing worked so I wanted to start from scratch. I deactivated
   the plugin and deleted it. I reloaded it and activated it again. When I went 
   to setting I got the follow error message after Authorize redirect URI entry:
   Fatal error: Call to undefined method Google_Client::fetchAccessTokenWithAuthCode()
   in /home/mdnarfe/mdnarfe.org/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/
   Auth.php on line 99
    With the plugin active I cannot send email. Can you help
   me fix this?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-google_client/#post-9967652)
 * Hi [@flashnarfe](https://wordpress.org/support/users/flashnarfe/),
 * In order to troubleshoot further, we’ll need to collect more details. When you
   get a chance, would you please go to [https://wpforms.com/contact/](https://wpforms.com/contact/)
   and click the ‘Complete a Form’ button on the right side? This will allow you
   to submit a ticket without a WPForms account. Please provide there this information
   and mention me (Slava), so I will be notified.
 * Thanks in advance.
 *  Thread Starter [flashnarfe](https://wordpress.org/support/users/flashnarfe/)
 * (@flashnarfe)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-google_client/#post-9978672)
 * I’ll try to get back to this soon.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal Error Call to undefined method Google_Client’ is closed to new 
replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [flashnarfe](https://wordpress.org/support/users/flashnarfe/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-method-google_client/#post-9978672)
 * Status: resolved