Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by
edited by

If you set all the points to zero, you get this error when viewing the user pages:

Warning: Division by zero in /path/qa-include/qa-page-user.php on line 393

Setting the fields "Per up/down vote on your question" and "Per up/down vote on your answer" to over 0 makes it go away.

1 Answer

+1 vote
Best answer

Good catch! Actually this is due to some legacy code that can be completely removed, since it no longer serves any purpose.

You can remove these lines from qa-page-user.php:

$netvotesin=number_format... [long line]
if ($netvotesin>0)

This will of course be fixed in the 1.4 beta.