GeoDirectory SupportGoogle Analytics Division by Zero – GeoDirectory Support https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/feed Sun, 08 Feb 2026 17:26:23 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10174 <![CDATA[Google Analytics Division by Zero]]> https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10174 Mon, 28 Jul 2014 23:36:26 +0000 identity Looking at one of my test listings, noticed that the Google Analytics stats came back with a system error message:

Warning: Division by zero in /home/example/public_html/c/wp-content/plugins/geodirectory/geodirectory-functions/google_analytics.php on line 61
Google Analytics (Last 30 Days)
Total pageviews: 1
Unique visitors: 1
Average time on page: 0:00:00

Cheers,
Brian

]]>
https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10192 <![CDATA[Reply To: Google Analytics Division by Zero]]> https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10192 Tue, 29 Jul 2014 10:19:21 +0000 Guust I had a look at one of my sites, that runs all the latest GD and GDF, and I don’t get any errors at all. I attach 2 pics to show?

]]>
https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10256 <![CDATA[Reply To: Google Analytics Division by Zero]]> https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10256 Tue, 29 Jul 2014 20:18:44 +0000 Paolo To avoid getting such warning, you should turn debug off or only log them and avoid to print them on screen.

Being that a warning and not an error, it will not prevent your website from working correctly.

Thx

]]>
https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10259 <![CDATA[Reply To: Google Analytics Division by Zero]]> https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10259 Tue, 29 Jul 2014 20:46:39 +0000 identity Paolo,

Thanks. I don’t think so, but is there a setting for that in GD I’m missing?

Otherwise, I’m assuming it is a php.ini setting, but to my knowledge, all of those warnings/errors are most likely turned off already.

Cheers,
Brian

]]>
https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10260 <![CDATA[Reply To: Google Analytics Division by Zero]]> https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10260 Tue, 29 Jul 2014 20:49:53 +0000 Paolo Hi Brian,

please try adding this to the top of your child theme functions.php after the opening php tag


error_reporting(E_ERROR);

It should stop that.

Let me know,

]]>
https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10264 <![CDATA[Reply To: Google Analytics Division by Zero]]> https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10264 Tue, 29 Jul 2014 21:04:52 +0000 identity Thanks. Added, though at the moment, not seeing the error anyway. Tried viewing a few more listings that had not stats yet, so will see if it pops up again tomorrow or not.

It might be an edge case anyway.

Cheers,
Brian

]]>
https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10267 <![CDATA[Reply To: Google Analytics Division by Zero]]> https://wpgeodirectory.com/support/topic/google-analytics-division-by-zero/#post-10267 Tue, 29 Jul 2014 21:07:12 +0000 Paolo Cool, let us know! 🙂

]]>