Author |
Topic |
Supertacks
Starting Member
31 Posts |
Posted - 16 November 2008 : 21:50:43
|
After years of rolling out Snitz forums in all colors shapes and sizes I have finally experienced a problem that I have no idea where to start on.
Since there are many on here smarter than I, I am hoping someone can peek at this and say . . . dude, you need to (insert remediation here)
The forums is at http://www.tbbwb.com/forums/
Just click on a forum and hit "New Topic"
The forum has the Gatekeeper Anti Spam installed.
Thanks in advance for any tips or direction anyone can offer.
< |
|
Soar
Junior Member
USA
197 Posts |
Posted - 16 November 2008 : 22:09:17
|
Might want to post up a txt copy of your post.asp file.< |
|
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 16 November 2008 : 22:54:47
|
You are missing something that could be missing anywhere from inc_header.asp to post.asp and in between. So, no clue without knowing what you did last and what you have done in the past.< |
|
|
gary b
Junior Member
USA
267 Posts |
Posted - 17 November 2008 : 20:34:27
|
quote: Originally posted by Soar
Might want to post up a txt copy of your post.asp file.
Error message states: /forums/post.asp, line 568
You may want to make your post.asp code available as Soar suggests. The error implies that an 'End If' was encountered with no matching IF statement.< |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 18 November 2008 : 04:17:34
|
More than likely you've got an errant &_ on the line preceding the end if.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 18 November 2008 : 07:41:24
|
I think Shaggy has the right of it. That's a common error when adding mods.< |
|
|
pwhitehurst
Starting Member
United Kingdom
18 Posts |
Posted - 18 November 2008 : 11:13:59
|
The code I have in my (working) 3.4.06 forum for post.asp around line 568 is (with line 568 highlighted in red). What code do you have around 568?
'## Forum_SQL strSql = "SELECT CAT_ID, CAT_NAME " strSql = strSql & " FROM " & strTablePrefix & "CATEGORY " if mlev = 3 then strSql = strSql & " WHERE CAT_ID = " & strRqCatID end if strSql = strSql & " ORDER BY CAT_ORDER, CAT_NAME ASC;"
set rsCat = Server.CreateObject("ADODB.Recordset") rsCat.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText
if rsCat.EOF then recCatCount = "" else allCatData = rsCat.GetRows(adGetRowsRest) recCatCount = UBound(allCatData,2) end if
rsCat.close set rsCat = nothing< |
Edited by - pwhitehurst on 18 November 2008 11:17:04 |
|
|
Supertacks
Starting Member
31 Posts |
Posted - 18 November 2008 : 17:59:55
|
Thanks for the response so far. This is basically a clean install with the Gatekeeper mod. It worked for a week or two and a few folks registered. there were topics that I cleaned out so we could launch and strat fresh. Here is the code aroud the line with the error with 568 highlighted.
strDefaultFontSize & """><b>Antispam question:</b></font></td>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """ valign=""top"">" & strGatekeeperQuestion & "</td>" & vbNewLine & _ " </tr>" & vbNewLine & _ " <tr>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Answer:</b></font></td>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """ valign=""top""><input name=""GateKeeperAnswer"" size=""25"" type=""text"" value=""" & Request.Form("GateKeeperAnswer") & """></td>" & vbNewLine & _ " </tr>" & vbNewLine end if 'GateKeeper Mod end if end if
if strAllowForumCode = "1" and strShowFormatButtons = "1" then if strRqMethod = "Edit" or strRqMethod = "EditTopic" or _ strRqMethod = "Reply" or strRqMethod = "ReplyQuote" or _ strRqMethod = "Topic" or strRqMethod = "TopicQuote" then %> <!--#INCLUDE FILE="inc_post_buttons.asp" --> <% end if end if if strRqMethod = "Forum" or _ strRqMethod = "URL" or _ strRqMethod = "EditURL" or _ strRqMethod = "EditForum" then< |
|
|
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 18 November 2008 : 18:48:28
|
have u tryed deleting that highlighted end if? i mean without looking at your complete file cannout diagnose where it is specificly, but more than likly u need to remove that highlighted end if.
its probly just a copy/paste issue maybe u can conpare that bit of code with a working foum that u have r they meant to be 3 end if there?< |
© 1999-2010 MaD2ko0l |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Supertacks
Starting Member
31 Posts |
Posted - 18 November 2008 : 21:03:19
|
O.K.Lets try this. The text file is at:
http://www.tbbwb.com/forums/post.txt
Thh thing I don't understand is that is was working and I made no mods to it at all.
Hopefully this text post helps.
Thanks again.< |
|
|
Soar
Junior Member
USA
197 Posts |
Posted - 18 November 2008 : 23:23:33
|
Looks like you have an extra "end if". Try deleting the one in red, below, which is on line 565 in your post.asp file.
Response.Write " <tr>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Antispam question:</b></font></td>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """ valign=""top"">" & strGatekeeperQuestion & "</td>" & vbNewLine & _ " </tr>" & vbNewLine & _ " <tr>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Answer:</b></font></td>" & vbNewLine & _ " <td bgColor=""" & strPopUpTableColor & """ valign=""top""><input name=""GateKeeperAnswer"" size=""25"" type=""text"" value=""" & Request.Form("GateKeeperAnswer") & """></td>" & vbNewLine & _ " </tr>" & vbNewLine end if 'GateKeeper Mod end if end if < |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 19 November 2008 : 03:19:57
|
It doesn't really matter which of the three "end if" statements is deleted since they all follow one-another. One is indeed an extra.< |
|
|
Supertacks
Starting Member
31 Posts |
Posted - 20 November 2008 : 15:52:05
|
O.K. That got rid of that error but now when any user attempts to post they get an error stating they have not answered the anispam question.
I registered a new account and tried it to ensure it wasn't a legacy account and got the same results.< |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
Supertacks
Starting Member
31 Posts |
Posted - 20 November 2008 : 16:21:14
|
I apologize for not following you. Some posts above mention that there is an extra end if. I removed the one suggested by "Soar" and get the results that are curretnly in production.
Current post.asp is here http://www.tbbwb.com/forums/post.txt< |
|
|
Topic |
|