• Hi,

    The emails are not working as it used to work and I get the following error:

    [26-Aug-2017 03:37:24 UTC] PHP Warning: Illegal string offset ‘refresh_token’ in /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/main.php on line 674
    [26-Aug-2017 03:37:24 UTC] PHP Fatal error: Uncaught Google_AuthException: Invalid token format in /home3/uniquename/public_html/wp-content/plugins/ns-google-sheets-connector/lib/php-google-oauth/auth/Google_OAuth2.php:158
    Stack trace:
    #0 /home3/uniquename/public_html/wp-content/plugins/ns-google-sheets-connector/lib/php-google-oauth/Google_Client.php(200): Google_OAuth2->setAccessToken(‘{“access_token”…’)
    #1 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(138): Google_Client->setAccessToken(‘”{\\”access_toke…’)
    #2 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(470): GmailXOAuth2->getOauth64()
    #3 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(152): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(GmailXOAuth2))
    #4 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1540): PHPMailerOAuth->smtpConnect(Array)
    #5 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1335): PHPMai in /home3/uniquename/public_html/wp-content/plugins/ns-google-sheets-connector/lib/php-google-oauth/auth/Google_OAuth2.php on line 158

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, Please copy and paste the content from the “Server Info” tab so I can take a look.

    Thread Starter venthi7

    (@venthi7)

    Server info as follows:

    OS: Linux gator1234.hostgator.com 3.12.74-213.ELK6.x86_64 #1 SMP Tue Jun 20 00:36:01 CDT 2017 x86_64
    PHP version: 7.0.18
    WordPress version: 4.8.1
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.19.7, NSS/3.27.1

    Thread Starter venthi7

    (@venthi7)

    Hi,

    DOne the fresh authorization as suggested and disabled google sheets plugin. The following error captured from message shown after test email failed:

    Fatal error: Uncaught InvalidArgumentException: Invalid token format in /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php:434 Stack trace: #0 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(138): Google_Client->setAccessToken(‘{“access_token”…’) #1 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(470): GmailXOAuth2->getOauth64() #2 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(152): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(GmailXOAuth2)) #3 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1540): PHPMailerOAuth->smtpConnect(Array) #4 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1335): PHPMailer->smtpSend(‘Date: Sat, 26 A…’, ‘test\n’) #5 /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1213): PHPMailer->postSend() #6 /home3/uniquename/pub in /home3/uniquename/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php on line 434

    • This reply was modified 8 years, 9 months ago by venthi7.
    Thread Starter venthi7

    (@venthi7)

    Not sure if this helps to give you some idea to resolve, but anyway something from my part…

    https://github.com/google/google-api-php-client/issues/984

    Thread Starter venthi7

    (@venthi7)

    Noted and contacted you just now via the contact from in the above url. Please check and revert.

    Thanks.

    Having the same problem – I’m not a genius user but desperately hoping to get my emails to send properly. Just tried to re-authorize 2 times:

    Fatal error: Uncaught InvalidArgumentException: Invalid token format in /home/churchify/my/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php:434 Stack trace: #0 /home/churchify/my/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(138): Google_Client->setAccessToken(Array) #1 /home/churchify/my/wp-content/plugins/gmail-smtp/PHPMailer/class.smtp.php(470): GmailXOAuth2->getOauth64() #2 /home/churchify/my/wp-content/plugins/gmail-smtp/class.phpmaileroauth.php(152): SMTP->authenticate(”, ”, ‘XOAUTH2’, ”, ”, Object(GmailXOAuth2)) #3 /home/churchify/my/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1540): PHPMailerOAuth->smtpConnect(Array) #4 /home/churchify/my/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1335): PHPMailer->smtpSend(‘Date: Wed, 6 Se…’, ‘TEST\n’) #5 /home/churchify/my/wp-content/plugins/gmail-smtp/PHPMailer/class.phpmailer.php(1213): PHPMailer->postSend() #6 /home/churchify/my/wp-content/plugins/gmail-smtp/main.php(943): PHPMailer->send() #7 /hom in /home/churchify/my/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php on line 434

    Server settings:

    OS: Linux ecres233.servconfig.com 3.10.0-614.10.2.lve1.4.56.el7.x86_64 #1 SMP Wed Jun 21 18:37:06 EDT 2017 x86_64
    PHP version: 7.0.22
    WordPress version: 4.8.1
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.45.0, OpenSSL/1.0.1e

    I am having the same issue,

    Server information.
    OS: Windows NT WP021 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
    PHP version: 7.0.24
    WordPress version: 4.9
    WordPress multisite: No
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.55.0, OpenSSL/1.0.2k

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

The topic ‘Fatal Error Issue After Update’ is closed to new replies.