Failing to upload to Drive with a PHP error in logs

UpdraftPlus Home Forums Paid support forum – UpdraftPlus backup plugin Failing to upload to Drive with a PHP error in logs

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #236976
    Symphony Agency
    Participant

    Hello!

    Our backups are showing as completed (with a Drive icon next to them), but they’re not appearing in Drive. I’m seeing the following error in the logs:

    PHP event: code E_RECOVERABLE_ERROR: Argument 1 passed to Google_Client::__construct() must be of the type array, object given, called in /home/injurycl/public_html/wp-content/plugins/UPDRAFT-PLUS/methods/googledrive.php on line 485 and defined (line 93, wp-content/plugins/symphony-wp-oauth-2/vendor/google/apiclient/src/Google/Client.php)

    I’ve seen this error mentioned once before on the forums, but no answer was given regarding it. We have refreshed Google authentication, but this did not resolve the issue. Help!

    #237132
    Dee Nutbourne
    Moderator

    Hi,

    Please could you send us a copy of the latest backup log file? These can be found in the UpdraftPlus Existing Backups tab.

    The contents will be too long to post here directly, but you can use an online service such as Pastebin or Dropbox, and post the link here.

    Best Wishes,
    David N

    #252705
    Andreas
    Participant

    Is there a solution yet? have the same
    PHP event: code E_RECOVERABLE_ERROR: Argument 1 passed to Google_Client::__construct() must be of the type array, object given, called in …

    #252994
    Dee Nutbourne
    Moderator

    Hi Andreas,

    Please could you send us a copy of the latest backup log file? These can be found in the UpdraftPlus Existing Backups tab.

    The contents will be too long to post here directly, but you can use an online service such as Pastebin or Dropbox, and post the link here.

    Best Wishes,
    David N

    #291406
    Florian Schrom
    Participant

    Hi David,

    I got a similar problem. Please help.
    My latest backup log file is saved here:
    https://www.dropbox.com/s/pqwvc5dmv3eu9no/log.fac3321dc412.txt?dl=0

    Best regards
    Florian

    #291414
    Dan
    Participant

    Also seeing similar issues after client successfully obtains access tokens:

    PHP Fatal error (TypeError) has occurred. Error Message: Argument 1 passed to Google_Client::__construct() must be of the type array

    #291495
    Dee Nutbourne
    Moderator

    Hi,

    There is a conflict with the latest version of WP Mail SMTP plugin and UpdraftPlus.
    The developers of WP Mail SMTP are currently working on a fix.

    If you have WP Mail SMTP, the developers have given some guidance on how to downgrade your version while waiting for the fix to be released:
    https://wordpress.org/support/topic/google-api-problem-2/#post-10448740

    Best Wishes,
    David N

    #291547
    Florian Schrom
    Participant

    Hi,

    thank you very much for the quick help. Works fine after downgrade.

    Best regards
    Florian

    #291911
    Dee Nutbourne
    Moderator

    Hi,

    WP Mail SMTP have now released an update with a fix for the issue.

    Best Wishes,
    David N

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Failing to upload to Drive with a PHP error in logs’ is closed to new replies.