michelem09 / wassup

WassUp Real Time Analytics for WordPress
https://www.wpwp.org
4 stars 3 forks source link

Uncaught DivisionByZeroError #15

Open Gnonthgol opened 2 months ago

Gnonthgol commented 2 months ago

Getting the following error message on the admin page.

`Uncaught DivisionByZeroError: Division by zero in /var/www/wp-content/plugins/wassup/lib/wassupadmin.php:1602 Stack trace:

0 /var/www/wp-content/plugins/wassup/lib/wassupadmin.php(973): wassup_page_contents(Array)

1 /var/www/wp-includes/class-wp-hook.php(324): WassUp('')

2 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)

3 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

4 /var/www/wp-admin/admin.php(259): do_action('toplevel_page_w...')

5 {main}`

Added one to the divisor in the Pages/Visitors solved the problem.