[10501] PDOException in Connection.php line 453

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'member_id' cannot be null

  1. $query->readMaster();
  2. }
  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, $query);
  8. }
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } catch (\Throwable $e) {
  11. if ($this->isBreak($e)) {
  12. return $this->close()->execute($sql, $bind, $query);
  13. }
  14. throw $e;
  15. } catch (\Exception $e) {
  16. if ($this->isBreak($e)) {
  17. return $this->close()->execute($sql, $bind, $query);
  18. }

Call Stack

  1. in Connection.php line 453
  2. at Connection->execute('INSERT INTO `wht_com...', ['data__createtime' => [1711652285, 1], 'data__nav' => ['[{"status":"on","sor...', 2]], object(Query)) in Query.php line 269
  3. at Query->execute('INSERT INTO `wht_com...', ['data__createtime' => [1711652285, 1], 'data__nav' => ['[{"status":"on","sor...', 2]], object(Query)) in Query.php line 2275
  4. at Query->insert(['member_id' => null, 'createtime' => 1711652285, 'nav' => '[{"status":"on","sor...']) in Company.php line 39
  5. at Company->__construct()
  6. at ReflectionClass->newInstanceArgs([]) in App.php line 359
  7. at App::invokeClass('app\index\controller...') in Loader.php line 479
  8. at Loader::controller('company', 'controller', false, 'Error') in App.php line 580
  9. at App::module(['index', 'company', 'message'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['index', 'company', 'message'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/home/acgroot/s02/th...') in index.php line 28

Exception Datas

PDO Error Info
SQLSTATE 23000
Driver Error Code 1048
Driver Error Message Column 'member_id' cannot be null
Database Status
Error Code 10501
Error Message SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'member_id' cannot be null
Error SQL INSERT INTO `wht_company_nav` (`member_id` , `createtime` , `nav`) VALUES (NULL , 1711652285 , '[{\"status\":\"on\",\"sort\":\"0\",\"name\":\"公司简介\",\"url\":\"\\/company\\/jlhelongcg\\/introduce\"},{\"status\":\"on\",\"sort\":\"0\",\"name\":\"供应产品\",\"url\":\"\\/company\\/jlhelongcg\\/productlist\"},{\"status\":\"on\",\"sort\":\"0\",\"name\":\"新闻中心\",\"url\":\"\\/company\\/jlhelongcg\\/newslist\"},{\"status\":\"on\",\"sort\":\"0\",\"name\":\"荣誉资质\",\"url\":\"\\/company\\/jlhelongcg\\/honorlist\"},{\"status\":\"on\",\"sort\":\"0\",\"name\":\"联系方式\",\"url\":\"\\/company\\/jlhelongcg\\/contact\"},{\"sort\":\"0\",\"name\":\"留言咨询\",\"url\":\"\\/company\\/jlhelongcg\\/message\",\"status\":\"off\"}]')
Database Config
type mysql
hostname mysql55.rdsmcgezr4iqdsw.rds.bj.baidubce.com
database acg02new
hostport 3306
dsn
params []
charset utf8
prefix wht_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
datetime_format false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
acgjl.qunke.com
PATH_INFO
/company/jlhelongcg/message
REDIRECT_STATUS
200
SERVER_NAME
jlacg.baijiaxuegong.com
SERVER_PORT
443
SERVER_ADDR
10.7.2.4
REMOTE_PORT
56388
REMOTE_ADDR
18.212.102.174
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/home/acgroot/s02/public
DOCUMENT_URI
/index.php
REQUEST_URI
/company/jlhelongcg/message
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/company/jlhelongcg/message
SCRIPT_FILENAME
/home/acgroot/s02/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711652285.7979
REQUEST_TIME
1711652285
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/acgroot/s02/public/../application/
FENCI_PATH
/home/acgroot/s02/public/assets/dict/
THINK_VERSION
5.0.24
THINK_START_TIME
1711652285.7982
THINK_START_MEM
381280
EXT
.php
DS
/
THINK_PATH
/home/acgroot/s02/thinkphp/
LIB_PATH
/home/acgroot/s02/thinkphp/library/
CORE_PATH
/home/acgroot/s02/thinkphp/library/think/
TRAIT_PATH
/home/acgroot/s02/thinkphp/library/traits/
ROOT_PATH
/home/acgroot/s02/
EXTEND_PATH
/home/acgroot/s02/extend/
VENDOR_PATH
/home/acgroot/s02/vendor/
RUNTIME_PATH
/home/acgroot/s02/runtime/
LOG_PATH
/home/acgroot/s02/runtime/log/
CACHE_PATH
/home/acgroot/s02/runtime/cache/
TEMP_PATH
/home/acgroot/s02/runtime/temp/
CONF_PATH
/home/acgroot/s02/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/home/acgroot/s02/addons/