Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Division by zero and forum skin problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Division by zero and forum skin problem

 Post Reply Post Reply
Author
mantey View Drop Down
Groupie
Groupie
Avatar

Joined: 03 May 2005
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote mantey Quote  Post ReplyReply Direct Link To This Post Topic: Division by zero and forum skin problem
    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.).

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
mantey View Drop Down
Groupie
Groupie
Avatar

Joined: 03 May 2005
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote mantey Quote  Post ReplyReply Direct Link To This Post 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.


Edited by mantey - 05 October 2006 at 4:18am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.