Author |
Topic |
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 19 February 2001 : 23:46:37
|
forum.asp... when reading the forum page... it kicks back an error on line 181
see here http://forum.snitz.com/forum_new/
Reinsnitz (Mike) ><)))'> "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 February 2001 : 04:56:35
|
No idea what's causing this, just tried the latest alpha against 4 different db's and was unable to duplicate the error ?
if you stick a repsonse.write strSQL on line 180, we can see what it's doing wrong
|
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 20 February 2001 : 12:52:23
|
did that... and no go... it still just pops out the error... I think it's one of those funky things that shows the wrong line number for the error... I wonder if it's actualy in one of the includes... gah
Reinsnitz (Mike) ><)))'> "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 February 2001 : 13:01:25
|
it also does it on active.asp, but not on topic.asp
|
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 20 February 2001 : 13:05:10
|
hmmmm..... what gets me is that it works on a new DB
Reinsnitz (Mike) ><)))'> "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
tilttek
Junior Member
Canada
333 Posts |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 February 2001 : 13:31:31
|
is there maybe a field missing then like F_ORDER or something like that
|
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 20 February 2001 : 13:44:34
|
not sure... won't be able to mess with that one till tonight :(
Reinsnitz (Mike) ><)))'> "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 February 2001 : 13:47:59
|
I can take a quick look if you want
|
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 20 February 2001 : 13:55:30
|
sure huw :)
Reinsnitz (Mike) ><)))'> "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 February 2001 : 13:57:04
|
actually, I remeber know what it is.
the queries that use member_1 were re-written by gor because of the way this forum connects to the db.
You need to change them to
in forum.asp
strSql ="SELECT " & strTablePrefix & "TOPICS.T_STATUS, " & strTablePrefix & "TOPICS.CAT_ID, " strSql = strSql & strTablePrefix & "TOPICS.FORUM_ID, " & strTablePrefix & "TOPICS.TOPIC_ID, " strSql = strSql & strTablePrefix & "TOPICS.T_VIEW_COUNT, " & strTablePrefix & "TOPICS.T_SUBJECT, " strSql = strSql & strTablePrefix & "TOPICS.T_MAIL, " & strTablePrefix & "TOPICS.T_AUTHOR, " strSql = strSql & strTablePrefix & "TOPICS.T_REPLIES, " & strTablePrefix & "TOPICS.T_LAST_POST, " strSql = strSql & strTablePrefix & "TOPICS.T_LAST_POST_AUTHOR, " strSql = strSql & strMemberTablePrefix & "MEMBERS.M_NAME, " strSql = strSql "MEMBERS_1.M_NAME AS LAST_POST_AUTHOR_NAME " strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS, " strSql = strSql & strTablePrefix & "TOPICS, " strSql = strSql & strMemberTablePrefix & "MEMBERS AS MEMBERS_1 " strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "TOPICS.T_AUTHOR " strSql = strSql & " AND " & strTablePrefix & "TOPICS.T_LAST_POST_AUTHOR = MEMBERS_1.MEMBER_ID " strSql = strSql & " AND " & strTablePrefix & "TOPICS.FORUM_ID = " & Request.QueryString("FORUM_ID") & " "
and in active.asp
'## Forum_SQL - Get all active topics from last visit strSql = "SELECT " & strTablePrefix & "FORUM.F_SUBJECT, " strSql = strSql & strTablePrefix & "TOPICS.T_STATUS, " strSql = strSql & strTablePrefix & "TOPICS.T_VIEW_COUNT, " strSql = strSql & strTablePrefix & "TOPICS.FORUM_ID, " strSql = strSql & strTablePrefix & "TOPICS.TOPIC_ID, " strSql = strSql & strTablePrefix & "TOPICS.CAT_ID, " strSql = strSql & strTablePrefix & "TOPICS.T_SUBJECT, " strSql = strSql & strTablePrefix & "TOPICS.T_MAIL, " strSql = strSql & strTablePrefix & "TOPICS.T_AUTHOR, " strSql = strSql & strTablePrefix & "TOPICS.T_REPLIES, " strSql = strSql & strMemberTablePrefix & "MEMBERS.M_NAME, " strSql = strSql & strTablePrefix & "TOPICS.T_LAST_POST_AUTHOR, " strSql = strSql & strTablePrefix & "TOPICS.T_LAST_POST, " strSql = strSql & "MEMBERS_1.M_NAME AS LAST_POST_AUTHOR_NAME " strSql = strSql & "FROM " & strMemberTablePrefix & "MEMBERS, " strSql = strSql & strTablePrefix & "FORUM, " strSql = strSql & strTablePrefix & "TOPICS, " strSql = strSql & strMemberTablePrefix & "MEMBERS AS MEMBERS_1 " strSql = strSql & "WHERE " & strTablePrefix & "TOPICS.T_LAST_POST_AUTHOR = MEMBERS_1.MEMBER_ID " strSql = strSql & "AND " & strTablePrefix & "FORUM.FORUM_ID = " & strTablePrefix & "TOPICS.FORUM_ID " strSql = strSql & "AND " & strTablePrefix & "FORUM.CAT_ID = " & strTablePrefix & "TOPICS.CAT_ID " strSql = strSql & "AND " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strTablePrefix & "TOPICS.T_AUTHOR " strSql = strSql & "AND " & strTablePrefix & "TOPICS.T_LAST_POST > '" & lastDate & "'" strSql = strSql & " ORDER BY " & strTablePrefix & "TOPICS.FORUM_ID, " & strTablePrefix & "TOPICS.T_LAST_POST DESC;"
basically MEMBERS_1 should no be referenced by strMemberTablePrefix since it is a alias and not a table
|
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 20 February 2001 : 14:12:52
|
Huw, if your in a position to upload that change to the /forum_new/ please feel free to test :) again, I won't be in a position to do this for another six hours
Thanks!
Reinsnitz (Mike) ><)))'> "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 February 2001 : 14:14:40
|
I don't think I am, all the info gor gave me was in a yahoo window, and I didn't save it
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 February 2001 : 15:27:45
|
Fixed in the source
|
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 20 February 2001 : 21:10:46
|
fixed in the source of sf2k_31sr5a8.zip
Reinsnitz (Mike) ><)))'> "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
|
Topic |
|