Closed (fixed)
Project:
G̶o̶o̶g̶l̶e̶ A̶n̶a̶l̶y̶t̶i̶c̶s̶ A̶P̶I̶ (obsolete)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Aug 2009 at 08:17 UTC
Updated:
3 Apr 2011 at 16:22 UTC
I get this when viewing nodes:
"warning: Division by zero in /home/vughosting/public_html/drupal6-cluster1/public/sites/rickvug.com/modules/chart/chart.module on line 399."
Note sure yet if this happens 100% of the time or any other factors contribute to the issue. Going to say that this is critical.
Comments
Comment #1
AntiNSA commentedIm recieving exactly the same error. Not to mention analytics is failing to record any data.
Comment #2
AntiNSA commentedtried to install other analytics module to see...
Comment #3
RaRi commentedsubscribe
Comment #4
seutje commentedI believe this is due to chart API module assuming the max value is ALWAYS over 0, which it isn't
-> #594202: Division by zero error
I could easily be wrong though
Comment #5
jkitching commentedRick, do you have any way I can reliably reproduce this bug?
Comment #6
seutje commentedfor me it happens when the bounce rate for a certain page is 0% ... I think
Comment #7
stefan81 commentedsame issue here, in conjunction with chart API, if no Values in charts
Comment #8
j0k3z commentedIm also getting this error, and can confirm it seems to be connected to the bounce rate being zero
Comment #9
alberto56 commentedTo reproduce go to reports/google_analytics_reports.module and temporarily change:
to
Then view a chart of the bounce rate.
I applied #594202: Division by zero error as suggested by seutje in comment number 4, above; and that works.
In my opinion this is a chart problem but I'll let the maintainer confirm that. Thanks,
Albert.
Comment #10
alberto56 commentedchanging the title to be more descriptive
Comment #12
raspberryman commentedThe best direction is to get these patches applied to chart module: http://drupal.org/node/594202
However, I added a little tweak to help avoid this for the time being. I'd like to move away from this solution in the future but it should work for now: http://drupalcode.org/project/google_analytics_api.git/commitdiff/fbe4acc