[10501] PDOException in Connection.php line 764

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '迪王”盘中重回万亿王座,券商喊出元目标价,' for key 'title'

  1. $this->numRows = $this->PDOStatement->rowCount();
  2. return $this->numRows;
  3. } catch (\PDOException $e) {
  4. if ($this->isBreak($e)) {
  5. return $this->close()->execute($sql, $bind, $query);
  6. }
  7. throw new PDOException($e, $this->config, $this->getLastsql());
  8. } catch (\Throwable $e) {
  9. if ($this->isBreak($e)) {
  10. return $this->close()->execute($sql, $bind, $query);
  11. }
  12. throw $e;
  13. } catch (\Exception $e) {
  14. if ($this->isBreak($e)) {
  15. return $this->close()->execute($sql, $bind, $query);

Call Stack

  1. in Connection.php line 764
  2. at Connection->execute('INSERT INTO `cloud_c...', ['ThinkBind_1_' => ['', 1], 'ThinkBind_2_' => ['', 2], 'ThinkBind_3_' => ['/static/uploads/yzsk...', 2], ...], object(Query)) in Connection.php line 964
  3. at Connection->insert(object(Query), false, true, null) in Query.php line 2826
  4. at Query->insert(['catid' => '', 'category_id' => '', 'thumb' => '/static/uploads/yzsk...', ...], false, true, null) in Query.php line 2839
  5. at Query->insertGetId(['catid' => '', 'category_id' => '', 'thumb' => '/static/uploads/yzsk...', ...]) in News.php line 56
  6. at News->lists()
  7. at ReflectionMethod->invokeArgs(object(News), []) in Container.php line 395
  8. at Container->invokeReflectMethod(object(News), object(ReflectionMethod), ['convert' => false]) in Module.php line 136
  9. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  10. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  11. at Middleware->think\{closure}(object(Request))
  12. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  13. at Middleware->dispatch(object(Request), 'controller') in Module.php line 141
  14. at Module->exec() in Dispatch.php line 168
  15. at Dispatch->run() in App.php line 432
  16. at App->think\{closure}(object(Request), object(Closure), null)
  17. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  18. at Middleware->think\{closure}(object(Request))
  19. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  20. at Middleware->dispatch(object(Request)) in App.php line 435
  21. at App->run() in index.php line 26

Exception Datas

PDO Error Info
SQLSTATE 23000
Driver Error Code 1062
Driver Error Message Duplicate entry '迪王”盘中重回万亿王座,券商喊出元目标价,' for key 'title'
Database Status
Error Code 10501
Error Message SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '迪王”盘中重回万亿王座,券商喊出元目标价,' for key 'title'
Error SQL INSERT INTO `cloud_content` (`catid` , `category_id` , `thumb` , `title` , `link` , `author` , `source` , `summary` , `download` , `tags` , `new` , `hot` , `position` , `isdel` , `status` , `toptime` , `sort` , `hits` , `release_time` , `create_time` , `update_time` , `siteid`) VALUES (0 , '' , '/static/uploads/yzsk.com/20220727/202207271658926811.jpg' , '迪王”盘中重回万亿王座,券商喊出元目标价,汽车链中报__11' , '' , '本站' , '本站' , '周五上午,A股市场窄幅震荡,主要指数涨跌互现,上证指数小幅下跌。但板块之间再现巨大分化,房地产产业链的股票进一步走弱。' , '' , '' , 0 , 0 , 0 , 1 , 1 , 1658926656 , 1 , 145 , 1658926656 , 1658926706 , 1658926814 , 1)
Database Config
type mysql
hostname localhost
database yzsk123.com
hostport 3306
dsn
params []
charset utf8
prefix cloud_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
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
break_match_str []
db_config_site { "type": "mysql", "hostname": "103.45.101.123", "hostport": "3306", "database": "cloud_cms", "username": "cloud_cms", "password": "rW4ihPHppWxMykT2", "charset": "utf8", "prefix": "cloud_" }

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER zzt123.com.cn
HOME /home/zzt123.com.cn
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /home/wwwroot/kelaiapp.com/public/index.php
QUERY_STRING s=news/
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /news/
DOCUMENT_URI /index.php
DOCUMENT_ROOT /home/wwwroot/kelaiapp.com/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.18.0
REMOTE_ADDR 58.216.25.32
REMOTE_PORT 32070
SERVER_ADDR 103.26.78.73
SERVER_PORT 80
SERVER_NAME kelaiapp.com
REDIRECT_STATUS 200
PHP_ADMIN_VALUE open_basedir=/home/wwwroot/kelaiapp.com/public/../:/tmp/:/proc/
HTTP_HOST www.kelaiapp.com
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_CDN_SRC_IP 3.81.79.135
HTTP_X_WS_REQUEST_ID 6605f7a9_PSmgnyNY3vz41_18106-13505
HTTP_X_CDN_SRC_PORT 50346
HTTP_X_VIA 1.1 PSmgnyNY3vz41:0 (Cdn Cache Server V2.0), 1.1 PS-CZX-01wCJ32:12 (Cdn Cache Server V2.0)
HTTP_CONNECTION keep-alive
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711667118.6038
REQUEST_TIME 1711667118
Environment Variablesempty
ThinkPHP Constants
EXTEND_PATH /home/wwwroot/kelaiapp.com/public/../extend/
WEBSITE_ROOT /home/wwwroot/kelaiapp.com/public/../website/
SITE_ID 1