error message in snapshot refarding drop box

I noticed this message when setting up a dropbox account in snapshot on a client wordpress site. can you please tell me what does it mean?

Warning: Division by zero in /home/content/82/10630682/html/wp-content/plugins/snapshot/lib/destinations/dropbox/index.php on line 419

  • Vinod Dalvi
    • WP Unicorn

    Hi @cornelius_butler,

    I hope you are well today and thank you for your question.

    It means there is the following expression in the plugin file /plugins/snapshot/lib/destinations/dropbox/index.php that is dividing by zero which is wrong and not allowed.

    $account_info_display .= '<li><strong>'. __('Usage', SNAPSHOT_I18N_DOMAIN) .'</strong>: '.number_format((intval($account_info['quota_info']['normal']) / intval($account_info['quota_info']['quota'])) * 100, 2, '.', '') .'%</li>';

    I have tested it on my test site using the latest version of Snapshot plugin but i didn't get any warning message on the following path.

    Admin area -> Snapshots -> Destinations -> Dropbox Edit

    Please make sure you are using latest version Snapshot plugin.

    Is the warning message gets hidden when you set wp-debug to false in wp-config.php file?

    Kind Regards,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.