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
('d02d32b723631806ed7f9e8cb582dacd','0','3.128.30.77',
'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)','1714332354','chat',
'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/standalone.php in line 58
[ Method: BS_Base::finish() ]
0053 $this->functions->start_document();
0054
0055 if(!$this->require_board_access() || $this->auth->has_board_access())
0056 $this->run();
0057
0058 $this->finish();
0059
0060 if($this->_use_ob)
0061 $this->functions->send_document();
0062 }
0063
0064 /**
- /var/www/web32/html/forum/standalone.php in line 30
[ Method: BS_Standalone::display() ]
0025 include_once($bspath.'standalone/'.$action.'.php');
0026 $class = 'BS_Standalone_'.$action;
0027 if(class_exists($class))
0028 {
0029 $c = new $class($bspath);
0030 $c->display();
0031 }
0032 }
0033 ?>
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
('d02d32b723631806ed7f9e8cb582dacd','0','3.128.30.77',
'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)','1714332354','chat',
'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]standalone.php[/b] in line [b]58[/b]
[ Method: [b]BS_Base::finish()[/b] ]
[code]0053 $this->functions->start_document();
0054
0055 if(!$this->require_board_access() || $this->auth->has_board_access())
0056 $this->run();
0057
0058 $this->finish();
0059
0060 if($this->_use_ob)
0061 $this->functions->send_document();
0062 }
0063
0064 /**
[/code]
[*]/var/www/web32/html/forum/[b]standalone.php[/b] in line [b]30[/b]
[ Method: [b]BS_Standalone::display()[/b] ]
[code]0025 include_once($bspath.'standalone/'.$action.'.php');
0026 $class = 'BS_Standalone_'.$action;
0027 if(class_exists($class))
0028 {
0029 $c = new $class($bspath);
0030 $c->display();
0031 }
0032 }
0033 ?>
[/code]
[/list]