1 (edited by a.paysen 2004-10-28 09:13)

Topic: problem with viewforum.php (division by zero)

Hi,

i've got a problem with displaying existing topics.
Always when anybody wants to see the topics they won't
de displayd and at the top of the page is a warning
"Division by zero in ../upload/viewforum.php on line 119"

Can anybody help me?

Kind regards,

Annika

2 (edited by Frank H 2004-10-28 10:10)

Re: problem with viewforum.php (division by zero)

in admin-options  is the default number of topics per page 0?
if not, check the affected persons profiles to see if they have 0 on their topics per page setting.

line 119 does a division:   number of topics / topics per page
so if the displayed topics per page is 0, that will make a div by zero... If I recall correctly ... the default is 25

Re: problem with viewforum.php (division by zero)

It should be noted that you can't set it to 0 in the profile.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: problem with viewforum.php (division by zero)

Thank you...
It was a 0 in the persons profile....