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)
 Error in Forum.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

cyberd
Starting Member

Australia
34 Posts

Posted - 19 April 2001 :  09:15:42  Show Profile  Visit cyberd's Homepage
I get this message when adding a topis to a new Forum I created.

Microsoft VBScript runtime error '800a005e'

Invalid use of Null: 'cint'

/forum/forum.asp, line 487



URL = http://www.cyberd.nq.nu/forum/forum.asp?FORUM_ID=8&CAT_ID=2&Forum_Title=Innisfail Discussion Forums

Any Suggestions

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 19 April 2001 :  10:27:16  Show Profile  Send RaiderUK a Yahoo! Message
what does forum.asp, line 487 read?

Go to Top of Page

cyberd
Starting Member

Australia
34 Posts

Posted - 21 April 2001 :  08:37:41  Show Profile  Visit cyberd's Homepage
quote:

what does forum.asp, line 487 read?





if mxPages <> cint(mxPages) then

Go to Top of Page

cyberd
Starting Member

Australia
34 Posts

Posted - 21 April 2001 :  08:42:11  Show Profile  Visit cyberd's Homepage
quote:

what does forum.asp, line 487 read?




I have changed the cint to int, this seems to have fixed it, can anyone say if this will generate problems elsewhere, or if other problems may exist.

The only change I have made that may have caused this is to use an sql2000 connection string on my sql7 database, to allow me to use classifieds mod...





Edited by - cyberd on 22 April 2001 19:39:22
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 21 April 2001 :  08:50:18  Show Profile  Visit HuwR's Homepage
quote:

quote:

what does forum.asp, line 487 read?




I have changed the cint to int, can amyone say if this will generate problems elsewhere, or if other problems may exist.

The only change I have made that may have caused this is to use an sql2000 connection string on my sql7 database, to allow me to use classifieds mod...





Leave it as cint, the problem is with your database. Check your forum_topics table the field T_REPLIES should have a default value of 0, yours appears to have NULL in the column where it shouldn't.

What database are you using ?

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 21 April 2001 :  10:09:04  Show Profile  Visit HuwR's Homepage
Could you please post a reply rather than editing your previous, it is a bit confusing.

quote:

The only change I have made that may have caused this is to use an sql2000 connection string on my sql7 database, to allow me to use classifieds mod...



Do you mean Access, there is no difference between a SQL 2000 and SQL 7 connection

Go to Top of Page

cyberd
Starting Member

Australia
34 Posts

Posted - 22 April 2001 :  19:27:30  Show Profile  Visit cyberd's Homepage
No, it is an sql 7 Database. I am using an SQLOLEDB connection string to allow classifieds to work.

As to the default value of zero, no that was not set in the tabole design.

sql 7 database setup, and I'm not totally familiar with sql create strings, but there does not seem to be any default value set in the t_replies field. !!

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 22 April 2001 :  19:30:49  Show Profile  Visit HuwR's Homepage
if you do not have default values set for these fielsd, how did you create the SQL DB?

setup.asp assigns a default of 0 to T_REPLIES

Go to Top of Page

cyberd
Starting Member

Australia
34 Posts

Posted - 22 April 2001 :  19:37:14  Show Profile  Visit cyberd's Homepage
I have also noticed that when I create a new forum, it defaults to a locked status.

I looked at the table and the value for status was null.

I have changed the default value to 1 so it doesn't happen again.

This has nothing to do with the different connection string as I have tried both.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 22 April 2001 :  19:46:23  Show Profile  Visit HuwR's Homepage
quote:

if you do not have default values set for these fielsd, how did you create the SQL DB?

setup.asp assigns a default of 0 to T_REPLIES





If you did not create your db using setup.asp, you will have many other default values missing

Go to Top of Page

cyberd
Starting Member

Australia
34 Posts

Posted - 23 April 2001 :  00:50:46  Show Profile  Visit cyberd's Homepage
The DB was setup using the setup.asp.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 23 April 2001 :  00:57:43  Show Profile  Visit HuwR's Homepage
Very strange, could you post your connection string, leave out passwords etc, and were you using the same connstr when you ran setup.asp

Go to Top of Page

cyberd
Starting Member

Australia
34 Posts

Posted - 23 April 2001 :  01:27:40  Show Profile  Visit cyberd's Homepage
OK. I reran the setup.asp, and it has added in many more default values.

I'm just going to redo it. I don't know what caused it, but at least I have a definate cause for these problems. Thanks for your help.

Go to Top of Page

cyberd
Starting Member

Australia
34 Posts

Posted - 23 April 2001 :  06:00:57  Show Profile  Visit cyberd's Homepage
By the way, that new connection string was

strConnString = "Provider=SQLOLEDB;Data Source=(Local);Initial Catalog=db1;User ID=user;Password=password" '##MS Sql Server 7 - or - 2000 it seems

As opposed to the original
'strConnString = "driver={SQL Server};server=MATRIX;uid=user;pwd=password;database=db1" '## MS SQL Server 7

Go to Top of Page

Dan03
Starting Member

Australia
17 Posts

Posted - 26 May 2001 :  07:01:22  Show Profile  Send Dan03 an AOL message  Send Dan03 an ICQ Message
Ok. I'm having the same problem, except I'm attempting to set up multiple forums on the same database, with the same users.

I don't have Microsoft Access, so my method of copying the tables hasn't worked. I ran setup.asp, and that seemed to have no effect at all.

Do I have to use MS Access? Or is there an alternate solution??
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 2.03 seconds. Powered By: Snitz Forums 2000 Version 3.4.07