[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/yyygf.com/application/portal/view/contact/contact.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('', ['setting' => ['telephone' => '400-656-9886', 'title' => '...', 'author' => 'YEYON', ...], 'static_path' => '/public/static/', 'common_path' => '/public/static/commo...', ...], []) in View.php line 163
  3. at View->fetch('', [], [], []) in Controller.php line 120
  4. at Controller->fetch() in Contact.php line 15
  5. at Contact->contact()
  6. at ReflectionMethod->invokeArgs(object(Contact), []) in App.php line 196
  7. at App::invokeMethod([object(Contact), 'contact'], []) in App.php line 412
  8. at App::module([null, 'contact', 'contact'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => [null, 'contact', 'contact'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/yyygf.c...') in index.php line 15

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/yyygf.com/index.php
QUERY_STRING
s=/contact/index.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/contact/index.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/yyygf.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.22.1
REMOTE_ADDR
44.202.128.177
REMOTE_PORT
58144
SERVER_ADDR
172.31.20.93
SERVER_PORT
80
SERVER_NAME
yyygf.com
REDIRECT_STATUS
200
PATH_INFO
/contact/index.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
yyygf.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711636990.071
REQUEST_TIME
1711636990
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
IS_PUBLIC
false
ROOT_PATH
/www/wwwroot/yyygf.com/
PUBLIC_NAME
public
APP_PATH
/www/wwwroot/yyygf.com/application/
WEJOY_PATH
/www/wwwroot/yyygf.com/zhmx/
EXTEND_PATH
/www/wwwroot/yyygf.com/zhmx/extend/
VENDOR_PATH
/www/wwwroot/yyygf.com/zhmx/vendor/
THINK_VERSION
5.0.24
THINK_START_TIME
1711636990.0716
THINK_START_MEM
292024
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/yyygf.com/zhmx/thinkphp/
LIB_PATH
/www/wwwroot/yyygf.com/zhmx/thinkphp/library/
CORE_PATH
/www/wwwroot/yyygf.com/zhmx/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/yyygf.com/zhmx/thinkphp/library/traits/
RUNTIME_PATH
/www/wwwroot/yyygf.com/runtime/
LOG_PATH
/www/wwwroot/yyygf.com/runtime/log/
CACHE_PATH
/www/wwwroot/yyygf.com/runtime/cache/
TEMP_PATH
/www/wwwroot/yyygf.com/runtime/temp/
CONF_PATH
/www/wwwroot/yyygf.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false