[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/home/codes/web/www.guyuetravel.com/public/../application/index/view/index/404.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('/home/codes/web/www....', ['host' => 'http://www.guyuetrav...', 'nolink' => ''], []) in View.php line 163
  3. at View->fetch('404', ['host' => 'http://www.guyuetrav...', 'nolink' => ''], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('404') in Index.php line 276
  5. at Index->article('channel_hsdh')
  6. at ReflectionMethod->invokeArgs(object(Index), ['channel_hsdh']) in App.php line 343
  7. at App::invokeMethod([object(Index), 'article'], []) in App.php line 611
  8. at App::module(['index', 'index', 'article'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'article'], '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('/home/codes/web/www....') in index.php line 20

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_CONNECTION
close
HTTP_REMOTE_HOST
3.82.58.213
HTTP_X_FORWARDED_FOR
3.82.58.213
HTTP_X_REAL_IP
3.82.58.213
HTTP_HOST
www.guyuetravel.com
PATH_INFO
/canarticle/channel_hsdh
REDIRECT_STATUS
200
SERVER_NAME
www.guyuetravel.com
SERVER_PORT
80
SERVER_ADDR
192.168.122.114
REMOTE_PORT
35868
REMOTE_ADDR
192.168.122.100
SERVER_SOFTWARE
nginx/1.8.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/codes/web/www.guyuetravel.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/canarticle/channel_hsdh
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/canarticle/channel_hsdh
SCRIPT_FILENAME
/home/codes/web/www.guyuetravel.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711700416.7054
REQUEST_TIME
1711700416
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/codes/web/www.guyuetravel.com/public/../application/
MEMBER_PATH
/home/codes/web/www.guyuetravel.com/public/../runtime/member/
GZIP_ENABLE
true
THINK_VERSION
5.0.24
THINK_START_TIME
1711700416.706
THINK_START_MEM
396856
EXT
.php
DS
/
THINK_PATH
/home/codes/web/www.guyuetravel.com/thinkphp/
LIB_PATH
/home/codes/web/www.guyuetravel.com/thinkphp/library/
CORE_PATH
/home/codes/web/www.guyuetravel.com/thinkphp/library/think/
TRAIT_PATH
/home/codes/web/www.guyuetravel.com/thinkphp/library/traits/
ROOT_PATH
/home/codes/web/www.guyuetravel.com/
EXTEND_PATH
/home/codes/web/www.guyuetravel.com/extend/
VENDOR_PATH
/home/codes/web/www.guyuetravel.com/vendor/
RUNTIME_PATH
/home/codes/web/www.guyuetravel.com/runtime/
LOG_PATH
/home/codes/web/www.guyuetravel.com/runtime/log/
CACHE_PATH
/home/codes/web/www.guyuetravel.com/runtime/cache/
TEMP_PATH
/home/codes/web/www.guyuetravel.com/runtime/temp/
CONF_PATH
/home/codes/web/www.guyuetravel.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false