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: MOD Implementation
 Type mismatch errors when replying
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Benji2002
Starting Member

United Kingdom
49 Posts

Posted - 07 February 2003 :  10:36:33  Show Profile  Visit Benji2002's Homepage
I have a forum setup and a new member has just signed up. He can start his own topics, but if he tries to reply to any posts, this message appears in the post

Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: ""]'

/forum/inc_func_common.asp, line 624

Any ideas please?

Edited by - ruirib on 07 February 2003 12:19:47

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 February 2003 :  11:29:00  Show Profile
Have you made any modifications to your files?
What version of the forum are you using?
A link to your forum would be helpful.

Support Snitz Forums
Go to Top of Page

Benji2002
Starting Member

United Kingdom
49 Posts

Posted - 07 February 2003 :  11:34:05  Show Profile  Visit Benji2002's Homepage
Sorry, yes I have modded the forum. Private messages mod, admin tools mod. I am using the most upto date version. I have had to close the forum so can't really show you it. I can send you my inc_func_common.asp file if that helps?

Thanks
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 07 February 2003 :  11:35:48  Show Profile
Looks like a problem with dates. Have you made modificatios to topic.asp, post.asp or post_info.asp

Edited by - GauravBhabu on 07 February 2003 11:38:47
Go to Top of Page

Benji2002
Starting Member

United Kingdom
49 Posts

Posted - 10 February 2003 :  03:34:34  Show Profile  Visit Benji2002's Homepage
I have made a few mods yes. It was a while ago though.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 February 2003 :  03:42:30  Show Profile
Post what is on your line 624 in your inc_func_common.asp file.

Support Snitz Forums
Go to Top of Page

Benji2002
Starting Member

United Kingdom
49 Posts

Posted - 10 February 2003 :  04:23:44  Show Profile  Visit Benji2002's Homepage
ok thanks. here it is

chkDate = Mid(fDate,7,2) & " " & _
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 10 February 2003 :  07:30:45  Show Profile
Make sure you are passing a valid date value as expected by the function chkDate
Go to Top of Page

Benji2002
Starting Member

United Kingdom
49 Posts

Posted - 10 February 2003 :  08:01:13  Show Profile  Visit Benji2002's Homepage
Unfortunately that means nothing to me. I don't know ASP at all!
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 February 2003 :  13:06:28  Show Profile
Try putting Response.Write "date:" & fDate & "<br>" right before that code.
Response.Write "date:" & fDate & "<br>"
chkDate = Mid(fDate,7,2) & " " & _
It should output the date that is being passed to the function. Reproduce the error and copy and paste the date that you see before the error.

Support Snitz Forums
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 February 2003 :  13:08:01  Show Profile
Also a link to a txt version of the file you are getting this error on, would be helpful. I think you said when someone makes a reply, they would get the error? Is that the post.asp or post_info.asp page?

Support Snitz Forums

Edited by - Davio on 10 February 2003 13:08:45
Go to Top of Page

Benji2002
Starting Member

United Kingdom
49 Posts

Posted - 11 February 2003 :  03:41:31  Show Profile  Visit Benji2002's Homepage
Thanks Davio, here's a link to my inc_func_common.asp file (text version) http://www.ormskirkgb.co.uk/inc_func_common.txt That is the file that throws up the error when anyone replies to a post.

Ben

Edited by - Benji2002 on 11 February 2003 03:41:54
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 February 2003 :  07:26:14  Show Profile
Though the error message tells that the error occured at a line within this function, the source of error is at some other place. Add the statement in red as shown in inc_func_common.asp and post what it displays on the page when you try to post the message.

function chkDate(fDate,separator,fTime)
       Response.Write "<BR>fDate: " & fdate & "<BR>
       if fDate = "" or isNull(fDate) then
		if fTime then
			chkTime(fDate)
		end if
		exit function
	end if
	select case strDateType



<edited>
Also post a link to text version of your post.asp. Likely source of the invalid date value passed to the function.
<edited>

Edited by - GauravBhabu on 11 February 2003 07:35:58
Go to Top of Page

Benji2002
Starting Member

United Kingdom
49 Posts

Posted - 11 February 2003 :  07:40:27  Show Profile  Visit Benji2002's Homepage
here's what it says now

date:1

Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: ""]'

/forum/inc_func_common.asp, line 625

Heres a link to post.asp http://www.ormskirkgb.co.uk/post.txt
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 11 February 2003 :  07:43:08  Show Profile
Too many cooks spoil the broth and all that, but I’m still going to add my little say…

There have been numerous occurrences of this error where people have edited topic.asp incorrectly this block of code is normally the problem


rM_NAME = 0
		rM_RECEIVE_EMAIL = 1
		rM_AIM = 2
		rM_ICQ = 3
		rM_MSN = 4
		rM_YAHOO = 5
		rM_TITLE = 6
		rMEMBER_ID = 7
		rM_HOMEPAGE = 8
		rM_LEVEL = 9
		rM_POSTS = 10
		rM_COUNTRY = 11
		rM_Avatar = 12
		rREPLY_ID = 13
		rFORUM_ID = 14
		rR_AUTHOR = 15
		rTOPIC_ID = 16
		rR_MESSAGE = 17
		rR_LAST_EDIT = 18
		rR_LAST_EDITBY = 19
		rR_SIG = 20
		rR_STATUS = 21
		rR_DATE = 22
		if CanShowSignature = 1 then
			rM_SIG = 23
		end if



Do a search for "Type mismatch:", in the Help: MOD Implementation to find many examples of this.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 February 2003 :  07:51:51  Show Profile
post.asp
Lines 1340-1342
Find theses statements
if strRqMethod = "Reply" or _
strRqMethod = "TopicQuote" or _
strRqMethod = "ReplyQuote" then


Add the following statements in red just before the above statements as shown


Call WriteFooter()
Response.end
if strRqMethod = "Reply" or _
strRqMethod = "TopicQuote" or _
strRqMethod = "ReplyQuote" then


Check if you still get the error. This will not be the final solution. Just for testing only

Edited by - GauravBhabu on 11 February 2003 07:53:04
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.7 seconds. Powered By: Snitz Forums 2000 Version 3.4.07