Conflict with UpdraftPlus plugin when backup to GoogleDrive remote storage
Bug Description
I'm using UpfraftPlus plugin for site backup which also uploading the backup files to Google Drive for off-site disaster recovery. After I installed Site Kit, the connection of UpdraftPlus to Google Drive never succeeded (and generating errors) till I deactivated SiteKit plugin.
Steps to reproduce
Just install Site Kit on a website using UpdraftPlus with Google Drive connection.
Screenshots
Additional Context
- PHP Version:
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Plugin Version [e.g. 22]
- Device: [e.g. iPhone6]
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Changelog entry
I am having the same issue.
The error message received from UpdraftPlus is: PHP Fatal error (TypeError) has occurred during deleteset subaction. Error Message: Argument 1 passed to Google_Client::__construct() must be of the type array, object given, called in /home/jwocinfo17/domains/dev.jwoc.info/wp-content/plugins/updraftplus/methods/googledrive.php on line 721 (Code: 0, line 92 in /home/jwocinfo17/domains/dev.jwoc.info/wp-content/plugins/google-site-kit/vendor/google/apiclient/src/Google/Client.php).
Please contact UpdraftPlus support for info regarding their code.
Sounds like a dependency conflict.
UpdraftPlus includes version 1.1.4 of the Google API PHP client, while Site Kit includes version 2.x.
is there a fix for this? Iv'e disabled site-kit for now
There's currently no solution for this. There has been no discussion about it yet.
I imagine that the only solution would be to prefix Composer dependencies using a tool like Mozart or PHP-Scoper.
I received this response from UpdraftPlus’ support rep:
Hi Michael, I’ve got a word from one of our lead developers. We use the older version of Google API PHP to maintain backwards compatibility with older PHP and WordPress versions. Google Site Kit should also not be loading the Google API on another plugin’s page. Please could you ask the Google Site kit developer’s if it is possible to prevent that plugin from running on specific wp-admin pages? Regards, Bryle
I’ve asked them to directly reply on this Github issues thread rather than having the end users sit in the middle of two development organizations.
Here’s my response to UpdraftPlus:
Hi Bryle, I’ll be glad to post your response on the github issues page opened by another user. However, I strongly suggest that you or your developers respond on the page yourselves instead of having me or another UpdraftPlus user be the go between. I think it’s best if your technical folks discuss this with their technical folks. Here’s the link to the github issue: https://github.com/google/site-kit-wp/issues/246
@mbdiener and @swissspidy thanks for the update, hope its fixes soon, or at least a respond.
Related: #41, #223.
Here is a screenshot and the problem still exists today.

Hi @swissspidy when are you planning to implement this in the site kit plugin?
There's currently no solution for this. There has been no discussion about it yet.
I imagine that the only solution would be to prefix Composer dependencies using a tool like Mozart or PHP-Scoper.
Without it I'm afraid that when you will publish the stable version into WordPress.org there may be a lot of errors like this: https://github.com/google/site-kit-wp/issues/349
@maciejmackowiak I don't have an ETA for this yet, but rest assured that we'd address this before the stable release. At the moment Site Kit is still in Developer Beta to catch exactly these kind of issues :-)
We're now tracking work on this in #612.
We just merged the work on #612, so this should be fixed in the upcoming release.
This should be fixed in the latest rc.2 - please reopen if you still encounter issues with this.