[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('catalog') in Channel.php line 191
  7. at Channel->childindex()
  8. at call_user_func_array([object(Channel), 'childindex'], []) in Route.php line 76
  9. at Route->execute('cms', 'channel', 'childindex')
  10. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'childindex']) in App.php line 343
  11. at App::invokeMethod(['\think\addons\Route', 'execute'], ['tags' => '蜘蛛', 'parentname' => 'tqblog', 'diyname' => 'catalog', ...]) in App.php line 470
  12. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'childindex']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  13. at App::run() in start.php line 19
  14. at require('/www/wwwroot/tq365.c...') in index.php line 24

Environment Variables

GET Data

tags
蜘蛛
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/tqblog/catalog.asp?tags=%E8%9C%98%E8%9B%9B
QUERY_STRING
s=/tqblog/catalog.asp&tags=%E8%9C%98%E8%9B%9B
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/tqblog/catalog.asp&tags=%E8%9C%98%E8%9B%9B
REDIRECT_URL
/tqblog/catalog.asp
REMOTE_PORT
63510
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.169
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.223,114.80.59.252
HTTP_ALI_CDN_APPVIEW_NAME
cdn-tengine
HTTP_REFERER
http://www.tq365.cn/tqblog/catalog.asp?tags=%E8%9C%98%E8%9B%9B
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_SWIFT_FORCE_TTL_CODE
400=0
HTTP_X_CLIENT_SCHEME
https
HTTP_X_FORWARDED_FOR
44.212.50.220
HTTP_ALI_SWIFT_STAT_HOST
www.tq365.cn
HTTP_ALI_SWIFT_LOG_HOST
www.tq365.cn
HTTP_ALI_CDN_REAL_IP
44.212.50.220
HTTP_ALI_CDN_REAL_PORT
36834
HTTP_EAGLEEYE_TRACEID
3daa4d2a17116342296577841e
HTTP_VIA
cn6020.l1, l2et2-2.l2
HTTP_HOST
www.tq365.cn
proxy-nokeepalive
1
SCRIPT_URI
http://www.tq365.cn/tqblog/catalog.asp
SCRIPT_URL
/tqblog/catalog.asp
REDIRECT_STATUS
200
REDIRECT_SCRIPT_URI
http://www.tq365.cn/tqblog/catalog.asp
REDIRECT_SCRIPT_URL
/tqblog/catalog.asp
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711634229.6689
REQUEST_TIME
1711634229
PATH_INFO
/tqblog/catalog.asp
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/tq365.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711634229.6695
THINK_START_MEM
368160
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/