jsavage
Forum Replies Created
-
Forum: Plugins
In reply to: [plugin: BackWPup] Not able to backup to dropboxHi all,
This Plugin works great for small backups that can be emailed or plain old insecure FTP. However, I am encountering numerous issues getting it working in a secure fashion with SFTP and laterly DropBox.It may help narrow down outstanding issues if people stated what OS their WordPress is hosted on. My site is hosted on Windows. This issue did not arise when I tested the same version of this plugin on a Unix hosted site.
I am using version 1.7.1 of BackWPup- the latest version and experiencing the same issues with others eg:
[ERROR] DropBox API: Invalid signature. Expected signature base string: POST&https%3A%2F%2Fapi-content.dropbox.com%2F0%2Ffiles%2Fdropbox%2FBTOSCwordpress&file%3Dbackwpup_0_2011-03-29_19-08-52.zip%26oauth_consumer_key%XXXXauth_nonce%XXXXoauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1301422135%26oauth_token%3Devxxxx%26oauth_version%3D1.0Can anyone suggest what changes I could make to the code that would help debug this?
Thanks all,
James
OK not come across pastebin before. If my attempt at embedding below doesn’t work then the pastebin reference is daDEfN2
<script src=”http://pastebin.com/embed_js.php?i=daDEfN2t”></script>
IFrame Embedding (you can set the frame height by adding the CSS value ‘height:100px;’ for example)
<iframe src=”http://pastebin.com/embed_iframe.php?i=daDEfN2t” style=”border:none;width:100%”></iframe>James
The code above was truncated so here is the code from the begining of private function destination_dir()
This is where the changes are…[Another huge chunk of code moderated as per the Forum Rules. Please use the pastebin]
Ok, whilst I haven’t been able to prove why emails are not sent I beleive it may be because in the __destruct() method, the sending of the log file is done using wp_send and not the phpmailer method as used in destination_mail(). So I have patched my version of backwpup_dojob.php as shown below. This now works for me and copies me with a second email containing a hyperlink to the log file. There is one string constant for the path to the log file. The existing fn for log file directory ( $this->logdir.$this->logfile ) does not correctly report the path on my windows-based host but your mileage may vary.
Hopefully this may be of assistance to others.
If anyone sees any issues with this please comment accordingly.
[HUGE chunk of code moderated as per the Forum Rules. Please use the pastebin]