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 / Current Version (Old)
 Forum Breakdown!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sandstream71
New Member

Sweden
94 Posts

Posted - 25 July 2001 :  15:15:56  Show Profile  Visit sandstream71's Homepage
My Snitz Forum have been running without problems for about 6 months and I have not touched it!. Today the Forum looked like it could not get the FORUM_CONFIG-table and the default settings. When trying to enter a forum the following message appears:
"Microsoft VBScript runtime error '800a000b'
Division by zero
/forum/forum.asp, line 156"

Line 156 is in a specific MySQL block of code.

Can any one help?

See: http://www.minhembio.com/forum/index.htm

GauravBhabu
Advanced Member

4288 Posts

Posted - 25 July 2001 :  15:49:45  Show Profile
This is happening most likely because the strPagesize is not getting populated. That is causing division by zero error. Go to admin section and in feature configuration check the values for items per page

Checkout forumSquare


gauravbhabu

There is only one miracle...That is LIFE!

Edited by - gauravbhabu on 25 July 2001 15:51:47
Go to Top of Page

sandstream71
New Member

Sweden
94 Posts

Posted - 25 July 2001 :  16:05:23  Show Profile  Visit sandstream71's Homepage
That's right. I did a response.write on strPageSize and it was = null. The value is taken from the FORUM_CONFIG table along with all other values that is missing in my forum right now. The field C_STRPAGESIZE = 15 in the table.

Got any ideas?


Edited by - sandstream71 on 25 July 2001 16:42:43
Go to Top of Page

sandstream71
New Member

Sweden
94 Posts

Posted - 25 July 2001 :  17:08:48  Show Profile  Visit sandstream71's Homepage
I've now found that the problem is in config.asp where the defaultvalues are taken from FORUM_CONFIG. There is this if-statment:
"if Application(strCookieURL & "ConfigLoaded")= "" or IsNull(Application(strCookieURL & "ConfigLoaded")) or blnSetup="Y" then"

I don't get into the if-statment and there fore the values are taken from Application(strCookieURL & "strPageSize") and not from the DB.

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 25 July 2001 :  18:56:08  Show Profile
quote:
I don't get into the if-statment and there fore the values are taken from Application(strCookieURL & "strPageSize") and not from the DB.

This is the normal behaviour except for the first time the forum application is accessed after a web server restart.

There is a way to force the application data to be reloaded, I think it's by running setup.asp?rc=5 but I hope someone more familiar with the code will verify this.

======
Doug G
======
Go to Top of Page

sandstream71
New Member

Sweden
94 Posts

Posted - 26 July 2001 :  05:35:34  Show Profile  Visit sandstream71's Homepage
I did a special version of config.asp and added this code before the if-statement: 'Application(strCookieURL & "ConfigLoaded")= ""'
After that everything has worked just fine and I suspect that my ISP did the restart in some strange way.

Thanks Doug G & GauravBhabu!

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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07