[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/usr/home/hyu7870120001/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('/usr/home/hyu7870120...', ['site' => ['id' => 1, 'site_name' => 'default', 'title' => '...', ...], 'defaultImg' => '/upload/image/202402...', 'pathid' => ['', '0', '57', ...], ...], []) in View.php line 163
  3. at View->fetch(null, ['site' => ['id' => 1, 'site_name' => 'default', 'title' => '...', ...], 'defaultImg' => '/upload/image/202402...', 'pathid' => ['', '0', '57', ...], ...], ['__ROOT__' => '', '__URL__' => '/index/lists', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch(null) in Lists.php line 54
  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' => false, ...], 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' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/usr/home/hyu7870120...') in index.php line 28

Environment Variables

GET Data

page
2
POST Data
empty
Files
empty

Cookies

PHPSESSID
80tp9i0th5blj54g1njm96tg24

Session

think
{ "product": [] }

Server/Request Data

DOCUMENT_ROOT
/usr/home/hyu7870120001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=80tp9i0th5blj54g1njm96tg24
HTTP_HOST
www.vommatec.com
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
PATH
/bin
PHPRC
/var/www/php70/hichina_ini/hyu7870120001
QUERY_STRING
page=2
REDIRECT_DOCUMENT_ROOT
/usr/home/hyu7870120001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
gzip
REDIRECT_HTTP_COOKIE
PHPSESSID=80tp9i0th5blj54g1njm96tg24
REDIRECT_HTTP_HOST
www.vommatec.com
REDIRECT_HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO
/57.html
REDIRECT_PATH_TRANSLATED
redirect:/index.php/57.html
REDIRECT_QUERY_STRING
page=2
REDIRECT_REMOTE_ADDR
45.43.221.210
REDIRECT_REMOTE_PORT
55124
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/list/57.html?page=2
REDIRECT_SCRIPT_FILENAME
/usr/home/hyu7870120001/htdocs/list
REDIRECT_SCRIPT_NAME
/list
REDIRECT_SERVER_ADDR
10.21.65.83
REDIRECT_SERVER_ADMIN
webmaster@hyu7870120001.my3w.com
REDIRECT_SERVER_NAME
www.vommatec.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
ZiIq0woVQVMALeMDZkgAAAAD
REDIRECT_URL
/list/57.html
REMOTE_ADDR
45.43.221.210
REMOTE_PORT
55124
REQUEST_METHOD
GET
REQUEST_URI
/list/57.html?page=2
SCRIPT_FILENAME
/usr/home/hyu7870120001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.21.65.83
SERVER_ADMIN
webmaster@hyu7870120001.my3w.com
SERVER_NAME
www.vommatec.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZiIq0woVQVMALeMDZkgAAAAD
ORIG_PATH_INFO
/list/57.html
ORIG_PATH_TRANSLATED
/usr/home/hyu7870120001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1713515219.5037
REQUEST_TIME
1713515219
PATH_INFO
/list/57.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/hyu7870120001/htdocs/application/
WXPAY_PATH
/usr/home/hyu7870120001/htdocs/vendor
THINK_VERSION
5.0.24
THINK_START_TIME
1713515219.5045
THINK_START_MEM
352120
EXT
.php
DS
/
THINK_PATH
/usr/home/hyu7870120001/htdocs/thinkphp/
LIB_PATH
/usr/home/hyu7870120001/htdocs/thinkphp/library/
CORE_PATH
/usr/home/hyu7870120001/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/hyu7870120001/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/hyu7870120001/htdocs/
EXTEND_PATH
/usr/home/hyu7870120001/htdocs/extend/
VENDOR_PATH
/usr/home/hyu7870120001/htdocs/vendor/
RUNTIME_PATH
/usr/home/hyu7870120001/htdocs/runtime/
LOG_PATH
/usr/home/hyu7870120001/htdocs/runtime/log/
CACHE_PATH
/usr/home/hyu7870120001/htdocs/runtime/cache/
TEMP_PATH
/usr/home/hyu7870120001/htdocs/runtime/temp/
CONF_PATH
/usr/home/hyu7870120001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false