Title: Cannot authenticate &#8220;TypeError thrown&#8221;
Last modified: October 6, 2019

---

# Cannot authenticate “TypeError thrown”

 *  Resolved [patbell101](https://wordpress.org/support/users/patbell101/)
 * (@patbell101)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cannot-authenticate-typeerror-thrown/)
 * I cannot authenticate google drive – I keep getting “TypeError thrown
 * Argument 1 passed to Google_Client::__construct() must be of the type array, 
   object given, called in /srv/users/serverpilot/apps/bell-computing/public/wp-
   content/plugins/updraftplus/methods/googledrive.php on line 825″
 * 1.I have tried a different gdrive account.
    2.Cleared all settings (which shows”
   Warning: Cannot modify header information – headers already sent by (output started
   at /srv/users/serverpilot/apps/bell-computing/public/wp-content/plugins/updraftplus/
   admin.php:1177) in /srv/users/serverpilot/apps/bell-computing/public/wp-admin/
   includes/misc.php on line 1196″ 3.Deleted and reinstalled updraft 4.Disable all
   other plugins (whereupon I then get “Error: Failed to add entry to table: Data
   too long for column ‘refresh_token’ at row 1”
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-authenticate-typeerror-thrown%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [patbell101](https://wordpress.org/support/users/patbell101/)
 * (@patbell101)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cannot-authenticate-typeerror-thrown/#post-12002397)
 * I thought this resolved but during backup I still get the same error as I did
   when authentication.
 * 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 /srv/users/serverpilot/apps/bell-computing/public/wp-
   content/plugins/updraftplus/methods/googledrive.php on line 825 (Code: 0, line
   92 in /srv/users/serverpilot/apps/bell-computing/public/wp-content/plugins/google-
   site-kit/vendor/google/apiclient/src/Google/Client.php)
 *  Plugin Contributor [bcrodua](https://wordpress.org/support/users/bcrodua/)
 * (@bcrodua)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cannot-authenticate-typeerror-thrown/#post-12003177)
 * Hi,
 * It appears that the installation has failed partway.
 * The best solution is to manually remove ‘updraftplus’ folder via FTP from the‘
   wp-content/plugins/’ directory.
 * Then manually upload the plugin via FTP. Download a fresh copy of the plugin 
   from our [install guide here](https://updraftplus.com/support/installing-updraftplus-premium-your-add-on/).
   Then, unzip and upload to ‘wp-content/plugins’ so it becomes ‘wp-content/plugins/
   updraftplus’.
 * After uploading the files, you can then activate the add-ons and connect plugin
   to UpdraftPlus.com from your WordPress dashboard.
 * Regards,
    Bryle
 *  Thread Starter [patbell101](https://wordpress.org/support/users/patbell101/)
 * (@patbell101)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cannot-authenticate-typeerror-thrown/#post-12010242)
 * Done all that. Now in trying to delete the existing unfinished backups I get
   
   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 /srv/users/serverpilot/apps/bell-computing/public/wp-
   content/plugins/updraftplus/methods/googledrive.php on line 825 (Code: 0, line
   92 in /srv/users/serverpilot/apps/bell-computing/public/wp-content/plugins/google-
   site-kit/vendor/google/apiclient/src/Google/Client.php)
 * And when connecting to gdrive – trying a different drive I know works with other
   site backups I still get
    TypeError thrown Argument 1 passed to Google_Client::
   __construct() must be of the type array, object given, called in /srv/users/serverpilot/
   apps/bell-computing/public/wp-content/plugins/updraftplus/methods/googledrive.
   php on line 825
    -  This reply was modified 6 years, 8 months ago by [patbell101](https://wordpress.org/support/users/patbell101/).
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cannot-authenticate-typeerror-thrown/#post-12011811)
 * [@patbell101](https://wordpress.org/support/users/patbell101/) Are you using 
   Google Site kit plugin?
 *  Thread Starter [patbell101](https://wordpress.org/support/users/patbell101/)
 * (@patbell101)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cannot-authenticate-typeerror-thrown/#post-12011959)
 * Yes, and this time, deactivating it enabled authentication. However I should 
   point out that WP Vivid had no such problem, so I guess thats something you need
   to resolve?
 *  Thread Starter [patbell101](https://wordpress.org/support/users/patbell101/)
 * (@patbell101)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/cannot-authenticate-typeerror-thrown/#post-12012205)
 * I just ran a backup after reactivating site kit and the backup failed with this
   in the log
    0135.958 (1) Beginning dispatch of backup to remote (googledrive)(
   instance identifier s-041138cd17eb97bd1b8a75ef3bf78238) 0135.981 (1) PHP Fatal
   error (TypeError) has occurred during backup uploads to the googledrive. Error
   Message: Argument 1 passed to Google_Client::__construct() must be of the type
   array, object given, called in /srv/users/serverpilot/apps/bell-computing/public/
   wp-content/plugins/updraftplus/methods/googledrive.php on line 825 (Code: 0, 
   line 92 in /srv/users/serverpilot/apps/bell-computing/public/wp-content/plugins/
   google-site-kit/vendor/google/apiclient/src/Google/Client.php)
 * So I cannot schedule backups if I want to use site kit

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

The topic ‘Cannot authenticate “TypeError thrown”’ is closed to new replies.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [patbell101](https://wordpress.org/support/users/patbell101/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/cannot-authenticate-typeerror-thrown/#post-12012205)
 * Status: resolved