[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:/www/wwwroot/qlzx.meishu.org.cn/public/../templates/works/error_page.html

  1. public function fetch($template, $data = [], $config = [])
  2. {
  3. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  4. // 获取模板文件名
  5. $template = $this->parseTemplate($template);
  6. }
  7. // 模板不存在 抛出异常
  8. if (!is_file($template)) {
  9. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  10. }
  11. // 记录视图信息
  12. $this->app
  13. ->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
  14. $this->template->fetch($template, $data, $config);
  15. }

Call Stack

  1. in Think.php line 86
  2. at Think->fetch() in View.php line 192
  3. at View->fetch() in Base.php line 53
  4. at Base->fetch() in Index.php line 437
  5. at Index->error_page()
  6. at ReflectionMethod->invokeArgs() in Container.php line 373
  7. at Container->invokeMethod() in App.php line 789
  8. at App->action() in helper.php line 63
  9. at action() in Error.php line 12
  10. at Error->_empty()
  11. at ReflectionMethod->invokeArgs() in Container.php line 395
  12. at Container->invokeReflectMethod() in Module.php line 131
  13. at Module->think\route\dispatch\{closure}()
  14. at call_user_func_array() in Middleware.php line 185
  15. at Middleware->think\{closure}()
  16. at call_user_func() in Middleware.php line 130
  17. at Middleware->dispatch() in Module.php line 136
  18. at Module->exec() in Dispatch.php line 168
  19. at Dispatch->run() in App.php line 432
  20. at App->think\{closure}()
  21. at call_user_func_array() in Middleware.php line 185
  22. at Middleware->think\{closure}()
  23. at call_user_func() in Middleware.php line 130
  24. at Middleware->dispatch() in App.php line 435
  25. at App->run() in index.php line 23

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
think_ { "visitor": 1711630445 }
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST qlzx.meishu.org.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME qlzx.meishu.org.cn
SERVER_PORT 443
SERVER_ADDR 172.17.111.144
REMOTE_PORT 58118
REMOTE_ADDR 44.213.80.203
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/qlzx.meishu.org.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /year-2020/works/5-332/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/year-2020/works/5-332/
SCRIPT_FILENAME /www/wwwroot/qlzx.meishu.org.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711630445.354
REQUEST_TIME 1711630445
ALL_HTTP
Environment Variablesempty
ThinkPHP Constants
IF_PUBLIC true
ROOT_PATH /www/wwwroot/qlzx.meishu.org.cn/public/../
APP_PATH /www/wwwroot/qlzx.meishu.org.cn/public/../application/
APP_PUBLIC /www/wwwroot/qlzx.meishu.org.cn/public/../public/
PUBLIC_PATH /www/wwwroot/qlzx.meishu.org.cn/public/
DS /
ADDON_PATH /www/wwwroot/qlzx.meishu.org.cn/public/../addons/
ROOT_URL /
TEMPLATE_PATH /www/wwwroot/qlzx.meishu.org.cn/public/../templates/
FILTER_VALIDATE_BOOL 258
HTMLPURIFIER_PREFIX /www/wwwroot/qlzx.meishu.org.cn/vendor/ezyang/htmlpurifier/library
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256