• Resolved ilangutman

    (@ilangutman)


    Hi Michael,

    I know others have had the division by zero problem before, but I have just installed the latest plugin version 1.5.4, and am getting the following error when I go into the Backup Settings:

    Warning: Division by zero in /clientdata/apache-www/k/i/kinnections.com.au/www/wp-content/plugins/wordpress-backup-to-dropbox/Views/wp-backup-to-dropbox-options.php on line 158, you have 0GB of 0GB (0%) free

    I’m assuming this is happening because I haven’t actually linked a DropBox account yet, but clicking ‘Unlink Account’ does nothing.

    Appreciate your help, and am looking forward to using this great plugin!

    Regards,

    Ilan

    https://www.ads-software.com/extend/plugins/wordpress-backup-to-dropbox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael De Wildt

    (@michaeldewildt)

    Gday Ilan,

    This is odd. It should not get to that code unless you are authorised.

    I really want to get to the bottom of this. Can I jump on your host and take a look?

    If so, please shoot a login to [email protected]

    Cheers,
    Mikey

    Plugin Contributor Michael De Wildt

    (@michaeldewildt)

    Gday Ilan,

    Firstly thanks for the login details. There is no way I would have gotten to the bottom of the issue without them. I am going to get pretty technical here but it’s was an interesting problem and worth noting.

    Your issue was a problem with the API library and the fact that your server runs behind a proxy of some sort. Proxies insert their own HTTP headers to tell other parties that the connection to it was ok before sending the request onwards. Here is the header that the proxy added:

    “HTTP/1.0 200 Connection established”

    Unfortunately, by default, cURL does not strip this header. So the API library I am using was interpreting the proxies 200 OK message as the one from Dropbox and assuming that ALL request to Dropbox where OK.

    This caused mayhem with the plugin and manifested itself as the “Divide by zero” error that you saw.

    I have added a fix that strips the proxy header and will test it over the coming days to be included in the next release so the plugin will work behind proxies.

    Cheers,
    Mikey

    Thread Starter ilangutman

    (@ilangutman)

    Hi Michael,

    Wow, I understand about 3 words in that explanation! I’m obviously joking, but that’s certainly not something I could have ever got near on my own.

    Really appreciate your quick response and great service!

    Cheers,

    Ilan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Division by Zero on a Fresh Install’ is closed to new replies.