[10501] PDOException in Connection.php line 453

SQLSTATE[HY000]: General error: 1364 Field 'sort' doesn't have a default value

  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 `my_pro_...', ['data__ip' => ['44.205.5.65', 2], 'data__pic' => ['/public/attachment/p...', 2], 'data__title' => ['Marble tile ,Carrara...', 2], ...], object(Query)) in Query.php line 269
  3. at Query->execute('INSERT INTO `my_pro_...', ['data__ip' => ['44.205.5.65', 2], 'data__pic' => ['/public/attachment/p...', 2], 'data__title' => ['Marble tile ,Carrara...', 2], ...], object(Query)) in Query.php line 2276
  4. at Query->insert(['ip' => '44.205.5.65', 'pic' => '/public/attachment/p...', 'title' => 'Marble tile ,Carrara...', ...], false, true, null) in Query.php line 2306
  5. at Query->insertGetId(['ip' => '44.205.5.65', 'pic' => '/public/attachment/p...', 'title' => 'Marble tile ,Carrara...', ...]) in Pro.php line 145
  6. at Pro->inquire()
  7. at ReflectionMethod->invokeArgs(object(Pro), []) in App.php line 343
  8. at App::invokeMethod([object(Pro), 'inquire'], []) in App.php line 611
  9. at App::module(['home', 'Pro', 'inquire'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['home', 'Pro', 'inquire'], '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('/mnt/wwwroot/afaiths...') in index.php line 18

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 1364
Driver Error Message Field 'sort' doesn't have a default value
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 1364 Field 'sort' doesn't have a default value
Error SQL INSERT INTO `my_pro_apply` (`ip` , `pic` , `title` , `pid` , `create_time`) VALUES ('44.205.5.65' , '/public/attachment/product/ku5dh654_63ypm5yjuhyf61544167c4584.jpg' , 'Marble tile ,Carrara White , Field tile' , 377 , 1711650572)
Database Config
type mysql
hostname 127.0.0.1
database afaithstone_huud
hostport
dsn
params []
charset utf8
prefix my_
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
auto_datetime_format 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
www.afaithstone.com
PATH_INFO
/inquire/377
REDIRECT_STATUS
200
SERVER_NAME
www.afaithstone.com
SERVER_PORT
443
SERVER_ADDR
10.200.0.10
REMOTE_PORT
56068
REMOTE_ADDR
44.205.5.65
SERVER_SOFTWARE
nginx/1.17.10
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/mnt/wwwroot/afaithstone.huudon.cn
DOCUMENT_URI
/index.php
REQUEST_URI
/inquire/377
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/inquire/377
SCRIPT_FILENAME
/mnt/wwwroot/afaithstone.huudon.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711650572.3273
REQUEST_TIME
1711650572
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/wwwroot/afaithstone.huudon.cn/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711650572.3278
THINK_START_MEM
404064
EXT
.php
DS
/
THINK_PATH
/mnt/wwwroot/afaithstone.huudon.cn/thinkphp/
LIB_PATH
/mnt/wwwroot/afaithstone.huudon.cn/thinkphp/library/
CORE_PATH
/mnt/wwwroot/afaithstone.huudon.cn/thinkphp/library/think/
TRAIT_PATH
/mnt/wwwroot/afaithstone.huudon.cn/thinkphp/library/traits/
ROOT_PATH
/mnt/wwwroot/afaithstone.huudon.cn/
EXTEND_PATH
/mnt/wwwroot/afaithstone.huudon.cn/extend/
VENDOR_PATH
/mnt/wwwroot/afaithstone.huudon.cn/vendor/
RUNTIME_PATH
/mnt/wwwroot/afaithstone.huudon.cn/runtime/
LOG_PATH
/mnt/wwwroot/afaithstone.huudon.cn/runtime/log/
CACHE_PATH
/mnt/wwwroot/afaithstone.huudon.cn/runtime/cache/
TEMP_PATH
/mnt/wwwroot/afaithstone.huudon.cn/runtime/temp/
CONF_PATH
/mnt/wwwroot/afaithstone.huudon.cn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.2.2
DM
http://xmxslb.com