#0 [10501]PDOException in PDOConnection.php line 797

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

  1. }
  2. } else {
  3. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  4. ++$this->reConnectTimes;
  5. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  6. }
  7. }
  8. if ($e instanceof \PDOException) {
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } else {
  11. throw $e;
  12. }
  13. }
  14. }
  15. /**
  16. * 执行语句
  17. * @access protected

Call Stack

  1. in PDOConnection.php line 797
  2. at PDOConnection->getPDOStatement() in PDOConnection.php line 856
  3. at PDOConnection->queryPDOStatement() in PDOConnection.php line 819
  4. at PDOConnection->pdoExecute() in PDOConnection.php line 940
  5. at PDOConnection->insert() in BaseQuery.php line 1009
  6. at BaseQuery->insert() in Model.php line 701
  7. at Model->think\{closure}() in PDOConnection.php line 1473
  8. at PDOConnection->transaction() in Transaction.php line 44
  9. at BaseQuery->transaction() in Model.php line 717
  10. at Model->insertData() in Model.php line 536
  11. at Model->save() in Model.php line 853
  12. at Model::create() in ProjectPageBlock.php line 101
  13. at ProjectPageBlock->getContentAttr() in Attribute.php line 525
  14. at Model->getValue() in Attribute.php line 485
  15. at Model->getAttr() in Model.php line 999
  16. at Model->offsetGet() in 47be235fa0f25d25bb726e91c814c178.php line 126
  17. at include('/www/wwwroot/documen...') in File.php line 59
  18. at File->read() in Template.php line 255
  19. at Template->fetch() in Think.php line 149
  20. at Think->fetch() in View.php line 90
  21. at View->think\{closure}() in View.php line 126
  22. at View->getContent() in View.php line 91
  23. at View->fetch()
  24. at call_user_func_array() in Facade.php line 96
  25. at Facade::__callStatic() in read.php line 192
  26. at Http->{closure}() in Container.php line 294
  27. at Container->invokeFunction() in Container.php line 358
  28. at Container->invoke() in Callback.php line 27
  29. at Callback->exec() in Dispatch.php line 80
  30. at Dispatch->run() in Route.php line 793
  31. at Route->think\{closure}() in Pipeline.php line 59
  32. at Pipeline->think\{closure}() in Pipeline.php line 66
  33. at Pipeline->then() in Route.php line 794
  34. at Route->dispatch() in Http.php line 216
  35. at Http->dispatchToRoute() in Http.php line 206
  36. at Http->think\{closure}() in Pipeline.php line 59
  37. at Pipeline->think\{closure}() in MultiApp.php line 45
  38. at MultiApp->handle()
  39. at call_user_func() in Middleware.php line 142
  40. at Middleware->think\{closure}() in Pipeline.php line 85
  41. at Pipeline->think\{closure}() in ConfigInit.php line 30
  42. at ConfigInit->handle()
  43. at call_user_func() in Middleware.php line 142
  44. at Middleware->think\{closure}() in Pipeline.php line 85
  45. at Pipeline->think\{closure}() in SessionInit.php line 67
  46. at SessionInit->handle()
  47. at call_user_func() in Middleware.php line 142
  48. at Middleware->think\{closure}() in Pipeline.php line 85
  49. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  50. at LoadLangPack->handle()
  51. at call_user_func() in Middleware.php line 142
  52. at Middleware->think\{closure}() in Pipeline.php line 85
  53. at Pipeline->think\{closure}() in AllowCrossDomain.php line 61
  54. at AllowCrossDomain->handle()
  55. at call_user_func() in Middleware.php line 142
  56. at Middleware->think\{closure}() in Pipeline.php line 85
  57. at Pipeline->think\{closure}() in Pipeline.php line 66
  58. at Pipeline->then() in Http.php line 207
  59. at Http->runWithRequest() in Http.php line 170
  60. at Http->run() in index.php line 22

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 1364
Driver Error Message Field 'project_id' doesn't have a default value
Database Status
Error Code 10501
Error Message SQLSTATE[HY000]: General error: 1364 Field 'project_id' doesn't have a default value
Error SQL INSERT INTO `ul_project_page_block_content` SET `block_id` = 336 , `lang` = 'en-us' , `content` = '' , `preview` = '' , `create_time` = 1711665543 , `update_time` = 1711665543
Database Config
type mysql
hostname doc.ulthon.com
database document_hl7_top
hostport 3306
dsn
params []
charset utf8
prefix ul_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache false
trigger_sql true
builder
query app\common\provider\db\Query
break_reconnect false
break_match_str []
auto_param_bind true
schema_cache_path /www/wwwroot/document.hl7.top/runtime/schema/

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST doc.ulthon.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME doc.ulthon.com
SERVER_PORT 443
SERVER_ADDR 111.67.194.192
REMOTE_PORT 44490
REMOTE_ADDR 44.221.46.132
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/document.hl7.top/public
DOCUMENT_URI /index.php
REQUEST_URI /read/augushong/test/62dfd5c241c8e/en-us/1.0.0.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/read/augushong/test/62dfd5c241c8e/en-us/1.0.0.html
SCRIPT_FILENAME /www/wwwroot/document.hl7.top/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711665543.5438
REQUEST_TIME 1711665543