Previous Thread
Next Thread
Print Thread
Rate Thread
#265127 12/22/2003 11:16 AM
Joined: May 2006
Posts: 67
Junior Member
Junior Member
Offline
Joined: May 2006
Posts: 67
Hi Guys

First of all, I just want to say Merry Christmas from England and thanks for all your help in the past. I tend to only pop up when I have a problem but I do lurk and I hope in time to be able to get some more time for myself to participate.

I'm having problems with Threads again. It usually crashes when there are around 400 people online at any one time. What's the most of users you have experienced without problems as a matter of interest?

At the moment the following message is displayed (see below) and I am told my Who's Online has corrupted itself. Any ideas what this means and what should be done? I'm just trying to understand it myself and no doubt I will hire someone to help put this right if it's not corrected today by the hosts.

Is it possible to hack out the who's online feature or should this not be necessary? Apparently it was accouting for 35.460 queies a second earlier today



SQL ERROR: Unable to do_query: REPLACE INTO w3t_Online (O_Username,O_Uid,O_Last,O_What,O_Extra,O_Read,O_Type) VALUES ('KopTalk','5790','1072109950','postlist','oldskool','-1-2-3-4-','r')
Table 'threads.w3t_Online' doesn't exist Admin | Entrance |

Main Index | My Home | Who's Online | FAQ | Logout | Mark all read


SQL ERROR: Unable to do_query: SELECT O_Type,O_Extra,COUNT(*) FROM w3t_Online WHERE O_Extra LIKE 'oldskool%' GROUP BY O_Type
Table 'threads.w3t_Online' doesn't exist
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/local/psa/home/vhosts/koptalk.org/httpdocs/forums/mysql.inc.php on line 130

Sponsored Links
#265128 12/22/2003 1:09 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
What version are you running?

It looks like the online table doesn't exist. Depending on what version you have, look inside the createtable.php script for the command where that table gets created. You can use that to recreate it.

Thankfully it's just temporary data - so nothing is lost with it being gone.

Joined: May 2006
Posts: 67
Junior Member
Junior Member
Offline
Joined: May 2006
Posts: 67
UBB.threads™ 6.2.3 Josh. Where do I find this file please?

#265130 12/22/2003 1:13 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This should do it:

Code
<br /><br />  CREATE TABLE w3t_Online(<br />    O_Username $varchar(64),<br />    O_Uid $int9 NOT NULL,<br />    O_Last $int9 DEFAULT '0' NOT NULL,<br />    O_What $varchar(64),<br />    O_Extra $varchar(200),<br />    O_Read $varchar(255),<br />    O_Type $varchar(1) NOT NULL<br />    ,UNIQUE Oindx1 (O_Username), <br />    INDEX Oindx2 (O_Last), <br />    INDEX type_index(O_Type)<br />  )<br />


I think that'll do it.

Improvements were made with indexes in this area in 6.4 to help prevent corruption.

Joined: May 2006
Posts: 67
Junior Member
Junior Member
Offline
Joined: May 2006
Posts: 67
[]JoshPet said:
This should do it:

Code
<br /><br />  CREATE TABLE w3t_Online(<br />    O_Username $varchar(64),<br />    O_Uid $int9 NOT NULL,<br />    O_Last $int9 DEFAULT '0' NOT NULL,<br />    O_What $varchar(64),<br />    O_Extra $varchar(200),<br />    O_Read $varchar(255),<br />    O_Type $varchar(1) NOT NULL<br />    ,UNIQUE Oindx1 (O_Username), <br />    INDEX Oindx2 (O_Last), <br />    INDEX type_index(O_Type)<br />  )<br />


I think that'll do it.

Improvements were made with indexes in this area in 6.4 to help prevent corruption. [/]

Sorry to be lame but where do I put this code Josh

Sponsored Links
#265132 12/22/2003 1:18 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Admin -> SQL Queries.

Joined: May 2006
Posts: 67
Junior Member
Junior Member
Offline
Joined: May 2006
Posts: 67
I went to SQL command and did what you said and received this Josh:

SQL ERROR: Unable to do_query: CREATE TABLE w3t_Online( O_Username $varchar(64), O_Uid $int9 NOT NULL, O_Last $int9 DEFAULT '0' NOT NULL, O_What $varchar(64), O_Extra $varchar(200), O_Read $varchar(255), O_Type $varchar(1) NOT NULL ,UNIQUE Oindx1 (O_Username), INDEX Oindx2 (O_Last), INDEX type_index(O_Type) )
You have an error in your SQL syntax near '$varchar(64), O_Uid $int9 NOT NULL, O_Last $int9 DEFAULT '0' NOT NULL, O_What' at line 2 row(s) affected by your query.

