[0] Exception in Query.php line 103

method not exist:think\db\Query->index

  1. return $this->where($where)->value($args[1]);
  2. } elseif ($this->model && method_exists($this->model, 'scope' . $method)) {
  3. // 动态调用命名范围
  4. $method = 'scope' . $method;
  5. array_unshift($args, $this);
  6. call_user_func_array([$this->model, $method], $args);
  7. return $this;
  8. } else {
  9. throw new Exception('method not exist:' . __CLASS__ . '->' . $method);
  10. }
  11. }
  12. /**
  13. * 获取当前的数据库Connection对象
  14. * @access public
  15. * @return Connection
  16. */
  17. public function getConnection()

Call Stack

  1. in Query.php line 103
  2. at Query->__call('index', [])
  3. at call_user_func_array([object(Query), 'index'], []) in Model.php line 2190
  4. at Model->__call('index', []) in Archives.php line 32
  5. at Archives->__call('index', []) in Channel.php line 35
  6. at Channel->index()
  7. at call_user_func_array([object(Channel), 'index'], []) in Route.php line 76
  8. at Route->execute('cms', 'channel', 'index')
  9. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'index']) in App.php line 343
  10. at App::invokeMethod(['\think\addons\Route', 'execute'], ['diyname' => 'tqblog', 'post' => 'sem-news', 'addon' => 'cms', ...]) in App.php line 470
  11. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('/www/wwwroot/tq365.c...') in index.php line 24

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/tqblog/post/sem-news/385.html
QUERY_STRING
s=/tqblog/post/sem-news/385.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/tqblog/post/sem-news/385.html
REDIRECT_URL
/tqblog/post/sem-news/385.html
REMOTE_PORT
58126
SCRIPT_FILENAME
/www/wwwroot/tq365.cn/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/tq365.cn/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/tq365.cn/public
REMOTE_ADDR
101.132.57.185
SERVER_PORT
80
SERVER_ADDR
172.16.12.113
SERVER_NAME
www.tq365.cn
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.tq365.cn Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_X_ALICDN_DA_VIA
61.170.77.228,180.163.51.254
HTTP_ALI_CDN_APPVIEW_NAME
cdn-tengine
HTTP_REFERER
http://www.tq365.cn/tqblog/post/sem-news/385.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_SWIFT_FORCE_TTL_CODE
400=0
HTTP_X_CLIENT_SCHEME
https
HTTP_X_FORWARDED_FOR
54.81.33.119
HTTP_ALI_SWIFT_STAT_HOST
www.tq365.cn
HTTP_ALI_SWIFT_LOG_HOST
www.tq365.cn
HTTP_ALI_CDN_REAL_IP
54.81.33.119
HTTP_ALI_CDN_REAL_PORT
51390
HTTP_EAGLEEYE_TRACEID
3daa4d1617116586546656133e
HTTP_VIA
cn6020.l1, l2et2-2.l2
HTTP_HOST
www.tq365.cn
proxy-nokeepalive
1
SCRIPT_URI
http://www.tq365.cn/tqblog/post/sem-news/385.html
SCRIPT_URL
/tqblog/post/sem-news/385.html
REDIRECT_STATUS
200
REDIRECT_SCRIPT_URI
http://www.tq365.cn/tqblog/post/sem-news/385.html
REDIRECT_SCRIPT_URL
/tqblog/post/sem-news/385.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711658654.677
REQUEST_TIME
1711658654
PATH_INFO
/tqblog/post/sem-news/385.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/tq365.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711658654.6776
THINK_START_MEM
368048
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/tq365.cn/thinkphp/
LIB_PATH
/www/wwwroot/tq365.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/tq365.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/tq365.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/tq365.cn/
EXTEND_PATH
/www/wwwroot/tq365.cn/extend/
VENDOR_PATH
/www/wwwroot/tq365.cn/vendor/
RUNTIME_PATH
/www/wwwroot/tq365.cn/runtime/
LOG_PATH
/www/wwwroot/tq365.cn/runtime/log/
CACHE_PATH
/www/wwwroot/tq365.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/tq365.cn/runtime/temp/
CONF_PATH
/www/wwwroot/tq365.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/tq365.cn/addons/