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
 Bug found
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ch_chia
Starting Member

17 Posts

Posted - 24 April 2001 :  03:02:55  Show Profile
Microsoft JET Database Engine (0x80040E57)
The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.
/forum/inc_top.asp, line 248

I had tranform the Snitz Forum 3.2a6 to Simplified Chinese, but when i want to reply a topic with subject more than 10 boublebyte character then it wil show out the above error, please help!
my site is
http://expert.mygamesite.net/forum

p/s: there is no error if i want to edit the message!

Edited by - ch_chia on 24 April 2001 03:05:36

Moved by Richard from DEV Bug Reports (Open)

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 April 2001 :  03:18:36  Show Profile
What do you have on your line #248? (and about 10 lines above it too)
Go to Top of Page

ch_chia
Starting Member

17 Posts

Posted - 24 April 2001 :  03:34:21  Show Profile
' SET WHEN TO TIMEOUT THE USER
' DO THIS IN SECONDS
strOnlineDate = DateToStr(Date)
strOnlineCheckInTime = DateToStr(Now())

strOnlineTimedOut = strOnlineCheckInTime - 60 'time out the user after 1 minutes ( 60 seconds )

Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = strConnString
objConn.Open

strSql = "SELECT " & strTablePrefix & "ONLINE.UserID, " & strTablePrefix & "ONLINE.UserIP, " & strTablePrefix & "ONLINE.LastChecked"
strSql = strSql & " FROM " & strTablePrefix & "ONLINE "
strSql = strSql & " WHERE " & strTablePrefix & "ONLINE.UserIP='" & strOnlineUserIP & "' AND " & strTablePrefix & "ONLINE.UserID='" & strOnlineUser & "'"
set rsWho = my_Conn.Execute (strSql)

if rsWho.eof or rsWho.bof then
' THEY ARE A NEW USER SO INSERT THERE USERNAME
on error resume next
Set objRS2 = Server.CreateObject("ADODB.Recordset")
strSQL = "INSERT INTO " & strTablePrefix & "ONLINE (UserID,UserIP,DateCreated,CheckedIn,LastChecked,M_BROWSE) VALUES ('"
strSql = strSQL & strOnlineUser & "','" & strOnlineUserIP & "','" & strOnlineDate & "','" & strOnlineCheckInTime & "','" & strOnlineCheckInTime & "','" & strOnlineLocation & "')"
my_Conn.Execute (strSql)
if err.number <> 0 then response.write err.number & "|" & err.description
else
' THEY ARE A ACTIVE USER
strSql = "SELECT " & strTablePrefix & "ONLINE.UserID, " & strTablePrefix & "ONLINE.UserIP, " & strTablePrefix & "ONLINE.LastChecked"
strSql = strSql & " FROM " & strTablePrefix & "ONLINE "
strSql = strSql & " WHERE " & strTablePrefix & "ONLINE.UserID='" & strOnlineUser & "' AND " & strTablePrefix & "ONLINE.UserIP = '" & strOnlineUserIP & "'"
set rsLastChecked = my_Conn.Execute (strSql)

' LETS UPDATE THE TABLE SO IT SHOWS THERE LAST ACTIVE VISIT
strSql = "UPDATE " & strTablePrefix & "ONLINE SET M_BROWSE='" & strOnlineLocation & "' , LastChecked='" & strOnlineCheckInTime & "' WHERE UserID='" & strOnlineUser & "' AND " & strTablePrefix & "ONLINE.UserIP='" & strOnlineUserIP & "'"
my_Conn.Execute (strSql) <--Line 248
end if

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 24 April 2001 :  03:36:44  Show Profile  Visit HuwR's Homepage
you need to increase the size of the M_BROWSE field in the forum_online table.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 April 2001 :  03:43:46  Show Profile
I moved your post here because it's not a bug with the Forum, but a bug with a MOD that you added to the forum.
Go to Top of Page

ch_chia
Starting Member

17 Posts

Posted - 24 April 2001 :  03:47:54  Show Profile
the maximun field size is only 255, i still having problem for this, but i wonder why there is no problem when i want to edit the message? this problem only happend when i want to reply, maybe we can make the "reply" call the database just like what "edit" do!?
please help!

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 April 2001 :  03:48:28  Show Profile
just change that field to a MEMO field.
Go to Top of Page

ch_chia
Starting Member

17 Posts

Posted - 24 April 2001 :  03:57:35  Show Profile
Thanks! I fixed it now!

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 April 2001 :  04:01:17  Show Profile
you're welcome.
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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07