Hi. First please check do you have column vbet_def_lang in your user table. Also is it User or user? If the column doesn't exists, please import vBET product file again. It should be created during installation.
As I see in your query there is no table user taken at all.. We tested it on vB4.1.2 - I'm checking vB sources right now, also I will test it on 4.1.4. Please tell how to reproduce - on which page you see this issue?
Last edited by vBET; 12-06-11 at 10:55.
I just checked vBET and vBulletin codes. vBET adds this column to query by hook online_query. And vBulltin 4.2.1 uses there query:
I will check how it looks in vB4.1.4 in few minutes.Code:SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, session.inthread, user.aim, user.icq, user.msn, user.yahoo, user.skype, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid, user.usergroupid $hook_query_fields FROM " . TABLE_PREFIX . "session AS session ". iif($vbulletin->options['WOLguests'], " LEFT JOIN " . TABLE_PREFIX . "user AS user USING (userid) ", ", " . TABLE_PREFIX . "user AS user") ." $hook_query_joins WHERE session.lastactivity > $datecut ". iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid", "") ." $hook_query_where ORDER BY $sqlsort $sortorder
OK. Just checked vB4.1.4 source and it looks similar:
But I just realized that user table is not always joined. And this i the thing. You must have turned on option WOLguests. Then it should be alright.Code:SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, session.inthread, user.aim, user.icq, user.msn, user.yahoo, user.skype, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid, user.usergroupid ". iif($showmembers AND $showguests AND $showspiders, ", IF(ISNULL(user.username), 1, 0) as isguest", "") ." $hook_query_fields FROM " . TABLE_PREFIX . "session AS session ". iif($vbulletin->options['WOLguests'], " LEFT JOIN " . TABLE_PREFIX . "user AS user USING (userid) ", ", " . TABLE_PREFIX . "user AS user") ." $hook_query_joins WHERE session.lastactivity > $datecut ". iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid", "") . iif(!$showmembers, " AND ISNULL(user.username)", "") ." $hook_query_where $where ORDER BY ". iif($showmembers AND $showguests AND $showspiders, "isguest,", "") ." $sqlsort $sortorder LIMIT $limitlower, $perpage
Please turn the option on and tell is it ok.
For next release I will made changes in vBET code so it will not crash when someone will have the option turned off.
Last edited by Maciej; 12-06-11 at 19:29.
Hello,
i installed latest Vbulletin, Vbseo, Vbseo Sitemap and now vbet, everything works perfect, except of the online.php.
Thanks for Help
http://www.bitcoins-deutschland.de/
http://forum.bitcoins-deutschland.de/
Code:Database error in vBulletin 4.1.4: Invalid SQL: SELECT IF(userid > 0, 1, 0) as isuser, COUNT(session.userid) as online_users , user.vbet_def_lang AS vbet_def_lang FROM session as session WHERE session.lastactivity > 1307997785 GROUP BY isuser; MySQL Error : Unknown column 'user.vbet_def_lang' in 'field list' Error Number : 1054 Request Date : Monday, June 13th 2011 @ 10:58:05 PM Error Date : Monday, June 13th 2011 @ 10:58:05 PM Script : http://forum.bitcoins-deutschland.de/online.php Referrer : http://forum.bitcoins-deutschland.de/online.php IP Address : 178.25.151.181 Username : admin Classname : vB_Database_MySQLi MySQL Version : 5.0.51a-24+lenny5
Last edited by wowglider.de; 13-06-11 at 22:02.
Thanks fro note. We are already aware about this (thread merged). We noted it as official vBulletin bug and we are waiting to see will vBulletin admit it is their bug and correct it or we will have to fight with it on our side (vBulletin bug report).
Quick fix for now: please just disable plugin Get oline users language.