PHP Fatal error: Uncaught DivisionByZeroError
-
Using google-analytics-for-wordpress v8.4.0 I’m setting this fatal error on several sites with WordPress 5.9.1 and php
PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in wp-content/plugins/google-analytics-for-wordpress/includes/admin/notifications/notification-upgrade-eu-traffic.php:43
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Fatal error: Uncaught DivisionByZeroError’ is closed to new replies.