[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/users/CH538736/WEB/application/index/view/index/list_product_y.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('/www/users/CH538736/...', ['user' => null, 'site' => ['name' => '我的网站', 'beian' => '', 'cdnurl' => '/public', ...], 'config' => ['site' => ['name' => '我的网站', 'cdnurl' => '/public', 'version' => 1638468093, ...], 'upload' => ['cdnurl' => '/public', 'uploadurl' => '/index/ajax/upload', 'bucket' => 'local', ...], 'modulename' => 'index', ...], ...], []) in View.php line 163
  3. at View->fetch('list_product_y') in Index.php line 62
  4. at Index->type()
  5. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  6. at App::invokeMethod([object(Index), 'type'], []) in App.php line 611
  7. at App::module(['index', 'index', 'type'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'type']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/users/CH538736/...') in index.php line 23

Environment Variables

GET Data

type
25
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_REDIRECT_UNIQUE_ID
YakJ-X8AAAEAAFWQau8AAAAA
REDIRECT_REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
YakJ-X8AAAEAAFWQau8AAAAA
REDIRECT_HANDLER
application/x-httpd-php7
REDIRECT_STATUS
200
UNIQUE_ID
YakJ-X8AAAEAAFWQau8AAAAA
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.zzxueshan.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/usr/bin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.zzxueshan.com
SERVER_ADDR
122.114.176.226
SERVER_PORT
80
REMOTE_ADDR
164.88.229.135
DOCUMENT_ROOT
/www/users/CH538736/WEB
SERVER_ADMIN
vhost@zzidc.com
SCRIPT_FILENAME
/www/users/CH538736/WEB/index.php
REMOTE_PORT
20001
REDIRECT_QUERY_STRING
type=25
REDIRECT_URL
/index.php/index/index/type.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
type=25
REQUEST_URI
/index/index/type.html?type=25
SCRIPT_NAME
/index.php
PATH_INFO
/index/index/type.html
PATH_TRANSLATED
/www/users/CH538736/WEB/index/index/type.html
ORIG_PATH_INFO
/index.php/index/index/type.html
ORIG_SCRIPT_NAME
/php73-cgi
ORIG_SCRIPT_FILENAME
/usr/local/zend/php7.3/bin/php-cgi
ORIG_PATH_TRANSLATED
/www/users/CH538736/WEB/index.php/index/index/type.html
PHP_SELF
/index.php/index/index/type.html
REQUEST_TIME_FLOAT
1638468093.0993
REQUEST_TIME
1638468093
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/users/CH538736/WEB/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1638468093.1016
THINK_START_MEM
398936
EXT
.php
DS
/
THINK_PATH
/www/users/CH538736/WEB/thinkphp/
LIB_PATH
/www/users/CH538736/WEB/thinkphp/library/
CORE_PATH
/www/users/CH538736/WEB/thinkphp/library/think/
TRAIT_PATH
/www/users/CH538736/WEB/thinkphp/library/traits/
ROOT_PATH
/www/users/CH538736/WEB/
EXTEND_PATH
/www/users/CH538736/WEB/extend/
VENDOR_PATH
/www/users/CH538736/WEB/vendor/
RUNTIME_PATH
/www/users/CH538736/WEB/runtime/
LOG_PATH
/www/users/CH538736/WEB/runtime/log/
CACHE_PATH
/www/users/CH538736/WEB/runtime/cache/
TEMP_PATH
/www/users/CH538736/WEB/runtime/temp/
CONF_PATH
/www/users/CH538736/WEB/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/users/CH538736/WEB/addons/