Author |
Topic  |
Benji2002
Starting Member
United Kingdom
49 Posts |
Posted - 07 February 2003 : 10:36:33
|
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
|
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
|
 |
|
Benji2002
Starting Member
United Kingdom
49 Posts |
Posted - 07 February 2003 : 11:34:05
|
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 |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 07 February 2003 : 11:35:48
|
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 |
 |
|
Benji2002
Starting Member
United Kingdom
49 Posts |
Posted - 10 February 2003 : 03:34:34
|
I have made a few mods yes. It was a while ago though. |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 10 February 2003 : 03:42:30
|
Post what is on your line 624 in your inc_func_common.asp file. |
Support Snitz Forums
|
 |
|
Benji2002
Starting Member
United Kingdom
49 Posts |
Posted - 10 February 2003 : 04:23:44
|
ok thanks. here it is
chkDate = Mid(fDate,7,2) & " " & _ |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 10 February 2003 : 07:30:45
|
Make sure you are passing a valid date value as expected by the function chkDate |
 |
|
Benji2002
Starting Member
United Kingdom
49 Posts |
Posted - 10 February 2003 : 08:01:13
|
Unfortunately that means nothing to me. I don't know ASP at all! |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 10 February 2003 : 13:06:28
|
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
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 10 February 2003 : 13:08:01
|
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 |
 |
|
Benji2002
Starting Member
United Kingdom
49 Posts |
Posted - 11 February 2003 : 03:41:31
|
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 |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 February 2003 : 07:26:14
|
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 |
 |
|
Benji2002
Starting Member
United Kingdom
49 Posts |
Posted - 11 February 2003 : 07:40:27
|
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
|
 |
|
Hamlin
Advanced Member
    
United Kingdom
2386 Posts |
Posted - 11 February 2003 : 07:43:08
|
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. |
 |
|
GauravBhabu
Advanced Member
    
4288 Posts |
Posted - 11 February 2003 : 07:51:51
|
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 |
 |
|
Topic  |
|