#0 [0]TemplateNotFoundException in Think.php line 128

模板文件不存在:/mnt/wwwroot/bjhnqysh.com/view/index/article/index.html

  1. }
  2. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  3. // 获取模板文件名
  4. $template = $this->parseTemplate($template);
  5. }
  6. // 模板不存在 抛出异常
  7. if (!is_file($template)) {
  8. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  9. }
  10. $this->template->fetch($template, $data);
  11. }
  12. /**
  13. * 渲染模板内容
  14. * @access public
  15. * @param string $template 模板内容

Call Stack

  1. in Think.php line 128
  2. at Think->fetch() in View.php line 90
  3. at View->think\{closure}() in View.php line 122
  4. at View->getContent() in View.php line 91
  5. at View->fetch()
  6. at call_user_func_array() in Facade.php line 97
  7. at Facade::__callStatic() in Article.php line 171
  8. at Article->index()
  9. at ReflectionMethod->invokeArgs() in Container.php line 345
  10. at Container->invokeReflectMethod() in Controller.php line 110
  11. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Browers.php line 57
  13. at Browers->handle()
  14. at call_user_func() in Middleware.php line 134
  15. at Middleware->think\{closure}() in Pipeline.php line 85
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Controller.php line 113
  18. at Controller->exec() in Dispatch.php line 52
  19. at Dispatch->run() in Route.php line 755
  20. at Route->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in Pipeline.php line 66
  22. at Pipeline->then() in Route.php line 756
  23. at Route->dispatch() in Http.php line 208
  24. at Http->dispatchToRoute() in Http.php line 198
  25. at Http->think\{closure}() in Pipeline.php line 59
  26. at Pipeline->think\{closure}() in MultiApp.php line 51
  27. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  28. at Pipeline->think\{closure}() in Pipeline.php line 66
  29. at Pipeline->then() in MultiApp.php line 52
  30. at MultiApp->handle()
  31. at call_user_func() in Middleware.php line 134
  32. at Middleware->think\{closure}() in Pipeline.php line 85
  33. at Pipeline->think\{closure}() in SessionInit.php line 58
  34. at SessionInit->handle()
  35. at call_user_func() in Middleware.php line 134
  36. at Middleware->think\{closure}() in Pipeline.php line 85
  37. at Pipeline->think\{closure}() in TraceDebug.php line 71
  38. at TraceDebug->handle()
  39. at call_user_func() in Middleware.php line 134
  40. at Middleware->think\{closure}() in Pipeline.php line 85
  41. at Pipeline->think\{closure}() in Pipeline.php line 66
  42. at Pipeline->then() in Http.php line 199
  43. at Http->runWithRequest() in Http.php line 162
  44. at Http->run() in index.php line 22

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST bjhnqysh.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME bjhnqysh.com
SERVER_PORT 80
SERVER_ADDR 172.31.95.151
REMOTE_PORT 35986
REMOTE_ADDR 54.242.75.224
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /mnt/wwwroot/bjhnqysh.com/public
DOCUMENT_URI /index.php
REQUEST_URI /about/40.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/about/40.html
SCRIPT_FILENAME /mnt/wwwroot/bjhnqysh.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710817805.6194
REQUEST_TIME 1710817805