Title: unexpected parameter &#039;overwrite&#039;
Last modified: August 30, 2016

---

# unexpected parameter 'overwrite'

 *  [Ramzii](https://wordpress.org/support/users/ramzii/)
 * (@ramzii)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/)
 * Does anyone what this means? Thanks!
 * `Error uploading '/home/blok/domains/DOMAIN.com/public_html/wp-content/uploads/
   login-bkg-title-156x300.png' to Dropbox: unexpected parameter 'overwrite'`
 * [https://wordpress.org/plugins/wordpress-backup-to-dropbox/](https://wordpress.org/plugins/wordpress-backup-to-dropbox/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/unexpected-parameter-overwrite/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/unexpected-parameter-overwrite/page/2/?output_format=md)

 *  [Albertus59](https://wordpress.org/support/users/albertus59/)
 * (@albertus59)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862402)
 * i don’t know, but have the same problem since latest update of WP.
    After 10 
   of this failures backup stops, restarts, etc.
 * Makes backup by this plugin impossible on all my WP sites
    tried different PHP
   versions. no cure
 * 10 days without backup now
 *  Thread Starter [Ramzii](https://wordpress.org/support/users/ramzii/)
 * (@ramzii)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862406)
 * I just discovered some of my sites do the same!!
 * I sent him an email explaining the situation. Please send him aswell since he
   doesnt support this forum activly.
 * [support@wpd2db.com](https://wordpress.org/support/topic/unexpected-parameter-overwrite/support@wpd2db.com?output_format=md)
 *  [Michael Soriano](https://wordpress.org/support/users/mks6804/)
 * (@mks6804)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862542)
 * Same problem here.
 * When I run a backup, it says that “Backup is complete”, however I check dropbox
   and the .sql and .txt files is not updated. I also see this error in the “Backup
   Monitor”:
 * **`Error uploading '/var/www/mysite.com/backups/...wpb2d-secret' to Dropbox: 
   unexpected parameter 'overwrite'`**
 * and
 * **`Error uploading '/var/www/mysite.com/backups/...wpb2d-secret' to Dropbox: 
   unexpected parameter 'overwrite'`**
 * In the logs I get multiple warnings:
 * **`Disabling safe uploads is no longer supported in /var/www/mysite.com/wp-content/
   plugins/wordpress-backup-to-dropbox/Dropbox/Dropbox/OAuth/Consumer/Curl.php on
   line 92`**
 * I am running PHP 7, Apache 2.4.7, Ubuntu 14.4.
 * Please advise.
 *  Thread Starter [Ramzii](https://wordpress.org/support/users/ramzii/)
 * (@ramzii)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862543)
 * The current version of this plugin seems not to support PHP 7.
    A shame. I hope
   they will release an upgrade soon. As its been almost 2 months since PHP 7 came
   out.
 * For now I reverted back to PHP 5.6. But if this does not get fixed Im afraid 
   ill have to look for an alternative.
 * The support via email also stopped.. no response for a couple of weeks.
 *  [Michael Soriano](https://wordpress.org/support/users/mks6804/)
 * (@mks6804)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862544)
 * Thanks Ramzii.
 * Can you please post your findings here?
 * I would rather not downgrade PHP. I just love fast 7 is.
 *  Thread Starter [Ramzii](https://wordpress.org/support/users/ramzii/)
 * (@ramzii)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862545)
 * I found that it work fine under PHP 5.6. Thats it. If he responds ill post it
   here.
 * I love PHP 7 speed aswell and am considering replacing the plugin on all my sites.
 *  Thread Starter [Ramzii](https://wordpress.org/support/users/ramzii/)
 * (@ramzii)
 * [10 years ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862573)
 * So I did get an answer couple of weeks back. The author is busy and hopes to 
   works on improving the plugin ‘soon’.
 * Soon unfortunatly doesnt cut it and ive been looking for a more trustworthy replacement.
   If anyone has any advice let us know 🙂
 *  [Judge-Mentals](https://wordpress.org/support/users/judge-mentals/)
 * (@judge-mentals)
 * [10 years ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862577)
 * I’ve had a couple of issues with a couple of sites running WPB2D, and instead
   have been using a plugin called UpDraft Plus.
 * Not quite as feature rich out of the box as WPB2D (I like sub-folders. You have
   to pay for these in UDP), and it doesn’t backup the WordPress core (citing you
   can easily download this) but other than that it seems to work well.
 * One of the sites being backup up has a whole heap of media files, which I found
   WPB2D struggled with, but this one seems to have no issues (150MB zipped of media
   files).
 *  [Kriztioan](https://wordpress.org/support/users/kriztioan/)
 * (@kriztioan)
 * [10 years ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862578)
 * I am using the WordPress Backup to Dropbox plugin, version 4.4.1. and have come
   across the “unexpected parameter ‘overwrite'”-issue as well. The WordPress-blog
   I am maintaining is running PHP 7 and I can confirm that that is indeed what 
   is causing the issue. However, the problem doesn’t lie with the WP Backup to 
   Dropbox plugin itself, but rather with code it relies on from [benthedesigner](https://github.com/benthedesigner/dropbox)
   and how that interacts with Curl. PHP 7 Removed support for disabling the CURLOPT_SAFE_UPLOAD
   option and CURLFile should be used to upload files instead.
 * The solution is to modify the /wp-content/plugins/wordpress-backup-to-dropbox/
   Dropbox/Dropbox/OAuth/Consumer/Curl.php file and make it PHP 7-aware. Below a
   patch that should do just that. Needles to say that the patch is provided without
   any warranty and that making a backup of the file before applying is recommended.
   Although, I can say that it works for my WordPress-blog.
 *     ```
       --- Curl.php	2015-10-04 12:07:22.000000000 -0700
       +++ Curl-patched.php	2016-02-06 09:40:11.000000000 -0800
       @@ -66,7 +66,7 @@
                $options = $this->defaultOptions;
                $options[CURLOPT_CAINFO] = dirname(__FILE__) . '/ca-bundle.pem';
   
       -        if (version_compare(PHP_VERSION, '5.6') >= 0) {
       +        if (version_compare(PHP_VERSION, '5.6') >= 0 && version_compare(PHP_VERSION, '7.0') < 0) {
                    $options[CURLOPT_SAFE_UPLOAD] = false;
                }
   
       @@ -78,7 +78,22 @@
                    $this->outFile = null;
                } elseif ($method == 'POST') { // POST
                    $options[CURLOPT_POST] = true;
       -            $options[CURLOPT_POSTFIELDS] = $request['postfields'];
       +            $postfields = $request['postfields'];
       +            if (version_compare(PHP_VERSION, '7.0') >= 0) {
       +                if (is_array($postfields) == true) {
       +                    foreach ($postfields as $k => $v) {
       +                        if (strpos($v, '@') === 0) {
       +                            $filename = ltrim($v, '@');
       +                            $semicolon = strpos($filename, ';');
       +                            if ($semicolon !== false) {
       +                                $filename = substr($filename, 0, $semicolon);
       +                            }
       +                            $postfields[$k] = new CURLFile($filename);
       +                        }
       +                     }
       +                 }
       +            }
       +            $options[CURLOPT_POSTFIELDS] = $postfields;
                } elseif ($method == 'PUT' && $this->inFile) { // PUT
                    $options[CURLOPT_PUT] = true;
                    $options[CURLOPT_INFILE] = $this->inFile;
       ```
   
 * I did provide the plugin’s author with the patch on February 8…
 *  [Michael Soriano](https://wordpress.org/support/users/mks6804/)
 * (@mks6804)
 * [10 years ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862580)
 * [@kriztioan](https://wordpress.org/support/users/kriztioan/) That makes sense.
   Hopefully the author updates soon. I’ve been using a different plugin, but would
   like to switch back to this one as soon as it gets updated.
 *  [Michael Soriano](https://wordpress.org/support/users/mks6804/)
 * (@mks6804)
 * [10 years ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862581)
 * Actually, I tried this [https://wordpress.org/plugins/backwpup/](https://wordpress.org/plugins/backwpup/)–
   which is way better. You can schedule, compress, backup to DB – very robust plugin.
   Made the switch.
 *  [Kriztioan](https://wordpress.org/support/users/kriztioan/)
 * (@kriztioan)
 * [10 years ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862582)
 * [@michael](https://wordpress.org/support/users/michael/) Soriano Thank you for
   pointing out Backwpup. It seems to work as advertised and definitely has some
   interesting features. Though, the advantage that WP2DB has over Backwpup is that
   the former makes incremental backups, i.e., only sends over the files that have
   been modified since the last backup. This saves both bandwidth and CPU cycles[
   the compression stage of Backwpup is quite intense].
 *  [Thamaraiselvam](https://wordpress.org/support/users/thamaraiselvam/)
 * (@thamaraiselvam)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-6862596)
 * [@kriztioan](https://wordpress.org/support/users/kriztioan/) thanks man it works
 *  [mb124](https://wordpress.org/support/users/mb124/)
 * (@mb124)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-8656849)
 * Hi [@kriztioan](https://wordpress.org/support/users/kriztioan/)
    Pls help ! I
   can easely navigate to
 * /wp-content/plugins/wordpress-backup-to-dropbox/Dropbox/Dropbox/OAuth/Consumer/
   Curl.php
 * but i’m a newbie coder, so I don’t know where to put your patch.
 *  [Kriztioan](https://wordpress.org/support/users/kriztioan/)
 * (@kriztioan)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/#post-8658056)
 * [@mb124](https://wordpress.org/support/users/mb124/): You can make use of the
   patch-command like: `patch < patch.diff`; you should have saved the provided 
   patch to a file called patch.diff, or update the file Curl.php manually using
   your favorite editor (vim/emacs/nano/etc.); the patch is only small, so that 
   is doable. Manually would involve you finding the sections in the Curl.php file
   that need to be patched. In the patch, which is in diff-format, removal of lines
   is indicated with a ‘-‘ and additions with a ‘+’; some surrounding text is provided
   to position yourself and the @-signs give the exact line-numbers. You can do 
   some web-searching to get some more information about using the patch-command
   and the diff-format.
 * Make sure to make a backup of the file before applying the patch, either using
   the patch-command or manually_**!**_
 * Good luck_!_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/unexpected-parameter-overwrite/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/unexpected-parameter-overwrite/page/2/?output_format=md)

The topic ‘unexpected parameter 'overwrite'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-backup-to-dropbox_ffffff.
   svg)
 * [WordPress Backup to Dropbox](https://wordpress.org/plugins/wordpress-backup-to-dropbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-backup-to-dropbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-backup-to-dropbox/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-backup-to-dropbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-backup-to-dropbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-backup-to-dropbox/reviews/)

 * 16 replies
 * 7 participants
 * Last reply from: [mb124](https://wordpress.org/support/users/mb124/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/unexpected-parameter-overwrite/page/2/#post-8667711)
 * Status: not resolved