[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/webHome/host1407468/www/application/index/view/gb/product3.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('', ['list' => object(PageHome), 'page' => null, 'ncid' => 39, ...], []) in View.php line 163
  3. at View->fetch('', [], []) in View.php line 36
  4. at View->output('') in Response.php line 309
  5. at Response->getContent() in Response.php line 94
  6. at Response->send() in start.php line 19
  7. at require('/webHome/host1407468...') in index.php line 19

Environment Variables

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

Server/Request Data

USER
host1407468
HOME
/webHome/host1407468
FCGI_ROLE
RESPONDER
QUERY_STRING
s=gb/product3.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/gb/product3.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/webHome/host1407468/www
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.21.0
REMOTE_ADDR
3.239.214.173
REMOTE_PORT
54396
SERVER_ADDR
101.36.223.90
SERVER_PORT
80
SERVER_NAME
shengweijx.com
REDIRECT_STATUS
200
SCRIPT_FILENAME
/webHome/host1407468/www/index.php
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.shengweijx.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710826167.1075
REQUEST_TIME
1710826167
PATH_INFO
gb/product3.html

Environment Variables

USER
host1407468
HOME
/webHome/host1407468
FCGI_ROLE
RESPONDER
QUERY_STRING
s=gb/product3.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/gb/product3.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/webHome/host1407468/www
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.21.0
REMOTE_ADDR
3.239.214.173
REMOTE_PORT
54396
SERVER_ADDR
101.36.223.90
SERVER_PORT
80
SERVER_NAME
shengweijx.com
REDIRECT_STATUS
200
SCRIPT_FILENAME
/webHome/host1407468/www/index.php
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.shengweijx.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710826167.1075
REQUEST_TIME
1710826167

ThinkPHP Constants

APP_PATH
/webHome/host1407468/www/application/
BIND_MODULE
index
THINK_VERSION
5.0.24
THINK_START_TIME
1710826167.1077
THINK_START_MEM
240432
EXT
.php
DS
/
THINK_PATH
/webHome/host1407468/www/thinkphp/
LIB_PATH
/webHome/host1407468/www/thinkphp/library/
CORE_PATH
/webHome/host1407468/www/thinkphp/library/think/
TRAIT_PATH
/webHome/host1407468/www/thinkphp/library/traits/
ROOT_PATH
/webHome/host1407468/www/
EXTEND_PATH
/webHome/host1407468/www/extend/
VENDOR_PATH
/webHome/host1407468/www/vendor/
RUNTIME_PATH
/webHome/host1407468/www/runtime/
LOG_PATH
/webHome/host1407468/www/runtime/log/
CACHE_PATH
/webHome/host1407468/www/runtime/cache/
TEMP_PATH
/webHome/host1407468/www/runtime/temp/
CONF_PATH
/webHome/host1407468/www/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false