#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 Sitemap.php line 55
  13. at Sitemap->addons\sitemap\controller\{closure}() in common.php line 738
  14. at controller() in Sitemap.php line 58
  15. at Sitemap->index()
  16. at ReflectionMethod->invokeArgs() in Container.php line 344
  17. at Container->invokeReflectMethod() in Route.php line 112
  18. at Route::think\addons\{closure}() in Pipeline.php line 59
  19. at Pipeline->think\{closure}() in Pipeline.php line 66
  20. at Pipeline->then() in Route.php line 115
  21. at Route::execute()
  22. at ReflectionMethod->invokeArgs() in Container.php line 329
  23. at Container->invokeMethod() in Container.php line 362
  24. at Container->invoke() in Callback.php line 27
  25. at Callback->exec() in Dispatch.php line 90
  26. at Dispatch->run() in Route.php line 785
  27. at Route->think\{closure}() in Pipeline.php line 59
  28. at Pipeline->think\{closure}() in Pipeline.php line 66
  29. at Pipeline->then() in Route.php line 786
  30. at Route->dispatch() in Http.php line 216
  31. at Http->dispatchToRoute() in Http.php line 206
  32. at Http->think\{closure}() in Pipeline.php line 59
  33. at Pipeline->think\{closure}() in MultiApp.php line 71
  34. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  35. at Pipeline->think\{closure}() in HtmlCache.php line 26
  36. at HtmlCache->handle()
  37. at call_user_func() in Middleware.php line 142
  38. at Middleware->think\{closure}() in Pipeline.php line 85
  39. at Pipeline->think\{closure}() in LoadLangPack.php line 98
  40. at LoadLangPack->handle()
  41. at call_user_func() in Middleware.php line 142
  42. at Middleware->think\{closure}() in Pipeline.php line 85
  43. at Pipeline->think\{closure}() in Pipeline.php line 66
  44. at Pipeline->then() in MultiApp.php line 72
  45. at MultiApp->handle()
  46. at call_user_func() in Middleware.php line 142
  47. at Middleware->think\{closure}() in Pipeline.php line 85
  48. at Pipeline->think\{closure}() in SessionInit.php line 67
  49. at SessionInit->handle()
  50. at call_user_func() in Middleware.php line 142
  51. at Middleware->think\{closure}() in Pipeline.php line 85
  52. at Pipeline->think\{closure}() in Pipeline.php line 66
  53. at Pipeline->then() in Http.php line 207
  54. at Http->runWithRequest() in Http.php line 170
  55. 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_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
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 20742
REMOTE_ADDR 216.73.216.57
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 /sitemap.xml
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/sitemap.xml
SCRIPT_FILENAME /www/wwwroot/www.jhdi.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1752607036.7604
REQUEST_TIME 1752607036