[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/weier.com/public/../application/index/view/index/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() in View.php line 163
  3. at View->fetch() in Index.php line 19
  4. at Index->index()
  5. at ReflectionMethod->invokeArgs() in App.php line 343
  6. at App::invokeMethod() in App.php line 611
  7. at App::module() in App.php line 456
  8. at App::exec() in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/weier.c...') in index.php line 23

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_X_MICROSOFTAJAX
Delta=true
HTTP_USER_AGENT
Mozilla/5.0 (Windows; U; Windows NT 5.2) Gecko/2008070208 Firefox/3.0.1
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
HTTP_CACHE_CONTROL
no-cache
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_X_APPLE_STORE_FRONT
143444,12
HTTP_X_APPLE_TZ
0
HTTP_REFERER
https://www.baidu.com/search/spider.htm
HTTP_HOST
www.foridea.net
PATH_INFO
/index.html
REDIRECT_STATUS
200
SERVER_NAME
weier.com
SERVER_PORT
80
SERVER_ADDR
172.28.101.234
REMOTE_PORT
57720
REMOTE_ADDR
148.135.75.178
SERVER_SOFTWARE
nginx/1.26.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/weier.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
application/x-www-form-urlencoded; charset=utf-8
REQUEST_METHOD
GET
QUERY_STRING
s=/index.html
SCRIPT_FILENAME
/www/wwwroot/weier.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1752760909.0075
REQUEST_TIME
1752760909
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/weier.com/public/../application/
THINK_VERSION
5.0.25
THINK_START_TIME
1752760909.0079
THINK_START_MEM
408544
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/weier.com/thinkphp/
LIB_PATH
/www/wwwroot/weier.com/thinkphp/library/
CORE_PATH
/www/wwwroot/weier.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/weier.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/weier.com/
EXTEND_PATH
/www/wwwroot/weier.com/extend/
VENDOR_PATH
/www/wwwroot/weier.com/vendor/
RUNTIME_PATH
/www/wwwroot/weier.com/runtime/
LOG_PATH
/www/wwwroot/weier.com/runtime/log/
CACHE_PATH
/www/wwwroot/weier.com/runtime/cache/
TEMP_PATH
/www/wwwroot/weier.com/runtime/temp/
CONF_PATH
/www/wwwroot/weier.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/weier.com/addons/
XML地图