• Fatal error: Uncaught DivisionByZeroError: Division by zero in /data/www/wp-includes/functions.php:493 Stack trace: #0 /data/www/wp-admin/includes/class-wp-debug-data.php(565): size_format() #1 /data/www/wp-admin/site-health-info.php(32): WP_Debug_Data::debug_data() #2 /data/www/wp-admin/includes/class-wp-site-health.php(66): require_once('...') #3 /data/www/wp-includes/class-wp-hook.php(307): WP_Site_Health->show_site_health_tab() #4 /data/www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #5 /data/www/wp-includes/plugin.php(476): WP_Hook->do_action() #6 /data/www/wp-admin/site-health.php(205): do_action() #7 {main} thrown in /data/www/wp-includes/functions.php on line 493

    WordPress Version:6.0.1​​​​

    PHP:8.0.3

    nginx/1.18.0

    6.0 6.0.1 all have this problem
    5.9.3 is fine

Viewing 2 replies - 1 through 2 (of 2 total)
  • Does the message come every time you call your site or only when you call Site Health? If the latter: try to deactivate all plugins. Maybe one of them sends an incorrect value to the Site Health check which causes the error message.

    My hunch is that the error is because the plugin doesn’t have a value set for $sessions in the report data. One site uses a manually entered UA Code, and another has an expired GA authentication session. Hope this helps detect this case and avoid the PHP Fatal Error!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Uncaught DivisionByZeroError’ is closed to new replies.