Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (Jake, id242, SD, gliderdad), 32 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/24/07
Posts: 171
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#218221 - 10/20/08 06:09 PM [FIXED for 7.4.1] Data too long for column 'ONLINE_AGENT'
MacW Offline
newbie
Registered: 09/26/04
Posts: 35
Hi,

this error message is reported frequently now. How to deal with this?

UBB Message
We encountered a problem. The reason reported was
Script: D:\blahblah\ubb\libs\html.inc.php
Line#: 400
SQL Error: Data too long for column 'ONLINE_AGENT' at row 1
SQL Error #: 1406
Query: REPLACE INTO ubbt_ONLINE (USER_ID,ONLINE_DISPLAY_NAME,ONLINE_LAST_ACTIVITY,ONLINE_SCRIPT_NAME,ONLINE_BROWSING_FORUM,ONLINE_USER_TYPE,ONLINE_USER_IP,ONLINE_REFERER,ONLINE_AGENT,ONLINE_POST_ID,ONLINE_POST_SUBJECT) VALUES ( 1 , '-ANON-69.196.133.152' , 1224516868 , 'cfrm' , '' , 'a' , '69.196.133.152' , '' , 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AIRF; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; OfficeLiveConnector.1.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)' , 0 , '' )

Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#218245 - 10/21/08 04:59 AM Re: Data too long for column 'ONLINE_AGENT' [Re: MacW]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
You can run the following SQL command to change that field length:

alter table ubbt_ONLINE
change ONLINE_AGENT ONLINE_AGENT text
Top
#218258 - 10/21/08 08:20 AM Re: Data too long for column 'ONLINE_AGENT' [Re: Rick]
MacW Offline
newbie
Registered: 09/26/04
Posts: 35
Hi, Rich

I had to change the table also from "memory" to "MyISAM" to make this work. Otherwise the "TEXT" data type cannot be used.

I guess UBB creates this table as memory by default?
Top
#218262 - 10/21/08 12:09 PM Re: Data too long for column 'ONLINE_AGENT' [Re: MacW]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Hmm, yeah. And changing that to a MyISAM table isn't the best idea because the table changes so often it has the tendency to crash on some systems when it's actually written to disk.

We're probably just going to have to trim/cut the referer variable at 255 characters before doing the insert.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image