MySQL-Query failed: 1062: Duplicate entry '0' for key 'user_id'MySQL-Query: "INSERT INTO bs_sessions
(session_id,user_id,user_ip,user_agent,date,location,session_data)
VALUES
('f5bc0823497f188f53873ca5083ff1db','0','3.139.238.76',
'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)','1714332335','redirect',
'a:0:{}')"
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 898
[ Method: BS_MySQL::sql_qry() ]
0893 (session_id,user_id,user_ip,user_agent,date,location,session_data)
0894 VALUES
0895 ('".$this->session_id."','".$this->user_id."','".$this->user_ip."',
0896 '".$this->_user_agent."','$time','".$location."',
0897 '".serialize($this->_session_data)."')"
0898 );
0899 }
0900 else
0901 $this->_refresh_type = 'insert';
0902
0903 // create it also in the saved online-table
0904 $data = array(
- /var/www/web32/html/forum/src/auth/session.php in line 193
[ Method: BS_Session::_refresh_session_entry() ]
0188 include_once($this->path.'src/ips.php');
0189 $ips = new BS_IPs($this);
0190 $ips->add_entry('login');
0191 }
0192
0193 $this->_refresh_session_entry(true,$error);
0194 }
0195
0196 /**
0197 * returns the session-data with the given name
0198 * or false if not found
0199 *
- /var/www/web32/html/forum/src/base.php in line 422
[ Method: BS_Session::finalize() ]
0417 * @access public
0418 */
0419 function finish()
0420 {
0421 if(isset($this->sess) && method_exists($this->sess,'finalize'))
0422 $this->sess->finalize($this->error_occurred());
0423
0424 if(isset($this->db) && method_exists($this->db,'sql_close'))
0425 $this->db->sql_close();
0426 }
0427 }
0428 ?>
- /var/www/web32/html/forum/src/functions.php in line 63
[ Method: BS_Base::finish() ]
0058 * @param string $url the URL where you want to redirect to
0059 * Note that you have to start with $this->path! (or http://)
0060 */
0061 function redirect($url)
0062 {
0063 $this->_base->finish();
0064
0065 header("Connection: close");
0066 header("HTTP/1.1 303 REDIRECT");
0067
0068 if(BS_MB_substr($url,0,7) != 'http://')
0069 {
- /var/www/web32/html/forum/modules/redirect.php in line 118
[ Method: BS_Functions::redirect() ]
0113 {
0114 $url = $this->url->get_URL(
0115 'posts','&'.BS_URL_FID.'='.$pdata['rubrikid']
0116 .'&'.BS_URL_TID.'='.$pdata['threadid'].'&'.BS_URL_SITE.'='.$page,'&'
0117 );
0118 $this->functions->redirect($url.'#b_'.$pid);
0119 }
0120
0121 $post_index++;
0122 if(($post_index % $this->cfg['posts_per_page']) == 0)
0123 $page++;
0124 }
- /var/www/web32/html/forum/src/page.php in line 131
[ Method: BS_Module_redirect::run() ]
0126 {
0127 $this->_module->functions->show_login_form();
0128 $this->_module->set_error();
0129 }
0130 else
0131 $this->_module->run();
0132 }
0133 }
0134 // show login form?
0135 else if($this->_module->get_action_result() == 2)
0136 {
0137 if($this->_module->input->isset_var('login','post') &&
- /var/www/web32/html/forum/src/page.php in line 55
[ Method: BS_Page::_display_module() ]
0050
0051 $this->_module->functions->start_document();
0052
0053 // output
0054 $this->_display_head();
0055 $this->_display_module();
0056 $this->_display_foot();
0057
0058 $this->_module->finish();
0059
0060 $this->_module->functions->send_document();
0061 }
- /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: 1062: Duplicate entry '0' for key 'user_id'[/color][/b][/u]
MySQL-Query: "INSERT INTO bs_sessions
(session_id,user_id,user_ip,user_agent,date,location,session_data)
VALUES
('f5bc0823497f188f53873ca5083ff1db','0','3.139.238.76',
'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)','1714332335','redirect',
'a:0:{}')"
[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]898[/b]
[ Method: [b]BS_MySQL::sql_qry()[/b] ]
[code]0893 (session_id,user_id,user_ip,user_agent,date,location,session_data)
0894 VALUES
0895 ('".$this->session_id."','".$this->user_id."','".$this->user_ip."',
0896 '".$this->_user_agent."','$time','".$location."',
0897 '".serialize($this->_session_data)."')"
0898 );
0899 }
0900 else
0901 $this->_refresh_type = 'insert';
0902
0903 // create it also in the saved online-table
0904 $data = array(
[/code]
[*]/var/www/web32/html/forum/src/auth/[b]session.php[/b] in line [b]193[/b]
[ Method: [b]BS_Session::_refresh_session_entry()[/b] ]
[code]0188 include_once($this->path.'src/ips.php');
0189 $ips = new BS_IPs($this);
0190 $ips->add_entry('login');
0191 }
0192
0193 $this->_refresh_session_entry(true,$error);
0194 }
0195
0196 /**
0197 * returns the session-data with the given name
0198 * or false if not found
0199 *
[/code]
[*]/var/www/web32/html/forum/src/[b]base.php[/b] in line [b]422[/b]
[ Method: [b]BS_Session::finalize()[/b] ]
[code]0417 * @access public
0418 */
0419 function finish()
0420 {
0421 if(isset($this->sess) && method_exists($this->sess,'finalize'))
0422 $this->sess->finalize($this->error_occurred());
0423
0424 if(isset($this->db) && method_exists($this->db,'sql_close'))
0425 $this->db->sql_close();
0426 }
0427 }
0428 ?>
[/code]
[*]/var/www/web32/html/forum/src/[b]functions.php[/b] in line [b]63[/b]
[ Method: [b]BS_Base::finish()[/b] ]
[code]0058 * @param string $url the URL where you want to redirect to
0059 * Note that you have to start with $this->path! (or http://)
0060 */
0061 function redirect($url)
0062 {
0063 $this->_base->finish();
0064
0065 header("Connection: close");
0066 header("HTTP/1.1 303 REDIRECT");
0067
0068 if(BS_MB_substr($url,0,7) != 'http://')
0069 {
[/code]
[*]/var/www/web32/html/forum/modules/[b]redirect.php[/b] in line [b]118[/b]
[ Method: [b]BS_Functions::redirect()[/b] ]
[code]0113 {
0114 $url = $this->url->get_URL(
0115 'posts','&'.BS_URL_FID.'='.$pdata['rubrikid']
0116 .'&'.BS_URL_TID.'='.$pdata['threadid'].'&'.BS_URL_SITE.'='.$page,'&'
0117 );
0118 $this->functions->redirect($url.'#b_'.$pid);
0119 }
0120
0121 $post_index++;
0122 if(($post_index % $this->cfg['posts_per_page']) == 0)
0123 $page++;
0124 }
[/code]
[*]/var/www/web32/html/forum/src/[b]page.php[/b] in line [b]131[/b]
[ Method: [b]BS_Module_redirect::run()[/b] ]
[code]0126 {
0127 $this->_module->functions->show_login_form();
0128 $this->_module->set_error();
0129 }
0130 else
0131 $this->_module->run();
0132 }
0133 }
0134 // show login form?
0135 else if($this->_module->get_action_result() == 2)
0136 {
0137 if($this->_module->input->isset_var('login','post') &&
[/code]
[*]/var/www/web32/html/forum/src/[b]page.php[/b] in line [b]55[/b]
[ Method: [b]BS_Page::_display_module()[/b] ]
[code]0050
0051 $this->_module->functions->start_document();
0052
0053 // output
0054 $this->_display_head();
0055 $this->_display_module();
0056 $this->_display_foot();
0057
0058 $this->_module->finish();
0059
0060 $this->_module->functions->send_document();
0061 }
[/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]