电子游戏888集团网站


[10501] PDOException in Connection.php line 451

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '59172' for key 'PRIMARY'

  1. // 调试结束
  2. $this->debug(false);
  3. $this->numRows = $this->PDOStatement->rowCount();
  4. return $this->numRows;
  5. } catch (\PDOException $e) {
  6. if ($this->isBreak($e)) {
  7. return $this->close()->execute($sql, $bind);
  8. }
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } catch (\Exception $e) {
  11. if ($this->isBreak($e)) {
  12. return $this->close()->execute($sql, $bind);
  13. }
  14. throw $e;
  15. }
  16. }
  17. /**

Call Stack

  1. in Connection.php line 451
  2. at Connection->execute('INSERT INTO `core_co...', ['__data__source' => ['https://www.baidu.com...', 2], '__data__id' => [59172, 1], '__data__ip' => ['45.41.83.2', 2], ...]) in Query.php line 239
  3. at Query->execute('INSERT INTO `core_co...', ['__data__source' => ['https://www.baidu.com...', 2], '__data__id' => [59172, 1], '__data__ip' => ['45.41.83.2', 2], ...]) in Query.php line 2083
  4. at Query->insert(['source' => 'https://www.baidu.com...', 'id' => 59172, 'ip' => '45.41.83.2', ...]) in Base.php line 73
  5. at Base->_initialize() in Category.php line 16
  6. at Category->_initialize() in Controller.php line 56
  7. at Controller->__construct() in Base.php line 16
  8. at Base->__construct()
  9. at ReflectionClass->newInstanceArgs([]) in App.php line 215
  10. at App::invokeClass('app\home\controller\...') in Loader.php line 420
  11. at Loader::controller('category', 'controller', false, 'Error') in App.php line 390
  12. at App::module(['home', 'category', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 295
  13. at App::exec(['type' => 'module', 'module' => ['home', 'category', 'detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  14. at App::run() in start.php line 18
  15. at require('/mnt/wwwroot/hclight...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 23000
Driver Error Code 1062
Driver Error Message Duplicate entry '59172' for key 'PRIMARY'
Database Status
Error Code 10501
Error Message SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '59172' for key 'PRIMARY'
Error SQL INSERT INTO `core_counter` (`source` , `id` , `ip` , `client` , `create_time` , `state`) VALUES ('https://www.baidu.com/search/spider.htm' , 59172 , '45.41.83.2' , '电脑端' , 1730043218 , 0)
Database Config
type mysql
hostname 127.0.0.1
database hclight_cfwl10_a
hostport 3306
dsn
params []
charset utf8
prefix core_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

web_user_counter
value
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public/index.php
QUERY_STRING
s=/home/category/detail/id/423.html
REQUEST_METHOD
GET
CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/home/category/detail/id/423.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.22.1
REMOTE_ADDR
45.41.83.2
REMOTE_PORT
35616
SERVER_ADDR
172.16.28.191
SERVER_PORT
80
SERVER_NAME
www.apluole.com
REDIRECT_STATUS
200
PATH_INFO
/home/category/detail/id/423.html
HTTP_HOST
www.apluole.com
HTTP_REFERER
https://www.baidu.com/search/spider.htm
HTTP_X_APPLE_TZ
0
HTTP_X_APPLE_STORE_FRONT
143444,12
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_CACHE_CONTROL
no-cache
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
HTTP_USER_AGENT
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)
HTTP_X_MICROSOFTAJAX
Delta=true
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1730043218.7463
REQUEST_TIME
1730043218
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public/../application/
UPLOAD_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public/../public
RUNTIME_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public/../runtime/
APP_DEBUG
true
THINK_VERSION
5.0.10
THINK_START_TIME
1730043218.7467
THINK_START_MEM
265784
EXT
.php
DS
/
THINK_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/thinkphp/
LIB_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/thinkphp/library/
CORE_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/thinkphp/library/think/
TRAIT_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/thinkphp/library/traits/
ROOT_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/
EXTEND_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/extend/
VENDOR_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/vendor/
LOG_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public/../runtime/log/
CACHE_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public/../runtime/cache/
TEMP_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public/../runtime/temp/
CONF_PATH
/mnt/wwwroot/hclight.cfwl10.ahcfwl.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false

XML地图