Title: PHP Error While Deleting
Last modified: September 25, 2019

---

# PHP Error While Deleting

 *  Resolved [Jaber Al Nahian](https://wordpress.org/support/users/rijans/)
 * (@rijans)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-while-deleting/)
 * While Trying to delete a backup, I have getting following error in js popup:
 * `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 /var/www/vhosts/smartwatchspex.com/httpdocs/wp-content/
   plugins/updraftplus/methods/googledrive.php on line 825 (Code: 0, line 92 in /
   var/www/vhosts/smartwatchspex.com/httpdocs/wp-content/plugins/google-site-kit/
   vendor/google/apiclient/src/Google/Client.php)`
 * My Server is getting filled by backups, because auto delete also not working
 * Please help
 * Server Info:
    VPS and Plesk Server OS : Linux / 64Bit OS Server Software : Apache
   Total CPUs : 1 / 2 Cores Total RAM : 4 GB Database Software : (Ubuntu) Database
   Version : 5.7.26 Maximum No. of Connections : 214 Maximum Packet Size : 16 MB
   Database Disk Usage : 37 MB Index Disk Usage : 6 MB Check More Database Info 
   PHP Version : 7.2.17 PHP Max Upload Size : 10 MB PHP Max Post Size : 16 MB PHP
   Max Execution Time : 90 sec PHP Short Tag : Off PHP Memory Limit : 300 MB Real
   Time PHP Memory Usage :
    -  This topic was modified 6 years, 8 months ago by [Jaber Al Nahian](https://wordpress.org/support/users/rijans/).

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

 *  Plugin Contributor [aporter](https://wordpress.org/support/users/aporter/)
 * (@aporter)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-while-deleting/#post-11967078)
 * Hi,
 * This is caused by a plugin conflict.
 * The plugin google-site-kit is loading a newer version of the Google SDK which
   does not support PHP 5.2 on every page including ours.
 * We have to use an older version of the Google SDK to support PHP 5.2 installs.
 * If you deactivate that plugin the backups will start to work again.
 * You can report this to the developers of google-site-kit.
 * As you can see here, other users have reported it but it does not look like a
   fix is coming anytime soon:
 * [https://github.com/google/site-kit-wp/issues/246](https://github.com/google/site-kit-wp/issues/246)
 * Best Wishes,
 * Ashley
 *  Thread Starter [Jaber Al Nahian](https://wordpress.org/support/users/rijans/)
 * (@rijans)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-while-deleting/#post-11967097)
 * How can you even support PHP 5.2 where 5.4 is even abandoned. You guys should
   rather encourage nerds to upgrade PHP. Astonishing. Now you mean I can’t use 
   Google Site Kit, if I want to use UpDraft? Anyway thanks for addressing the issue.
    -  This reply was modified 6 years, 8 months ago by [Jaber Al Nahian](https://wordpress.org/support/users/rijans/).
 *  Plugin Contributor [aporter](https://wordpress.org/support/users/aporter/)
 * (@aporter)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-while-deleting/#post-11967171)
 * Hi,
 * We support PHP 5.2 as that is the minimum supported PHP version for WordPress
   3.7 onwards (WordPress 5.2 has recently changed the minimum to PHP 5.6).
 * [http://displaywp.com/wordpress-minimum-php-version/](http://displaywp.com/wordpress-minimum-php-version/)
 * Where WordPress 3.7 is currently the oldest supported WordPress version which
   we also support:
 * [https://en.wikipedia.org/wiki/WordPress#Release_history](https://en.wikipedia.org/wiki/WordPress#Release_history)
 * The conflict is with Google Site Kit and Google Drive in UpdraftPlus, you can
   still use UpdraftPlus with other remote storage options such as Dropbox if you
   wanted to.
 * Best Wishes,
 * Ashley
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-while-deleting/#post-11987822)
 * > How can you even support PHP 5.2 where 5.4 is even abandoned. You guys should
   rather encourage nerds to upgrade PHP. Astonishing.
 * UpdraftPlus is a backup/restore plugin. One of its use cases is allowing people
   to take a backup of their site before they upgrade. So, if you get a new client
   on a site that’s still running PHP 5.2, you’ll want to upgrade it… but before
   upgrading, you’ll want to take a backup.

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

The topic ‘PHP Error While Deleting’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-while-deleting/#post-11987822)
 * Status: resolved