• Resolved patbell101

    (@patbell101)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter patbell101

    (@patbell101)

    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

    (@bcrodua)

    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. 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

    (@patbell101)

    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 5 years, 5 months ago by patbell101.

    @patbell101 Are you using Google Site kit plugin?

    Thread Starter patbell101

    (@patbell101)

    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

    (@patbell101)

    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.