[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/web/seoasl/public/../application/home/view/public/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('public/404', ['weburl' => 'http://seo.asl.com.c...', 'nartiver' => 'home'], []) in View.php line 163
  3. at View->fetch('public/404', [], [], []) in Controller.php line 120
  4. at Controller->fetch('public/404') in News.php line 184
  5. at News->detail()
  6. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  7. at App::invokeMethod([object(News), 'detail'], []) in App.php line 611
  8. at App::module(['home', 'news', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['home', 'news', 'detail'], '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('/web/seoasl/thinkphp...') in index.php line 23

Environment Variables

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

Server/Request Data

USER
nobody
HOME
/
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/web/seoasl/public/index.php
PATH_INFO
zhenghe/2115.html
PATH_TRANSLATED
/web/seoasl/public
QUERY_STRING
s=zhenghe/2115.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/zhenghe/2115.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/web/seoasl/public
SERVER_PROTOCOL
HTTP/1.1
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.13.0
REMOTE_ADDR
18.209.63.120
REMOTE_PORT
50706
SERVER_ADDR
172.19.14.49
SERVER_PORT
443
SERVER_NAME
seo.asl.com.cn
REDIRECT_STATUS
200
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_REFERER
http://seo.asl.com.cn/zhenghe/2115.html
HTTP_HOST
seo.asl.com.cn
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711652528.0863
REQUEST_TIME
1711652528
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/web/seoasl/public/../application/
UPLOAD_PATH
/web/seoasl/public/../public
RUNTIME_PATH
/web/seoasl/public/../runtime/
APP_DEBUG
true
THINK_VERSION
5.0.21
THINK_START_TIME
1711652528.0866
THINK_START_MEM
260896
EXT
.php
DS
/
THINK_PATH
/web/seoasl/thinkphp/
LIB_PATH
/web/seoasl/thinkphp/library/
CORE_PATH
/web/seoasl/thinkphp/library/think/
TRAIT_PATH
/web/seoasl/thinkphp/library/traits/
ROOT_PATH
/web/seoasl/
EXTEND_PATH
/web/seoasl/extend/
VENDOR_PATH
/web/seoasl/vendor/
LOG_PATH
/web/seoasl/public/../runtime/log/
CACHE_PATH
/web/seoasl/public/../runtime/cache/
TEMP_PATH
/web/seoasl/public/../runtime/temp/
CONF_PATH
/web/seoasl/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false

5 0 0