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 active users 4.0
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ez4arab
Junior Member

479 Posts

Posted - 27 May 2002 :  06:24:29  Show Profile  Visit Ez4arab's Homepage
when users try to modify his topic this error appear to me

Microsoft JET Database Engine error '80040e57'

The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

/aljish/inc_functions.asp, line 1735

'##############################################
'## Active Users ##
'##############################################

Sub ActiveUserTracker()
'Ls3k- Declaire and assign variables.
Dim strUserIP, strScriptName, strQueryString, strUserAgent, strCurrentTime, strTimedOut

strUserIP = Request.ServerVariables("REMOTE_ADDR")
strScriptName = Mid(Request.ServerVariables("SCRIPT_NAME"), InstrRev(Request.ServerVariables("SCRIPT_NAME"), "/")+1)
strQueryString = Request.ServerVariables("QUERY_STRING")
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
strCurrentTime = DateToStr(strForumTimeAdjust)

'Ls3k- First Order of business, is this person new?
if MemberID=0 then 'If this is a Guest, check by IP
strSql = "SELECT AU_LASTACTIVETIME FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_IP = '" & Chkstring(strUserIP, "SQLString") & "' AND MEMBER_ID = 0"
else 'If this is a Member, check by Member_ID
strSql = "SELECT AU_LASTACTIVETIME FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID = " & MemberID
end if
set rs = my_conn.execute (strSql)
if rs.EOF or rs.BOF then
strNewUser = 1
else
strNewUser = 0
strAUTimedOut = DateToStr(DateAdd("n",-strAUTimeout,strForumTimeAdjust))
if rs("AU_LASTACTIVETIME") < strAUTimedOut then 'Check to see if user has timed out since last active.
strSql = "DELETE FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID = " & MemberID & " OR (AU_IP = '" & Chkstring(strUserIP, "SQLString") & "' AND MEMBER_ID = 0)"
my_conn.execute (strSql)
strNewUser = 1
end if
end if
rs.close
set rs = Nothing

'Ls3k- Second order of business, lets update those already-active users
if strNewUser = 0 then 'If already-active
strSql = "UPDATE " & strTablePrefix & "ACTIVE_USERS SET " & _
"AU_LASTACTIVETIME='" & Chkstring(strCurrentTime, "SQLString") & "'" & _
", AU_LASTPAGE='" & Chkstring(strScriptName, "SQLString") & "'" & _
", AU_QUERYSTRING='" & Chkstring(strQueryString, "SQLString") & "' "
if MemberID=0 then 'If guest, update based on IP
strSql = strSql & "WHERE AU_IP = '" & Chkstring(strUserIP, "SQLString") & "' " & _
"AND MEMBER_ID = " & MemberID
else 'Update members based on MemberID
strSql = strSql & "WHERE MEMBER_ID = " & MemberID
end if
my_conn.execute (strSql)
else 'Is a new user, make new record
strSql = "INSERT INTO " & strTablePrefix & "ACTIVE_USERS (" & _
"MEMBER_ID, AU_IP, AU_LOGINTIME, AU_LASTACTIVETIME, " & _
"AU_LASTPAGE, AU_QUERYSTRING, AU_USER_AGENT) VALUES(" & _
MemberID & ", " & _
"'" & Chkstring(strUserIP, "SQLString") & "', " & _
"'" & Chkstring(strCurrentTime, "SQLString") & "', " & _
"'" & Chkstring(strCurrentTime, "SQLString") & "', " & _
"'" & Chkstring(strScriptName, "SQLString") & "', " & _
"'" & Chkstring(strQueryString, "SQLString") & "', " & _
"'" & Chkstring(strUserAgent, "SQLString") & "')"
my_conn.execute (strSql)
end if
end sub

the red line is the error.

by the way i have Email Validation Mod setup and there is also erorrs
in file register and i think the error form here

if strAUAnon = "1" then
strSql = strSql & ", '" & ChkString(Request.Form("AUHide"),"") & "'"
else
strSql = strSql & ", '1'"
end if



Nathan
Help Moderator

USA
7664 Posts

Posted - 27 May 2002 :  14:21:02  Show Profile  Visit Nathan's Homepage
Which sub version do you have. 4.0.0N?

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 28 May 2002 :  07:00:37  Show Profile  Visit Ez4arab's Homepage
i have active users 4.7 last one form Snitz Exchange

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 28 May 2002 :  10:11:04  Show Profile  Visit Nathan's Homepage
Just kinda a guess, but open up the DBS file and find these two lines.

AU_QUERYSTRING#text#NULL#
AU_USER_AGENT#text#NULL#

replace "text" with "memo" then run the dbs file again.

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 28 May 2002 :  17:52:09  Show Profile  Visit Ez4arab's Homepage
quote:

Just kinda a guess, but open up the DBS file and find these two lines.

AU_QUERYSTRING#text#NULL#
AU_USER_AGENT#text#NULL#

replace "text" with "memo" then run the dbs file again.



the problem appear for users and moderator not administrtor.

i check the data base i found these as you said.

i change them to
AU_QUERYSTRING#memo#NULL#
AU_USER_AGENT#memo#NULL#

i hope it works fine


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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07