Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Division by zero error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

fdb
Starting Member

7 Posts

Posted - 18 January 2005 :  06:29:51  Show Profile
Hi ,
I have the following error on my forum. Can anybody help me ?
FYI : it runs on a MySql db.

Microsoft VBScript runtime error '800a000b'

Division by zero

/fora/topic.asp, line 348

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 18 January 2005 :  06:32:33  Show Profile
Can you post a link to a *.txt copy of your topic.asp? If not, can you post line 348 along with the few lines that appear above and below it?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

fdb
Starting Member

7 Posts

Posted - 18 January 2005 :  08:08:07  Show Profile
It is the second line that causes the problem.
It looks like that my forum exceeded some limits after running smoothly for 4 years...

I really hope you can help me.
**********************************************

if iPageTotal > 0 then
maxpages = (iPageTotal \ strPageSize )
if iPageTotal mod strPageSize <> 0 then
maxpages = maxpages + 1
end if
if iPageTotal < (strPageSize + 1) then
intGetRows = iPageTotal
elseif (mypage * strPageSize) > iPageTotal then
intGetRows = strPageSize - ((mypage * strPageSize) - iPageTotal)
else
intGetRows = strPageSize
end if
else
iPageTotal = 0
maxpages = 0
end if
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 18 January 2005 :  08:12:10  Show Profile  Visit HuwR's Homepage
you haven't set strPagesize by the look of it, so it thinks it is 0
Go to Top of Page

fdb
Starting Member

7 Posts

Posted - 18 January 2005 :  08:28:18  Show Profile
meaning ?

how can I reset this value ?

Edited by - fdb on 18 January 2005 08:59:11
Go to Top of Page

fdb
Starting Member

7 Posts

Posted - 19 January 2005 :  04:24:06  Show Profile
Does anybody know how I can reset this value ?

fdb
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 19 January 2005 :  05:13:06  Show Profile  Visit HuwR's Homepage
try reloading the variables by using the check installation link in the admin options, and make sure that you have set a value for the number of posts to be displayed.
Go to Top of Page

fdb
Starting Member

7 Posts

Posted - 19 January 2005 :  05:31:59  Show Profile
I increased the numbers and it workd fine !
Thanks a lot.

filippe
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07