Title: Plugin stopped working ? illegal string offset
Last modified: August 9, 2018

---

# Plugin stopped working ? illegal string offset

 *  Resolved [stevebrett](https://wordpress.org/support/users/stevebrett/)
 * (@stevebrett)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-stopped-working-illegal-string-offset/)
 * For the last several email sent from both gravity forms and woocommerce have 
   not been arriving. Ive reauthorized the lugin with google and also tried the 
   ssl encryption based on another post here
 * We are getting this error in our server log
 * [Thu Aug 09 16:25:35.818675 2018] [:error] [pid 850] [client 206.35.36.2:21660]
   PHP Warning: Illegal string offset ‘refresh_token’ in /nas/content/live/griffinmuseumo/
   wp-content/plugins/gmail-smtp/main.php on line 685, referer: [https://griffinmuseum.org/checkout/](https://griffinmuseum.org/checkout/)
   
   Cart – Griffin Museum of Photography
 * Can you provide any guidance please
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-stopped-working-illegal-string-offset%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [jwd000](https://wordpress.org/support/users/jwd000/)
 * (@jwd000)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-illegal-string-offset/#post-10605086)
 * I have the same problem – mine started on Friday the 17th.
    Any luck so far?
 * This is the series of errors I get. Other OAuth2 stuff works fine from that server
   using the same service account (calendar integration specifically).
    I went to
   far as updating the google-api-php-client libraries, but I’m still getting the
   same error.
 *     ```
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: PHP Warning:  Illegal string offset 'refresh_token' in /home/[redacted]/[redacted].com/wp-content/plugins/gmail-smtp/main.php on line 685, referer: https://www.[redacted].com/my-account/lost-password/
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: PHP Fatal error:  Uncaught InvalidArgumentException: Invalid token format in /home/[redacted]/[redacted].com/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php:434, referer: https://www.[redacted].com/my-account/lost-password/
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: Stack trace:, referer: https://www.[redacted].com/my-account/lost-password/
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: #0 /home/[redacted]/[redacted].com/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(145): Google_Client->setAccessToken('{"access_token"...'), referer: https://www.[redacted].com/my-account/lost-password/
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: #1 /home/[redacted]/[redacted].com/wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(475): GmailXOAuth2->getOauth64(), referer: https://www.[redacted].com/my-account/lost-password/
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: #2 /home/[redacted]/[redacted].com/wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(152): SMTP->authenticate('', '', 'XOAUTH2', '', '', Object(GmailXOAuth2)), referer: https://www.[redacted].com/my-account/lost-password/
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: #3 /home/[redacted]/[redacted].com/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1542): PHPMailerOAuth->smtpConnect(Array), referer: https://www.[redacted].com/my-account/lost-password/
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: #4 /home/[redacted]/[redacted].com/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1337): PHPMailer->smtpSend('Date: Sun, 19 A...', '<!DOCTYPE html>...'), referer: https://www.[redacted].com/my-account/lost-password/
       [Sun Aug 19 13:40:52 2018] [warn] [client 76.182.114.47] mod_fcgid: stderr: #5 /home/[redacted]/[redacted].com/wp-content/plugins/gm in /home/[redacted]/[redacted].com/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php on line 434, referer: https://www.[redacted].com/my-account/lost-password/
       ```
   
    -  This reply was modified 7 years, 9 months ago by [jwd000](https://wordpress.org/support/users/jwd000/).
 *  [jwd000](https://wordpress.org/support/users/jwd000/)
 * (@jwd000)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-illegal-string-offset/#post-10605141)
 * I found a solution.
 * I just had to revoke access (just follow the instructions in the settings – Revoke
   Access tab), then connect again.
 * No idea what caused it, but it was easy enough to fix.
 *  Thread Starter [stevebrett](https://wordpress.org/support/users/stevebrett/)
 * (@stevebrett)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-illegal-string-offset/#post-10606506)
 * I revoked and reauthorized with out luck. I had to use a different plugin

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

The topic ‘Plugin stopped working ? illegal string offset’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [stevebrett](https://wordpress.org/support/users/stevebrett/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/plugin-stopped-working-illegal-string-offset/#post-10606506)
 * Status: resolved