#265134 12/22/2003 2:04 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Remove the $ 's from the query

should be

CREATE TABLE w3t_Online(
O_Username varchar(64),
O_Uid int9 NOT NULL,
O_Last int9 DEFAULT '0' NOT NULL,
O_What varchar(64),
O_Extra varchar(200),
O_Read varchar(255),
O_Type varchar(1) NOT NULL
,UNIQUE Oindx1 (O_Username),
INDEX Oindx2 (O_Last),
INDEX type_index(O_Type)
)

Joined: May 2006
Posts: 67
Junior Member
Junior Member
Offline
Joined: May 2006
Posts: 67
I tried that also and received the error below. Allen is upgrading my Threads tonight, should that correct this problem?

Results from your SQL command

Here are the results of your command: "CREATE TABLE w3t_Online( O_Username varchar(64), O_Uid int9 NOT NULL, O_Last int9 DEFAULT '0' NOT NULL, O_What varchar(64), O_Extra varchar(200), O_Read varchar(255), O_Type varchar(1) NOT NULL ,UNIQUE Oindx1 (O_Username), INDEX Oindx2 (O_Last), INDEX type_index(O_Type) )".
SQL ERROR: Unable to do_query: CREATE TABLE w3t_Online( O_Username varchar(64), O_Uid int9 NOT NULL, O_Last int9 DEFAULT '0' NOT NULL, O_What varchar(64), O_Extra varchar(200), O_Read varchar(255), O_Type varchar(1) NOT NULL ,UNIQUE Oindx1 (O_Username), INDEX Oindx2 (O_Last), INDEX type_index(O_Type) )
You have an error in your SQL syntax near 'int9 NOT NULL, O_Last int9 DEFAULT '0' NOT NULL, O_What varchar(64), O_Ext' at line 3 row(s) affected by your query.

#265136 12/22/2003 3:12 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Interesting Lets try it again

CREATE TABLE `w3t_Online` (
`O_Username` varchar(64) NOT NULL default '',
`O_Last` int(9) unsigned NOT NULL default '0',
`O_What` varchar(64) default NULL,
`O_Extra` varchar(200) default NULL,
`O_Read` varchar(255) default NULL,
`O_Type` char(1) NOT NULL default '',
`O_Uid` int(9) default NULL,
`O_IPaddy` varchar(15) default NULL,
`O_Board` varchar(100) default NULL,
UNIQUE KEY `Oindx1` (`O_Username`),
KEY `Oindx2` (`O_Last`),
KEY `type_index` (`O_Type`)
) TYPE=MyISAM;

#

Sponsored Links
Joined: May 2006
Posts: 67
Junior Member
Junior Member
Offline
Joined: May 2006
Posts: 67
[]Omegatron said:
Interesting Lets try it again

CREATE TABLE `w3t_Online` (
`O_Username` varchar(64) NOT NULL default '',
`O_Last` int(9) unsigned NOT NULL default '0',
`O_What` varchar(64) default NULL,
`O_Extra` varchar(200) default NULL,
`O_Read` varchar(255) default NULL,
`O_Type` char(1) NOT NULL default '',
`O_Uid` int(9) default NULL,
`O_IPaddy` varchar(15) default NULL,
`O_Board` varchar(100) default NULL,
UNIQUE KEY `Oindx1` (`O_Username`),
KEY `Oindx2` (`O_Last`),
KEY `type_index` (`O_Type`)
) TYPE=MyISAM;

# [/]

That appears to have worked

What a star!

#265138 12/22/2003 4:13 PM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Yep some server like the tildies others dont.

Joined: May 2006
Posts: 67
Junior Member
Junior Member
Offline
Joined: May 2006
Posts: 67
I'm not tech minded at all so this baffles me but hey, it worked. Thanks pal!

It didn't work with the # at the end but did with that removed.


#265140 12/22/2003 4:42 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
yay - thanks Omegatron - I did a "drive by" reading of stuff on my way out the door earlier.

Joined: May 2006
Posts: 67
Junior Member
Junior Member
Offline
Joined: May 2006
Posts: 67
[]JoshPet said:
yay - thanks Omegatron - I did a "drive by" reading of stuff on my way out the door earlier. [/]

Slacking, eh


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1424
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 26
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)