Title: Plugin crashed after adding the Google API OAuth details
Last modified: February 21, 2018

---

# Plugin crashed after adding the Google API OAuth details

 *  Resolved [towerss](https://wordpress.org/support/users/towerss/)
 * (@towerss)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-crashed-after-adding-the-google-api-oauth-details/)
 * Hi guys,
 * I hope you can help me with this one. I have one live site which used the WP 
   Mail SMTP plugin with no issues. I have it configured to send messages to Gmail
   via SMTP.
 * I tried to do the same with another site under the same WordPress multisite installation
   and it did not work. So, I decided to try to use the Gmail API configuration 
   following this guide: [https://wpforms.com/how-to-securely-send-wordpress-emails-using-gmail-smtp/](https://wpforms.com/how-to-securely-send-wordpress-emails-using-gmail-smtp/)
 * After I clicked the Allow orange button, I proceeded to send a test email. It
   did not work. It is taking me to this [https://drive.google.com/open?id=1K1c4T58oCvWxIEpp5jwyp4H9GHkhiq1k](https://drive.google.com/open?id=1K1c4T58oCvWxIEpp5jwyp4H9GHkhiq1k)
   white screen and nothing else happens.
 * I tried to select other configuration to go back to SMTP, but all the options
   for other Email methods disappeared: [https://drive.google.com/open?id=1sy-d0dDH30bD56AVo-FVm8kFEth9RdoF](https://drive.google.com/open?id=1sy-d0dDH30bD56AVo-FVm8kFEth9RdoF)
 * And I cannot change the details og the Gmail option anymore. There is no save,
   or update, or reset button: [https://drive.google.com/open?id=1devcgwCTLff4kCzwrfj3tqbh5ax62A3t](https://drive.google.com/open?id=1devcgwCTLff4kCzwrfj3tqbh5ax62A3t)
 * I tried uninstalling the WP Mail SMTP plugin and reinstalling it, but the wrong
   configuration remains. As I said before, it is just in this site, the other site
   using the pluggin under the same multisite installation is working fine.
 * Any help will be really appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-crashed-after-adding-the-google-api-oauth-details%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-crashed-after-adding-the-google-api-oauth-details/#post-9999718)
 * Hi
 * Please check your PHP error log (or enable debug log in WP and try again). There
   might be some useful information to help me help you.
 *  Thread Starter [towerss](https://wordpress.org/support/users/towerss/)
 * (@towerss)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-crashed-after-adding-the-google-api-oauth-details/#post-10001023)
 * Sure,
 * Here we go…
 * In the WP mail SMTP settings screen I got this message:
 * Fatal error: Uncaught Error: Call to undefined method Google_Client::fetchAccessTokenWithAuthCode()
   in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-smtp/src/Providers/
   Gmail/Auth.php:99 Stack trace: #0 /opt/bitnami/apps/wordpress/htdocs/wp-content/
   plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(53): WPMailSMTP\Providers\Gmail\
   Auth->get_client() #1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-
   mail-smtp/src/Providers/Gmail/Options.php(112): WPMailSMTP\Providers\Gmail\Auth-
   >__construct() #2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-
   smtp/src/Admin/Pages/Settings.php(177): WPMailSMTP\Providers\Gmail\Options->display_options()#
   3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-smtp/src/Admin/
   Area.php(255): WPMailSMTP\Admin\Pages\Settings->display() #4 /opt/bitnami/apps/
   wordpress/htdocs/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php(236): WPMailSMTP\
   Admin\Area->display_current_tab_content() #5 /opt/bitnami/apps/wordpress/htdocs/
   wp-includes/class-wp-hook.php(286) in /opt/bitnami/apps/wordpress/htdocs/wp-content/
   plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php on line 99
 * Link to the screen cap: [https://drive.google.com/file/d/1Pp4qIDGsd1b5JlElXbHKYCv9QM3gVwCu/view?usp=sharing](https://drive.google.com/file/d/1Pp4qIDGsd1b5JlElXbHKYCv9QM3gVwCu/view?usp=sharing)
 * In the screen after I try to submit the email:
 * Fatal error: Uncaught Error: Call to undefined method Google_Client::fetchAccessTokenWithAuthCode()
   in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-smtp/src/Providers/
   Gmail/Auth.php:99 Stack trace: #0 /opt/bitnami/apps/wordpress/htdocs/wp-content/
   plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(53): WPMailSMTP\Providers\Gmail\
   Auth->get_client() #1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-
   mail-smtp/src/Providers/Gmail/Mailer.php(55): WPMailSMTP\Providers\Gmail\Auth-
   >__construct() #2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-mail-
   smtp/src/Providers/Loader.php(176): WPMailSMTP\Providers\Gmail\Mailer->__construct(
   Object(WPMailSMTP\MailCatcher)) #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/
   plugins/wp-mail-smtp/src/Providers/Loader.php(133): WPMailSMTP\Providers\Loader-
   >get_entity(‘gmail’, ‘Mailer’) #4 /opt/bitnami/apps/wordpress/htdocs/wp-content/
   plugins/wp-mail-smtp/src/MailCatcher.php(54): WPMailSMTP\Providers\Loader->get_mailer(‘
   gmail’, Object(WPMailSMTP\MailCatcher)) #5 in /opt/bitnami/apps/wordpress/htdocs/
   wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php on line 99
 * Link to the screen cap: [https://drive.google.com/file/d/1drHu5uDnfYA4alLtrym-Wt_bFPQYaT4f/view?usp=sharing](https://drive.google.com/file/d/1drHu5uDnfYA4alLtrym-Wt_bFPQYaT4f/view?usp=sharing)
 * Thank you.
    -  This reply was modified 8 years, 3 months ago by [towerss](https://wordpress.org/support/users/towerss/).
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-crashed-after-adding-the-google-api-oauth-details/#post-10007571)
 * I’ve tested with a bitnami demo WordPress installation and Gmail mailer, I didn’t
   have such error.
 * In order to troubleshoot further, I’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 mention my name (Slava) 
   in your message there, so I will be notified.

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

The topic ‘Plugin crashed after adding the Google API OAuth details’ 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/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [gmail](https://wordpress.org/support/topic-tag/gmail/)
 * [Google API](https://wordpress.org/support/topic-tag/google-api/)
 * [OAuth](https://wordpress.org/support/topic-tag/oauth/)

 * 3 replies
 * 2 participants
 * Last reply from: [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-crashed-after-adding-the-google-api-oauth-details/#post-10007571)
 * Status: resolved