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"
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
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.
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.
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.
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.