437必赢国际备用网址

[10501] PDOException in Connection.php line 451

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '83973' 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' => ['', 2], '__data__id' => [83973, 1], '__data__ip' => ['107.164.229.250', 2], ...]) in Query.php line 239
  3. at Query->execute('INSERT INTO `core_co...', ['__data__source' => ['', 2], '__data__id' => [83973, 1], '__data__ip' => ['107.164.229.250', 2], ...]) in Query.php line 2083
  4. at Query->insert(['source' => '', 'id' => 83973, 'ip' => '107.164.229.250', ...]) in Base.php line 122
  5. at Base->_initialize() in Category.php line 14
  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('/datavol/wwwroot/cyw...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 23000
Driver Error Code 1062
Driver Error Message Duplicate entry '83973' for key 'PRIMARY'
Database Status
Error Code 10501
Error Message SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '83973' for key 'PRIMARY'
Error SQL INSERT INTO `core_counter` (`source` , `id` , `ip` , `client` , `create_time` , `state`) VALUES ('' , 83973 , '107.164.229.250' , '电脑端' , 1653675554 , 0)
Database Config
type mysql
hostname 127.0.0.1
database cywy_cfsite3_ahc
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
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public/index.php
QUERY_STRING
s=/home/category/detail/id/204.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/home/category/detail/id/204.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
107.164.229.250
REMOTE_PORT
47010
SERVER_ADDR
61.132.228.100
SERVER_PORT
80
SERVER_NAME
cywy.cfsite3.ahcfkj.com
REDIRECT_STATUS
200
PATH_INFO
/home/category/detail/id/204.html
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
www.ahcywy.cn
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1653675554.0563
REQUEST_TIME
1653675554
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public/../application/
UPLOAD_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public/../public
RUNTIME_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public/../runtime/
APP_DEBUG
true
THINK_VERSION
5.0.10
THINK_START_TIME
1653675554.0568
THINK_START_MEM
261264
EXT
.php
DS
/
THINK_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/thinkphp/
LIB_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/thinkphp/library/
CORE_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/thinkphp/library/think/
TRAIT_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/thinkphp/library/traits/
ROOT_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/
EXTEND_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/extend/
VENDOR_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/vendor/
LOG_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public/../runtime/log/
CACHE_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public/../runtime/cache/
TEMP_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public/../runtime/temp/
CONF_PATH
/datavol/wwwroot/cywy.cfsite3.ahcfkj.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false