Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
633 views
in Plugins by
Enabled the sitemap plugin, getting the following error added to my error log on server each time the sitemap link is clicked on in the browswer: PHP Warning:  Division by zero in /../../../qa-plugin/xml-sitemap/qa-xml-sitemap.php on line 182

Any ideas?
Q2A version: 1.5

1 Answer

0 votes
by

This happens if all your questions have the same hotness. You can fix it by replacing the following in qa-plugin/xml-sitemap/qa-xml-sitemap.php:

$hotstats['spread']

... with ...

(1+$hotstats['spread'])

This fix will be rolled into the Q2A 1.5.1 release.

...