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
 Error When Doing a Search
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mahvin
Starting Member

48 Posts

Posted - 29 April 2008 :  19:11:53  Show Profile
This happens when archived posts is selected:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'Topic_Replies'

/forum/search.asp, line 755


Line 755 in search.asp looks like:

sub TopicPaging()
mxpages = (Topic_Replies / strPageSize)
if mxPages <> cLng(mxPages) then
mxpages = int(mxpages) + 1
end if

And then a second error occurs when Archived Posts is NOT selected using the same search string:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'Topic_Replies'

/forum/search.asp, line 497


Line 497 in search.asp looks like:

if ModerateAllowed = "Y" and Topic_UReplies > 0 then
Topic_Replies = Topic_Replies + Topic_UReplies
end if

Edited by - mahvin on 29 April 2008 19:23:23

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 April 2008 :  19:21:44  Show Profile  Send ruirib a Yahoo! Message
Installed mods?


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

mahvin
Starting Member

48 Posts

Posted - 29 April 2008 :  19:24:11  Show Profile
Poll MOD, which is working great, BTW... is the most recently installed, but I do have Gatekeeper Antispam and Forum Rules installed as well...

Edited by - mahvin on 29 April 2008 19:28:38
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 April 2008 :  19:31:50  Show Profile  Send ruirib a Yahoo! Message
This does not happen in a base version, so I would suggest that you check the changes made to search.asp. Probably starting with a clean search.asp, testing it, and then add the changes required by the mods, while testing it after each mod addition (though I think only the poll mod requires changes to search.asp).


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

mahvin
Starting Member

48 Posts

Posted - 29 April 2008 :  19:54:38  Show Profile
Fixed!

I guess my exposure to ASP is paying off, I found two instances of the same code in the search.asp. In the "modify line 211" code suggestions, I had entered the required code for the Poll in addition to the code that already existed, so I had two lines of code competing for the same query:

strSql = strSql & ", T.TOPIC_ID, T.T_AUTHOR, T.T_SUBJECT, T.T_STATUS, T.T_LAST_POST, T.T_ISPOLL"
strSql = strSql & ", T.TOPIC_ID, T.T_AUTHOR, T.T_SUBJECT, T.T_STATUS, T.T_LAST_POST"


I removed the second line and now it works just fine.

Edited by - mahvin on 29 April 2008 19:55:55
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 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07