Print Page | Close Window

Division by zero and forum skin problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21454
Printed Date: 08 April 2026 at 11:31pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Division by zero and forum skin problem
Posted By: mantey
Subject: Division by zero and forum skin problem
Date Posted: 01 October 2006 at 11:16pm

I have some problem. After upgrading to new version of Web wiz forum, I am experiencing a division by zero error:

Microsoft VBScript runtime error '800a000b'

Division by zero

 

Sometimes forum is acting normal and sometimes I get this error.

The problem appears on two pages, forum_topics.asp and forum_posts.asp and it considers this two lines of code:

Forum_topics.asp:

'Count the number of pages for the topics using FIX so that we get the whole number and not any fractions

intTotalRecordsPages = FIX(intTotalRecords / intTopicPerPage)

 

Forum_posts.asp:

'Count the number of pages for the topics using '\' so that any fraction is omitted

intTotalRecordsPages = intTotalRecords \ intThreadsPerPage

 

Is there any way to solve this problem?

 

Also.

Sometimes forum skin just disappears leaving forum without any color and without any image. Only text is displayed, whether formatting is absent. That also doesn't happen always. Sometime it happens and sometime everything is ok. When that problem occurs, than also the above described problem (division by zero) is present. So there is something wrong, but I don't know how to fix it and where to search the cause of the problem (in code, maybe in database; I've tried to do something about it but, unfortunately, without any luck.).




Replies:
Posted By: WebWiz-Bruce
Date Posted: 02 October 2006 at 10:32am
This is very odd, but certainly sounds to me like a server or database problem.

Are you using the database to store sever sessions?
If you are, is this because you are using a server farm or load balanced web servers?


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: mantey
Date Posted: 02 October 2006 at 7:03pm

I have analyzed the whole forum and figured out what was the problem. The problem was in code. To be more exact.

If you change the application variable prefix (in setup_options_inc.asp) to WWF2, then you get the error, described in first post.

I needed to change the cookie prefix because I don't have only one forum on my site. I changed it and that didn't cause any problem. But when I changed the application variable prefix, then the problem occured.

So, there is some issue with this code (in setup_options_inc.asp):

'Set up application variables prefix

'This can be useful if you are running mutiple installations of Web Wiz Forums on the same site or if you are using free web where you share your application object with others

Const strAppPrefix = "WWF"

 

Only when I change WWF to WWF2, the problem occurs, only in that case, If I change it to WWF3 or WWF5 or WWFwhatever, I don't get this error. I don't know, why is that so, I have some thoughts, but I don't know if this is the right reason. But I don't care now, because I've solved the problem.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net