MySQL-Query failed: 1194: Table 'bs_sessions' is marked as crashed and should be repairedMySQL-Query: "SELECT s.*,u.`user_name` user_name,p.ghost_mode,p.user_group
FROM bs_sessions s
LEFT JOIN bs_user u ON s.user_id = u.`id`
LEFT JOIN bs_profiles p ON s.user_id = p.id
ORDER BY s.date DESC"
Call-trace:
- Unknown [ Method: BS_ErrorHandler::handleError() ]
- /var/www/web32/html/forum/src/mysql.php in line 168
[ Function: trigger_error() ]
0163
0164 $query = @mysql_query($sql,$this->_con);
0165 if(!$query && $error)
0166 {
0167 trigger_error('MySQL-Query failed: '.mysql_errno($this->_con).': '.mysql_error($this->_con)."{{}}"
0168 .'MySQL-Query: "'.$sql.'"',E_USER_ERROR);
0169 die();
0170 }
0171
0172 $this->_total_queries++;
0173 if($this->_enable_debug)
0174 {
- /var/www/web32/html/forum/src/auth/session.php in line 965
[ Method: BS_MySQL::sql_qry() ]
- /var/www/web32/html/forum/src/auth/session.php in line 153
[ Method: BS_Session::_generate_session_table() ]
0148 *
0149 * @access public
0150 */
0151 function init_session()
0152 {
0153 $this->_generate_session_table();
0154 $this->_init_session();
0155 $this->_logout_offline_user();
0156
0157 // login by cookie?
0158 if(!$this->_admin_required && !$this->is_loggedin())
0159 {
- /var/www/web32/html/forum/src/auth/user.php in line 78
[ Method: BS_Session::init_session() ]
0073 *
0074 * @access public
0075 */
0076 function init()
0077 {
0078 $this->init_session();
0079
0080 $this->_calculate_forum_lang();
0081 $this->_calculate_forum_theme();
0082 $this->_calculate_timezone();
0083
0084 $time = time();
- /var/www/web32/html/forum/src/base.php in line 352
[ Method: BS_User::init() ]
0347 BS_add_objects_to_class($this,$this->$name);
0348
0349 // init the session
0350 if($this->_config['sess'])
0351 {
0352 $this->sess->init();
0353 $this->auth->init();
0354 if($this->_config['unread'])
0355 $this->unread->init();
0356 }
0357
0358 // init language
- /var/www/web32/html/forum/src/base.php in line 225
[ Method: BS_Base::_init() ]
0220 {
0221 if(isset($this->_config[$val]))
0222 $this->_config[$val] = false;
0223 }
0224
0225 $this->_init($admin_required);
0226 }
0227
0228 /**
0229 * inits all necessary stuff
0230 *
0231 * @param boolean $admin_required for the session: is an admin required to login?
- /var/www/web32/html/forum/src/module.php in line 45
[ Method: BS_Base::BS_Base() ]
0040 * BS_add_objects_to_class() to add the objects to this module.
0041 */
0042 function BS_Module($path,$call_base = true)
0043 {
0044 if($call_base)
0045 BS_Base::BS_Base($path);
0046 }
0047
0048 /**
0049 * The method which should start everything.
0050 *
0051 * If any kind of error appears (for example: a parameter is invalid), please call
- /var/www/web32/html/forum/src/page.php in line 82
[ Method: BS_Module::BS_Module() ]
0077 include_once($path.'modules/'.$action.'.php');
0078 $class = 'BS_Module_'.$action;
0079 if(class_exists($class))
0080 {
0081 $this->_module_name = $action;
0082 return new $class($path);
0083 }
0084 }
0085
0086 // use default module
0087 $this->_module_name = 'portal';
0088 include_once($path.'modules/portal.php');
- /var/www/web32/html/forum/src/page.php in line 49
[ Method: BS_Page::_load_module() ]
0044 include_once($path.'config/userdef.php');
0045 include_once($path.'src/general_functions.php');
0046 include_once($path.'src/base.php');
0047 include_once($path.'src/module.php');
0048
0049 $this->_module = $this->_load_module($path);
0050
0051 $this->_module->functions->start_document();
0052
0053 // output
0054 $this->_display_head();
0055 $this->_display_module();
- /var/www/web32/html/forum/index.php in line 110
[ Method: BS_Page::BS_Page() ]
0105 Please delete the install.php first!</b></center>'
0106 );
0107 }
0108
0109 include_once($path.'src/page.php');
0110 new BS_Page($path);
0111 ?>
Show BBCode for the error-message (to post somewhere)
[u][b][color=#FF0000]MySQL-Query failed: 1194: Table 'bs_sessions' is marked as crashed and should be repaired[/color][/b][/u]
MySQL-Query: "SELECT s.*,u.`user_name` user_name,p.ghost_mode,p.user_group
FROM bs_sessions s
LEFT JOIN bs_user u ON s.user_id = u.`id`
LEFT JOIN bs_profiles p ON s.user_id = p.id
ORDER BY s.date DESC"
[b]Call-trace:[/b]
[list]
[*][i]Unknown[/i] [ Method: [b]BS_ErrorHandler::handleError()[/b] ]
[*]/var/www/web32/html/forum/src/[b]mysql.php[/b] in line [b]168[/b]
[ Function: [b]trigger_error()[/b] ]
[code]0163
0164 $query = @mysql_query($sql,$this->_con);
0165 if(!$query && $error)
0166 {
0167 trigger_error('MySQL-Query failed: '.mysql_errno($this->_con).': '.mysql_error($this->_con)."{{}}"
0168 .'MySQL-Query: "'.$sql.'"',E_USER_ERROR);
0169 die();
0170 }
0171
0172 $this->_total_queries++;
0173 if($this->_enable_debug)
0174 {
[/code]
[*]/var/www/web32/html/forum/src/auth/[b]session.php[/b] in line [b]965[/b]
[ Method: [b]BS_MySQL::sql_qry()[/b] ]
[code]0960 "SELECT s.*,u.`".BS_EXPORT_USER_NAME."` user_name,p.ghost_mode,p.user_group
0961 FROM ".BS_TB_SESSIONS." s
0962 LEFT JOIN ".BS_TB_USER." u ON s.user_id = u.`".BS_EXPORT_USER_ID."`
0963 LEFT JOIN ".BS_TB_PROFILES." p ON s.user_id = p.id
0964 ORDER BY s.date DESC"
0965 );
0966 while($data = $this->db->sql_fetch_assoc($qry))
0967 {
0968 $data['bot_name'] = $this->_get_bot_name($data['user_agent'],$data['user_ip']);
0969 $this->_online_table[$data['session_id']] = $data;
0970 }
0971
[/code]
[*]/var/www/web32/html/forum/src/auth/[b]session.php[/b] in line [b]153[/b]
[ Method: [b]BS_Session::_generate_session_table()[/b] ]
[code]0148 *
0149 * @access public
0150 */
0151 function init_session()
0152 {
0153 $this->_generate_session_table();
0154 $this->_init_session();
0155 $this->_logout_offline_user();
0156
0157 // login by cookie?
0158 if(!$this->_admin_required && !$this->is_loggedin())
0159 {
[/code]
[*]/var/www/web32/html/forum/src/auth/[b]user.php[/b] in line [b]78[/b]
[ Method: [b]BS_Session::init_session()[/b] ]
[code]0073 *
0074 * @access public
0075 */
0076 function init()
0077 {
0078 $this->init_session();
0079
0080 $this->_calculate_forum_lang();
0081 $this->_calculate_forum_theme();
0082 $this->_calculate_timezone();
0083
0084 $time = time();
[/code]
[*]/var/www/web32/html/forum/src/[b]base.php[/b] in line [b]352[/b]
[ Method: [b]BS_User::init()[/b] ]
[code]0347 BS_add_objects_to_class($this,$this->$name);
0348
0349 // init the session
0350 if($this->_config['sess'])
0351 {
0352 $this->sess->init();
0353 $this->auth->init();
0354 if($this->_config['unread'])
0355 $this->unread->init();
0356 }
0357
0358 // init language
[/code]
[*]/var/www/web32/html/forum/src/[b]base.php[/b] in line [b]225[/b]
[ Method: [b]BS_Base::_init()[/b] ]
[code]0220 {
0221 if(isset($this->_config[$val]))
0222 $this->_config[$val] = false;
0223 }
0224
0225 $this->_init($admin_required);
0226 }
0227
0228 /**
0229 * inits all necessary stuff
0230 *
0231 * @param boolean $admin_required for the session: is an admin required to login?
[/code]
[*]/var/www/web32/html/forum/src/[b]module.php[/b] in line [b]45[/b]
[ Method: [b]BS_Base::BS_Base()[/b] ]
[code]0040 * BS_add_objects_to_class() to add the objects to this module.
0041 */
0042 function BS_Module($path,$call_base = true)
0043 {
0044 if($call_base)
0045 BS_Base::BS_Base($path);
0046 }
0047
0048 /**
0049 * The method which should start everything.
0050 *
0051 * If any kind of error appears (for example: a parameter is invalid), please call
[/code]
[*]/var/www/web32/html/forum/src/[b]page.php[/b] in line [b]82[/b]
[ Method: [b]BS_Module::BS_Module()[/b] ]
[code]0077 include_once($path.'modules/'.$action.'.php');
0078 $class = 'BS_Module_'.$action;
0079 if(class_exists($class))
0080 {
0081 $this->_module_name = $action;
0082 return new $class($path);
0083 }
0084 }
0085
0086 // use default module
0087 $this->_module_name = 'portal';
0088 include_once($path.'modules/portal.php');
[/code]
[*]/var/www/web32/html/forum/src/[b]page.php[/b] in line [b]49[/b]
[ Method: [b]BS_Page::_load_module()[/b] ]
[code]0044 include_once($path.'config/userdef.php');
0045 include_once($path.'src/general_functions.php');
0046 include_once($path.'src/base.php');
0047 include_once($path.'src/module.php');
0048
0049 $this->_module = $this->_load_module($path);
0050
0051 $this->_module->functions->start_document();
0052
0053 // output
0054 $this->_display_head();
0055 $this->_display_module();
[/code]
[*]/var/www/web32/html/forum/[b]index.php[/b] in line [b]110[/b]
[ Method: [b]BS_Page::BS_Page()[/b] ]
[code]0105 Please delete the install.php first!</b></center>'
0106 );
0107 }
0108
0109 include_once($path.'src/page.php');
0110 new BS_Page($path);
0111 ?>
[/code]
[/list]