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
 Active Users - strange error...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 18 February 2009 :  17:03:56  Show Profile  Visit MarcelG's Homepage
I'm seeing this error on my active users page:
quote:
Microsoft OLE DB Provider for SQL Server error '80040e14'

The column prefix 'robots' does not match with a table name or alias name used in the query.

/active_users.asp, line 733

The entry where it breaks has the following AU_QUERYSTRING stored in the db:
member=24/robots.txt

I'm not quite seeing why this would break the SQL query...and more importantly I have no idea how to fix this.
Any ideas?<

portfolio - linkshrinker - oxle - twitter

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 February 2009 :  17:12:15  Show Profile  Send ruirib a Yahoo! Message
What goes on line 733?<


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

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 18 February 2009 :  17:18:57  Show Profile  Visit MarcelG's Homepage
Sorry, forgot to mention that....
Here it is ; it's part of the "case logfeed.asp" (my blogs).
case "logfeed.asp"
      strQuery = fQuery
      fTopic_ID = analyzeQuery(strQuery, "LOG_ID")
      'fTopic_ID = analyzeQuery(strQuery, "MEMBER_ID")
      fTopic_ID=replace(fTopic_ID,"=","")
      if fTopic_ID = "" then
        strPage = "Weblogs"
      else
	    strQuery = fQuery
        if lcase(analyzeQuery(strQuery, "ARCHIVE")) = "true" then
          strSql = "SELECT FORUM_ID, TOPIC_ID, T_SUBJECT FROM " & strTablePrefix & "A_TOPICS WHERE TOPIC_ID=" & fTopic_ID
        else
          strSql = "SELECT FORUM_ID, TOPIC_ID, T_SUBJECT FROM " & strTablePrefix & "TOPICS WHERE TOPIC_ID=" & fTopic_ID
        end if
        set rst = my_conn.execute(strSql)
        if rst.EOF or rst.BOF then
          strPage = fLang(strLangMOD_Ls3kAU_01270) 
        else
          fSubject = rst("T_SUBJECT")
          fForum_ID = rst("FORUM_ID")
          rst.close
          set rst = nothing
          if chkForumAccess(fForum_ID, MemberID, false) then
            strQuery = fQuery
			if lcase(analyzeQuery(strQuery, "ARCHIVE")) = "true" then
              strPage = "Viewing weblog<br><a href=""logfeed.asp?" & fQuery & """>"
            else
              strPage = "Viewing weblog<br><a href=""logfeed.asp?" & fQuery & """>"
            end if
            strPage = strPage & fSubject
          else
            strOnlineLocation = fLang(strLangMOD_Ls3kAU_01330)
          end if
        end if
      end if

Line 733 is highlighted in red.<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 18 February 2009 :  17:53:52  Show Profile  Send ruirib a Yahoo! Message
I guess the problem may lie in the determination of the topic_ID part. Probably that extraction part is not working for an entry like the one you have.<


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

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 18 February 2009 :  20:34:49  Show Profile
Try eliminating the extraneous stuff from the strQuery. Maybe something like this:
case "logfeed.asp"
      strQuery = fQuery
      if isNumeric(analyzeQuery(strQuery, "LOG_ID")) then
            fTopic_ID = cInt(analyzeQuery(strQuery, "LOG_ID"))
      else
            fTopic_ID=""
      end if
      'fTopic_ID = analyzeQuery(strQuery, "MEMBER_ID")
<
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 19 February 2009 :  04:40:21  Show Profile  Visit MarcelG's Homepage
Thanks for the hints. I'll try to sort it out later today.<

portfolio - linkshrinker - oxle - twitter
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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07