#0 [0]TypeError in PDOConnection.php line 695

think\db\PDOConnection::pdoQuery(): Return value must be of type array, bool returned

  1. if ($query->getOptions('cache')) {
  2. // 检查查询缓存
  3. $cacheItem = $this->parseCache($query, $query->getOptions('cache'));
  4. $key = $cacheItem->getKey();
  5. $data = $this->cache->get($key);
  6. if (null !== $data) {
  7. return $data;
  8. }
  9. }
  10. if ($sql instanceof Closure) {
  11. $sql = $sql($query);
  12. $bind = $query->getBind();
  13. }
  14. if (!isset($master)) {

Call Stack

  1. in PDOConnection.php line 695
  2. at PDOConnection->pdoQuery() in PDOConnection.php line 879
  3. at PDOConnection->find() in BaseQuery.php line 1162
  4. at BaseQuery->find() in Archives.php line 84
  5. at Archives->buildUrl() in Archives.php line 58
  6. at Archives->getUrlAttr() in Attribute.php line 523
  7. at Model->getValue() in Attribute.php line 483
  8. at Model->getAttr() in Conversion.php line 253
  9. at Model->toArray() in Collection.php line 59
  10. at Collection->think\{closure}()
  11. at array_map() in Collection.php line 60
  12. at Collection->toArray() in Archives.php line 803
  13. at Archives->tagContent() in TagContent.php line 80
  14. at TagContent->switchController() in 44f1e4e4af8110d404f23bac6367560f.php line 507
  15. at include('/www/wwwroot/www.jhd...') in File.php line 59
  16. at File->read() in Template.php line 255
  17. at Template->fetch() in Think.php line 149
  18. at Think->fetch() in View.php line 90
  19. at View->think\{closure}() in View.php line 126
  20. at View->getContent() in View.php line 91
  21. at View->fetch() in Index.php line 222
  22. at Index->show()
  23. at ReflectionMethod->invokeArgs() in Container.php line 344
  24. at Container->invokeReflectMethod() in Controller.php line 110
  25. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  26. at Pipeline->think\{closure}() in Pipeline.php line 66
  27. at Pipeline->then() in Controller.php line 113
  28. at Controller->exec() in Dispatch.php line 90
  29. at Dispatch->run() in Route.php line 785
  30. at Route->think\{closure}() in Pipeline.php line 59
  31. at Pipeline->think\{closure}() in Pipeline.php line 66
  32. at Pipeline->then() in Route.php line 786
  33. at Route->dispatch() in Http.php line 216
  34. at Http->dispatchToRoute() in Http.php line 206
  35. at Http->think\{closure}() in Pipeline.php line 59
  36. at Pipeline->think\{closure}() in MultiApp.php line 71
  37. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  38. at Pipeline->think\{closure}() in HtmlCache.php line 26
  39. at HtmlCache->handle()
  40. at call_user_func() in Middleware.php line 142
  41. at Middleware->think\{closure}() in Pipeline.php line 85
  42. at Pipeline->think\{closure}() in LoadLangPack.php line 98
  43. at LoadLangPack->handle()
  44. at call_user_func() in Middleware.php line 142
  45. at Middleware->think\{closure}() in Pipeline.php line 85
  46. at Pipeline->think\{closure}() in Pipeline.php line 66
  47. at Pipeline->then() in MultiApp.php line 72
  48. at MultiApp->handle()
  49. at call_user_func() in Middleware.php line 142
  50. at Middleware->think\{closure}() in Pipeline.php line 85
  51. at Pipeline->think\{closure}() in SessionInit.php line 67
  52. at SessionInit->handle()
  53. at call_user_func() in Middleware.php line 142
  54. at Middleware->think\{closure}() in Pipeline.php line 85
  55. at Pipeline->think\{closure}() in Pipeline.php line 66
  56. at Pipeline->then() in Http.php line 207
  57. at Http->runWithRequest() in Http.php line 170
  58. at Http->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, deflate, br
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36
HTTP_FROM bingbot(at)microsoft.com
PATH_INFO
HTTP_HOST www.jhdi.cn
REDIRECT_STATUS 200
SERVER_NAME www.jhdi.cn
SERVER_PORT 443
SERVER_ADDR 172.20.135.126
REMOTE_PORT 65515
REMOTE_ADDR 40.77.167.44
SERVER_SOFTWARE nginx/1.26.3
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/www.jhdi.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /FAQ/2090.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/FAQ/2090.html
SCRIPT_FILENAME /www/wwwroot/www.jhdi.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1752590453.0901
REQUEST_TIME 1752590453