Title: Errors all over
Last modified: September 14, 2017

---

# Errors all over

 *  Resolved [Erik HaagenStuff](https://wordpress.org/support/users/erik-haagenstuff/)
 * (@erik-haagenstuff)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/errors-all-over/)
 * Hi,
 * I’m getting errors generated by the plugin now not only logging in, but trying
   to update pages, and trying to send a test email from within the plugin settings.
   Here’s the error from trying to send a test email… which email I did not receive.
 * Thanks for looking into it.
    Erik
 * Warning: Illegal string offset ‘refresh_token’ in /home/downdog/public_html/wp-
   content/plugins/gmail-smtp/main.php on line 681
    2017-09-14 20:19:56 Connection:
   opening to ssl://smtp.gmail.com:465, timeout=300, options=array () 2017-09-14
   20:19:56 Connection: opened 2017-09-14 20:19:56 SMTP -> get_lines(): $data is“”
   2017-09-14 20:19:56 SMTP -> get_lines(): $str is “220 smtp.gmail.com ESMTP f140sm9474351ioe.
   33 – gsmtp” 2017-09-14 20:19:56 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP f140sm9474351ioe.
   33 – gsmtp 2017-09-14 20:19:56 CLIENT -> SERVER: EHLO vidahotyoga.com 2017-09-
   14 20:19:56 SMTP -> get_lines(): $data is “” 2017-09-14 20:19:56 SMTP -> get_lines():
   $str is “250-smtp.gmail.com at your service, [109.199.114.205]” 2017-09-14 20:
   19:56 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service, [109.199.114.205]”
   2017-09-14 20:19:56 SMTP -> get_lines(): $str is “250-SIZE 35882577” 2017-09-
   14 20:19:56 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service,[
   109.199.114.205]250-SIZE 35882577” 2017-09-14 20:19:56 SMTP -> get_lines(): $
   str is “250-8BITMIME” 2017-09-14 20:19:56 SMTP -> get_lines(): $data is “250-
   smtp.gmail.com at your service, [109.199.114.205]250-SIZE 35882577250-8BITMIME”
   2017-09-14 20:19:56 SMTP -> get_lines(): $str is “250-AUTH LOGIN PLAIN XOAUTH2
   PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH” 2017-09-14 20:19:56 SMTP -> get_lines():
   $data is “250-smtp.gmail.com at your service, [109.199.114.205]250-SIZE 35882577250-
   8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH” 2017-
   09-14 20:19:56 SMTP -> get_lines(): $str is “250-ENHANCEDSTATUSCODES” 2017-09-
   14 20:19:56 SMTP -> get_lines(): $data is “250-smtp.gmail.com at your service,[
   109.199.114.205]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-
   CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES” 2017-09-14 20:19:56 SMTP-
   > get_lines(): $str is “250-PIPELINING” 2017-09-14 20:19:56 SMTP -> get_lines():
   $data is “250-smtp.gmail.com at your service, [109.199.114.205]250-SIZE 35882577250-
   8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-
   ENHANCEDSTATUSCODES250-PIPELINING” 2017-09-14 20:19:56 SMTP -> get_lines(): $
   str is “250-CHUNKING” 2017-09-14 20:19:56 SMTP -> get_lines(): $data is “250-
   smtp.gmail.com at your service, [109.199.114.205]250-SIZE 35882577250-8BITMIME250-
   AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-
   PIPELINING250-CHUNKING” 2017-09-14 20:19:56 SMTP -> get_lines(): $str is “250
   SMTPUTF8” 2017-09-14 20:19:56 SERVER -> CLIENT: 250-smtp.gmail.com at your service,[
   109.199.114.205]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-
   CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250
   SMTPUTF8 2017-09-14 20:19:56 Auth method requested: XOAUTH2 2017-09-14 20:19:
   56 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,
   OAUTHBEARER,XOAUTH 2017-09-14 20:19:56 CLIENT -> SERVER: QUIT 2017-09-14 20:19:
   57 SMTP -> get_lines(): $data is “” 2017-09-14 20:19:57 SMTP -> get_lines(): 
   $str is “221 2.0.0 closing connection f140sm9474351ioe.33 – gsmtp” 2017-09-14
   20:19:57 SERVER -> CLIENT: 221 2.0.0 closing connection f140sm9474351ioe.33 –
   gsmtp 2017-09-14 20:19:57 Connection: closed
 * Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘Invalid
   token format’ in /home/downdog/public_html/wp-content/plugins/gmail-smtp/google-
   api-php-client/src/Google/Client.php:434 Stack trace: #0 /home/downdog/public_html/
   wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(138): Google_Client-
   >setAccessToken(‘”{\\”access_toke…’) #1 /home/downdog/public_html/wp-content/
   plugins/gmail-smtp/PHPMailer/class.smtp.php(470): GmailXOAuth2->getOauth64() #
   2 /home/downdog/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauth.
   php(153): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(GmailXOAuth2)) #3 /
   home/downdog/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.
   php(1540): PHPMailerOAuth->smtpConnect(Array) #4 /home/downdog/public_html/wp-
   content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1335): PHPMailer->smtpSend(‘
   Date: Thu, 14 S…’, ‘testiness testi…’) #5 /home/downdog/public_html/wp-content/
   plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1213): PHPMailer-> in /home/
   downdog/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/
   Client.php on line 434
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-all-over%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Noor Alam](https://wordpress.org/support/users/naa986/)
 * (@naa986)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/errors-all-over/#post-9502523)
 * Hi, Please copy and paste the content from the “Server Info” tab so I can take
   a look.

Viewing 1 replies (of 1 total)

The topic ‘Errors all over’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Noor Alam](https://wordpress.org/support/users/naa986/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/errors-all-over/#post-9502523)
 * Status: resolved