Risultati da 1 a 9 di 9
-
27-05-2011, 06:49 #1
- Data Registrazione
- Jan 2011
- Messaggi
- 59
Problema con "Chi è Online"
Ragazzi quando clicco su chi è online mi dice Database Error:
Database error in vBulletin 4.1.4 Beta 1:
Codice PHP:Invalid SQL:
SELECT IF(userid > 0, 1, 0) as isuser, COUNT(session.userid) as online_users
FROM session
WHERE session.lastactivity > 1306470407
GROUP BY isuser;
MySQL Error : Table 'forum_.session' doesn't exist
Error Number : 1146
Request Date : Friday, May 27th 2011 @ 06:41:47 AM
Error Date : Friday, May 27th 2011 @ 06:41:48 AM
Script : http://hwnation.it/forum/online.php
Referrer : http://hwnation.it/forum/forum.php
IP Address : 79.36.34.190
Username : Matteo Russo
Classname : vB_Database
MySQL Version : 5.0.51a-24+lenny5
-
27-05-2011, 10:28 #2
Le beta non sono supportate ... e non andrebbero mai installate in produzione.
Giovanni
http://www.trimelli.com/
Per favore non mandatemi PM, ma scrivete sul forum. Vi sarà risposto prima.
-
27-05-2011, 13:51 #3
- Data Registrazione
- Jan 2011
- Messaggi
- 59
ahh cazz come faccio a tornare indietro?
-
27-05-2011, 16:37 #4
Ormai ti tocca ad aspettare.
Prova a ricreare la tabella session:
Codice:CREATE TABLE IF NOT EXISTS `session` ( `sessionhash` char(32) NOT NULL default '', `userid` int(10) unsigned NOT NULL default '0', `host` char(15) NOT NULL default '', `idhash` char(32) NOT NULL default '', `lastactivity` int(10) unsigned NOT NULL default '0', `location` char(255) NOT NULL default '', `useragent` char(100) NOT NULL default '', `styleid` smallint(5) unsigned NOT NULL default '0', `loggedin` smallint(5) unsigned NOT NULL default '0', `inforum` smallint(5) unsigned NOT NULL default '0', `inthread` int(10) unsigned NOT NULL default '0', `incalendar` smallint(5) unsigned NOT NULL default '0', `badlocation` smallint(5) unsigned NOT NULL default '0', `bypass` tinyint(4) NOT NULL default '0', `languageid` smallint(5) unsigned NOT NULL default '0', `profileupdate` smallint(5) unsigned NOT NULL default '0', `newposts` int(10) unsigned default NULL, `apiclientid` int(10) unsigned NOT NULL default '0', `apiaccesstoken` varchar(32) NOT NULL default '', PRIMARY KEY (`sessionhash`), KEY `user_activity` (`userid`,`lastactivity`), KEY `guest_lookup` (`idhash`,`host`,`userid`), KEY `apiaccesstoken` (`apiaccesstoken`) ) ENGINE=MEMORY
Giovanni
http://www.trimelli.com/
Per favore non mandatemi PM, ma scrivete sul forum. Vi sarà risposto prima.
-
27-05-2011, 19:05 #5
- Data Registrazione
- Jan 2011
- Messaggi
- 59
ok aspetto, tanto per quanto sarà disponibile una nuova?
-
28-05-2011, 09:23 #6
Immagino a breve ... 1-2 annetti al max
Giovanni
http://www.trimelli.com/
Per favore non mandatemi PM, ma scrivete sul forum. Vi sarà risposto prima.
-
28-05-2011, 15:38 #7
È un bug causato dal fatto che manca il codice per il prefisso delle tabelle per quella query. Se vuoi correggerlo manualmente:
File online.php, cerca:
Codice PHP://VBIV-5766 get the count of members and guests online.
$userscount = $db->query_read_slave("
SELECT IF(userid > 0, 1, 0) as isuser, COUNT(session.userid) as online_users
FROM session
WHERE session.lastactivity > $datecut
". iif(!$showmembers, " AND session.userid < 1", "") ."
$where
GROUP BY isuser
");
Codice PHP://VBIV-5766 get the count of members and guests online.
$userscount = $db->query_read_slave("
SELECT IF(userid > 0, 1, 0) as isuser, COUNT(session.userid) as online_users
FROM " . TABLE_PREFIX . "session AS session
WHERE session.lastactivity > $datecut
". iif(!$showmembers, " AND session.userid < 1", "") ."
$where
GROUP BY isuser
");
-
28-05-2011, 18:33 #8
Hehe ... ora che ti hanno promosso ti possiamo chiedere tante cose
Giovanni
http://www.trimelli.com/
Per favore non mandatemi PM, ma scrivete sul forum. Vi sarà risposto prima.
-
29-05-2011, 12:47 #9
- Data Registrazione
- Jan 2011
- Messaggi
- 59
Siii ora va
grazieeee
Discussioni Simili
-
vBulletin 3.8.x diminuire la dimensione delle tabelle "picture" e "attachment" del database
Di tryp nel forum VBulletin 3Risposte: 2Ultimo Messaggio: 27-05-2010, 17:27 -
Problema mailing list dopo "merge" di due database!
Di Scheggia nel forum Come faccioRisposte: 3Ultimo Messaggio: 27-04-2010, 15:18 -
vBulletin 3.6.x "Nuovi Messaggi" e "Cerca" non funzionanti
Di Neyla nel forum VBulletin 3Risposte: 13Ultimo Messaggio: 24-02-2008, 14:03 -
vBulletin 3.6.x Pulsante "Nuova discussione" accanto a "rispondi"
Di cionfs nel forum VBulletin 3Risposte: 2Ultimo Messaggio: 04-07-2007, 21:48 -
vBulletin 3.6.x Problema: Statistiche nr. "utenti online".
Di Padellino nel forum VBulletin 3Risposte: 6Ultimo Messaggio: 01-07-2007, 20:31
Segnalibri