[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/data/user/htdocs//Template/home/lists/index.html

  1. */
  2. public function fetch($template, $data = [], $config = [])
  3. {
  4. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  5. // 获取模板文件名
  6. $template = $this->parseTemplate($template);
  7. }
  8. // 模板不存在 抛出异常
  9. if (!is_file($template)) {
  10. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  11. }
  12. // 记录视图信息
  13. App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
  14. $this->template->fetch($template, $data, $config);
  15. }
  16. /**
  17. * 渲染模板内容
  18. * @access public

Call Stack

  1. in Think.php line 82
  2. at Think->fetch('/data/user/htdocs//T...', ['site' => ['id' => 1, 'site_name' => 'default', 'title' => '中舞联研究院', ...], 'id' => '105', 'ci' => ['id' => 105, 'site' => 1, 'model_id' => 1, ...]], []) in View.php line 163
  3. at View->fetch(null, ['site' => ['id' => 1, 'site_name' => 'default', 'title' => '中舞联研究院', ...], 'id' => '105', 'ci' => ['id' => 105, 'site' => 1, 'model_id' => 1, ...]], ['__ROOT__' => '', '__URL__' => '/index/lists', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch(null) in Lists.php line 41
  5. at Lists->index()
  6. at ReflectionMethod->invokeArgs(object(Lists), []) in App.php line 343
  7. at App::invokeMethod([object(Lists), 'index'], []) in App.php line 611
  8. at App::module(['index', 'Lists', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'Lists', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/data/user/htdocs/th...') in index.php line 8

Environment Variables

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

Server/Request Data

USER
nobody
HOME
/
HTTP_HOST
www.dancing.org.cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
wh-na8k7zj47529xmk2q9v.my3w.com
SERVER_PORT
80
SERVER_ADDR
10.29.64.61
REMOTE_PORT
49918
REMOTE_ADDR
52.91.84.219
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/user/htdocs
DOCUMENT_URI
/index.php//list/105.html
REQUEST_URI
/list/105.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
PATH_INFO
//list/105.html
SCRIPT_FILENAME
/data/user/htdocs/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php//list/105.html
REQUEST_TIME_FLOAT
1711636416.6055
REQUEST_TIME
1711636416
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/user/htdocs/application/
WXPAY_PATH
/data/user/htdocs/vendor
THINK_VERSION
5.0.24
THINK_START_TIME
1711636416.6057
THINK_START_MEM
347744
EXT
.php
DS
/
THINK_PATH
/data/user/htdocs/thinkphp/
LIB_PATH
/data/user/htdocs/thinkphp/library/
CORE_PATH
/data/user/htdocs/thinkphp/library/think/
TRAIT_PATH
/data/user/htdocs/thinkphp/library/traits/
ROOT_PATH
/data/user/htdocs/
EXTEND_PATH
/data/user/htdocs/extend/
VENDOR_PATH
/data/user/htdocs/vendor/
RUNTIME_PATH
/data/user/htdocs/runtime/
LOG_PATH
/data/user/htdocs/runtime/log/
CACHE_PATH
/data/user/htdocs/runtime/cache/
TEMP_PATH
/data/user/htdocs/runtime/temp/
CONF_PATH
/data/user/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
0.063725s