• Resolved MikeShand

    (@mikeshand)


    Since updating to the latest version 1.4.2 of WP mail SMTP 2 weeks ago, I am getting errors from backupbuddy when it attempts to send one particular email indicating the completion of a backup tranfer to to google drive. All other emails sent by backup buddy, and anything else, including the WP mail SMTP test email are working fine. The error I get is…

    Fatal PHP error encountered:
    type => 1
    message => Uncaught Error: Call to undefined method Google_Client::setIncludeGrantedScopes() in /home2/mike/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php:92
    Stack trace:
    #0 /home2/mike/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(53): WPMailSMTP\Providers\Gmail\Auth->get_client()
    #1 /home2/mike/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php(79): WPMailSMTP\Providers\Gmail\Auth->__construct()
    #2 /home2/mike/public_html/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php(105): WPMailSMTP\Providers\Gmail\Mailer->send()
    #3 /home2/mike/public_html/wp-includes/pluggable.php(481): WPMailSMTP\MailCatcher->send()
    #4 /home2/mike/public_html/wp-content/plugins/backupbuddy/classes/core.php(619): wp_mail(Array, ‘BackupBuddy Fil…’, ‘<?php\n/**\n * Em…’, Array)
    #5 /home2/mike/public_html/wp-content/plugins/backupbuddy/destinations/bootstrap.php(665): backupbuddy_core::mail_notify_scheduled(”, ‘destinationComp…’, ‘Destination sen…’, Array)

    NB I am still running wordpress 4.9.10
    #6 /h
    file => /home2/mike/public_html/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php
    line => 92

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi MikeShand,

    The issue seems to be due to the older version of the Google API Services library included by the backupbuddy plugin. WP Mail SMTP includes the latest version of this library. In this case, when backupbuddy tries to send email, it loads the library included by WP Mail SMTP and the method which it is trying to call doesnot exist in the latest version.

    To fix this issue, you will need to contact the backupbuddy plugin support and ask them to update the version of the Google API Services library.

    I hope this helps!

    Hi MikeShand,

    We haven’t heard from you in about a week, so I’m going to go ahead and mark this ticket resolved. If you still have questions, though, please feel welcome to continue the conversation.

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

The topic ‘PHP error when backupbuddy sends mail’ is closed to new replies.