When viewing the SEO Tools dashboard, I get Division by Zero errors on the following lines of seotools.report.inc:
136, 138, 141, 144, 150
I fixed this by changing lines 136 - 150 to the following:
$day_counts['average_pageviews'][] = $row['pageviews'] / $row['visits'] ? $row['visits'] : 1;
$day_counts['bounce_rate'][] = 100 * $row['bounces'] / $row['uniquePageviews'] ? $row['uniquePageviews'] : 1;
$totals['bounces'] += $row['bounces'];
$day_counts['time_on_site'][] = $row['timeOnSite'] / $row['visits'] ? $row['visits'] : 1;
$totals['time_on_site'] += $row['timeOnSite'];
$day_counts['vistor_type'][] = 100 * $row['newVisits'] / $row['visits'] ? $row['visits'] : 1;
$totals['vistor_type'] += $row['newVisits'];
$day_counts['goals'][] = $row['goalCompletionsAll'];
$totals['goals'] += $row['goalCompletionsAll'];
$day_counts['goal_conversion_rate'][] = 100 * $row['goalCompletionsAll'] / $row['visits'] ? $row['visits'] : 1;
Comments
Comment #1
tpainton commentedI am still having this issue.. Now on another website and setup.. I really cannot be the only one over this time period can I? I just downloaded the latest build.. Do I really need to go in and change the lines again? I can't help but think that something must be off if I am the only one doing this editing..
Comment #2
socialnicheguru commentedI just enabled this module, selected the full form for each one of the reports, and get the error at the top of the page
Comment #3
tpainton commentedI think the problem occurs if google has not indexed your site yet. The problem has disappeared now that I have some data appearing in the page.. This should be a simply fix.
Comment #4
technologywon commentedDrupal 6 is no longer supported.