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 / Classic ASP versions(v3.4.XX)
 type mismatch: default.asp line 412
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rahanini
Starting Member

35 Posts

Posted - 16 September 2002 :  23:09:58  Show Profile  Send Rahanini an AOL message
hi im gettin this error when trying to access my forum. I am not sure what is going on. line 412 of default.asp reads:

line 412: if CatID = allForumData(fCAT_ID, iForumCheck) then bContainsForum = True

help would be appreciated. I am running snitz 3.4.01

thank you.

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 16 September 2002 :  23:18:14  Show Profile
this was fixed in v3.4.02, v3.4.03 was released yesterday.
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 19 September 2002 :  19:37:50  Show Profile  Send Rahanini an AOL message
this problem is still occuring...what does it mean?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 September 2002 :  19:40:41  Show Profile
have you upgraded to v3.4.02 or v3.4.03 ? (replacing your default.asp file)
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 19 September 2002 :  19:51:01  Show Profile  Send Rahanini an AOL message
i have upgraded to 3.4.03

thank you for the prompt reply. I am also running this with Oracle and have been working on moving things over. Things are going smoothly except when there is nothing in the tables i dont get the following error...however...when there is something in the table i get the error. I have declared Cat_id in forum_forum as a number. from 3.4.01 to 3.4.03 were there any types in the database changed?

I am real confused as to why this might be occuring, as I Dont understand the error. What does this do?

default.asp(244): allForumData = rsForum.GetRows(adGetRowsRest)

thanks!


Edited by - Rahanini on 19 September 2002 19:52:23
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 September 2002 :  19:57:48  Show Profile
I am not at all familiar with Oracle. I don't even know of Oracle supports GetRows.

Line 244 gets all of the data specified in the query and loads it into an array. That is how GetRows works. It gets all of the data from the query at once, so you can close the connection sooner.
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 19 September 2002 :  20:09:03  Show Profile  Send Rahanini an AOL message
when I put an On Error Resume Next...the whole default.asp page loads but...the tables are not being drawn properly. All the data values are there from the database...but the columns are wrong sizes and dont line up. the last column heading "Moderators" is cut short and there is a big black box after the moderators column.directly below the black box is the last post column contents...but the last post header is shifted to the left.


so getrows is an asp function. so i should check if oracle supports it and if it doesnt what the equivalent is. But thats strange because the data from the oracle database comes back properly and is displayed in the correct columns...



Edited by - Rahanini on 19 September 2002 20:11:22
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 19 September 2002 :  20:09:46  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by RichardKinser

I am not at all familiar with Oracle. I don't even know of Oracle supports GetRows.


Hmm.. this is an ADO feature, so it should work with Oracle (in fact it should be database independent).


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 19 September 2002 :  20:15:47  Show Profile  Send Rahanini an AOL message
ok then it is supported then...hmm...

the data mismatch error was comming in several places on the page...i just put the on error resume next and it loaded up. the other places they were comming up was in the statements :

if ModerateAllowed = "Y" and ForumTopicUReplies > 0 then...

and in...

intPostCount = intPostCount + ForumCount
intTopicCount = intTopicCount + ForumTopics
intForumCount = intForumCount + 1

and anywhere else the above variables were...again there werent that many. But what i dont get is that when you declare something like intpostcount...its just declared in vbscript as dim...so why is there a datatype mismatch?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 19 September 2002 :  20:16:53  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by Rahanini


so getrows is an asp function. so i should check if oracle supports it and if it doesnt what the equivalent is. But thats strange because the data from the oracle database comes back properly and is displayed in the correct columns...


This is an ADO method. I don't think it depends on the provider. I can't be sure about this, though.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 19 September 2002 :  20:20:11  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by Rahanini

ok then it is supported then...hmm...

the data mismatch error was comming in several places on the page...i just put the on error resume next and it loaded up. the other places they were comming up was in the statements :

if ModerateAllowed = "Y" and ForumTopicUReplies > 0 then...

and in...

intPostCount = intPostCount + ForumCount
intTopicCount = intTopicCount + ForumTopics
intForumCount = intForumCount + 1

and anywhere else the above variables were...again there werent that many. But what i dont get is that when you declare something like intpostcount...its just declared in vbscript as dim...so why is there a datatype mismatch?



Sometimes there are problems mixing string and numeric types. I've also found that comparing strings using '=' sometimes gives errors. Could never understand why though, since it seems to work well other times. Anyway because of this I always use strComp() to compare strings.


Snitz 3.4 Readme | Like the support? Support Snitz too
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 1.61 seconds. Powered By: Snitz Forums 2000 Version 3.4.07