#0 [10500]DbException in Builder.php line 497

查询表达式错误:array (
0 => 5,
1 => 91,
2 => 102,
3 => 113,
4 => 124,
5 => 135,
)

  1. protected function parseWhereItem(Query $query, $field, array $val, array $binds = []): string
  2. {
  3. // 字段分析
  4. $key = $field ? $this->parseKey($query, $field, true) : '';
  5. [$exp, $value] = $val;
  6. // 检测操作符
  7. if (!is_string($exp)) {
  8. throw new Exception('where express error:' . var_export($exp, true));
  9. }
  10. $exp = strtoupper($exp);
  11. if (isset($this->exp[$exp])) {
  12. $exp = $this->exp[$exp];
  13. }
  14. if (is_string($field) && 'LIKE' != $exp) {
  15. $bindType = $binds[$field] ?? PDO::PARAM_STR;

Call Stack

  1. in Builder.php line 497
  2. at Builder->parseWhereItem(object(Query), 'parent_id', [[5, 91, 102, ...]], ['id' => 1, 'source_id' => 1, 'lang' => 2, ...]) in Builder.php line 386
  3. at Builder->parseWhereLogic(object(Query), 'AND', [['lang', '=', 'en'], ['parent_id', [5, 91, 102, ...]], ['status', '=', 1], ...], ['id' => 1, 'source_id' => 1, 'lang' => 2, ...]) in Builder.php line 331
  4. at Builder->buildWhere(object(Query), ['AND' => [['lang', '=', 'en'], ['parent_id', [5, 91, 102, ...]], ['status', '=', 1], ...]]) in Builder.php line 299
  5. at Builder->parseWhere(object(Query), ['AND' => [['lang', '=', 'en'], ['parent_id', [5, 91, 102, ...]], ['status', '=', 1], ...]]) in Mysql.php line 94
  6. at Mysql->select(object(Query)) in PDOConnection.php line 920
  7. at PDOConnection->think\db\{closure}(object(Query)) in PDOConnection.php line 700
  8. at PDOConnection->pdoQuery(object(Query), object(Closure)) in PDOConnection.php line 921
  9. at PDOConnection->select(object(Query)) in BaseQuery.php line 1110
  10. at BaseQuery->select() in Lists.php line 62
  11. at Lists->index('news')
  12. at ReflectionMethod->invokeArgs(object(Lists), ['news']) in Container.php line 344
  13. at Container->invokeReflectMethod(object(Lists), object(ReflectionMethod), ['cid' => 'news']) in Controller.php line 110
  14. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  15. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  16. at Pipeline->then(object(Closure)) in Controller.php line 113
  17. at Controller->exec() in Dispatch.php line 90
  18. at Dispatch->run() in Route.php line 772
  19. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  20. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  21. at Pipeline->then(object(Closure)) in Route.php line 773
  22. at Route->dispatch(object(Request), object(Closure)) in Http.php line 215
  23. at Http->dispatchToRoute(object(Request)) in Http.php line 205
  24. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  25. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  26. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  27. at Pipeline->think\{closure}(object(Request)) in Sitemap.php line 95
  28. at Sitemap->handle(object(Request), object(Closure))
  29. at call_user_func([object(Sitemap), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  30. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  31. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  32. at SessionInit->handle(object(Request), object(Closure))
  33. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  34. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  35. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  36. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  37. at MultiApp->handle(object(Request), object(Closure))
  38. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  39. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  40. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  41. at SessionInit->handle(object(Request), object(Closure))
  42. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  43. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  44. at Pipeline->think\{closure}(object(Request)) in LoadLangPack.php line 57
  45. at LoadLangPack->handle(object(Request), object(Closure))
  46. at call_user_func([object(LoadLangPack), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  47. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  48. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  49. at Pipeline->then(object(Closure)) in Http.php line 206
  50. at Http->runWithRequest(object(Request)) in Http.php line 170
  51. at Http->run() in index.php line 26

Exception Datas

Database Status
Error Code 10500
Error Message where express error:array ( 0 => 5, 1 => 91, 2 => 102, 3 => 113, 4 => 124, 5 => 135, )
Error SQL
Database Configempty

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER jilongotnew
HOME /home/jilongotnew
SCRIPT_NAME /index.php
REQUEST_URI /news/
QUERY_STRING /news/
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING /news/
REDIRECT_URL /news/
REMOTE_PORT 44896
SCRIPT_FILENAME /home/jilongotnew/public_html/index.php
SERVER_ADMIN webmaster@jilongot.com
CONTEXT_DOCUMENT_ROOT /home/jilongotnew/public_html
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/jilongotnew/public_html
REMOTE_ADDR 54.197.64.207
SERVER_PORT 443
SERVER_ADDR 208.109.189.200
SERVER_NAME www.jilongot.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
HTTP_X_HTTPS 1
HTTP_HOST www.jilongot.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
proxy-nokeepalive 1
SSL_TLS_SNI www.jilongot.com
HTTPS on
SCRIPT_URI https://www.jilongot.com/news/
SCRIPT_URL /news/
UNIQUE_ID ZgVfM3ceUO1pi2pOisfMzgAAAAg
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI www.jilongot.com
REDIRECT_HTTPS on
REDIRECT_SCRIPT_URI https://www.jilongot.com/news/
REDIRECT_SCRIPT_URL /news/
REDIRECT_UNIQUE_ID ZgVfM3ceUO1pi2pOisfMzgAAAAg
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711628083.7729
REQUEST_TIME 1711628083
argv [ "\/news\/" ]
argc 1