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

模板文件不存在:/www/wwwroot/blog.wien.ren/public/themes/BookStars/user/login.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 146
  2. at Think->fetch() in View.php line 125
  3. at View->think\{closure}() in View.php line 157
  4. at View->getContent() in View.php line 126
  5. at View->fetch() in HomeBaseController.php line 82
  6. at HomeBaseController->fetch() in LoginController.php line 40
  7. at LoginController->index()
  8. at ReflectionMethod->invokeArgs() in Container.php line 345
  9. at Container->invokeReflectMethod() in Controller.php line 146
  10. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  11. at Pipeline->think\{closure}() in Pipeline.php line 66
  12. at Pipeline->then() in Controller.php line 149
  13. at Controller->exec() in Dispatch.php line 52
  14. at Dispatch->run() in Route.php line 772
  15. at Route->think\{closure}() in Pipeline.php line 59
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 773
  18. at Route->dispatch() in Http.php line 217
  19. at Http->dispatchToRoute() in Http.php line 207
  20. at Http->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in SessionInit.php line 58
  22. at SessionInit->handle()
  23. at call_user_func() in Middleware.php line 134
  24. at Middleware->think\{closure}() in Pipeline.php line 85
  25. at Pipeline->think\{closure}() in TraceDebug.php line 71
  26. at TraceDebug->handle()
  27. at call_user_func() in Middleware.php line 134
  28. at Middleware->think\{closure}() in Pipeline.php line 85
  29. at Pipeline->think\{closure}() in Pipeline.php line 66
  30. at Pipeline->then() in Http.php line 208
  31. at Http->runWithRequest() in Http.php line 171
  32. at Http->run() in index.php line 32

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
last_time 1711641216
login_http_referer http://blog.wien.ren/user/favorite/add/id/25.html
Server/Request Data
USER www
HOME /home/www
HTTP_HOST blog.wien.ren
HTTP_REFERER http://blog.wien.ren/user/favorite/add/id/25.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME blog.wien.ren
SERVER_PORT 80
SERVER_ADDR 172.17.32.193
REMOTE_PORT 35622
REMOTE_ADDR 18.232.88.17
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/blog.wien.ren/public
DOCUMENT_URI /index.php
REQUEST_URI /user/login/index.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=user/login/index.html
SCRIPT_FILENAME /www/wwwroot/blog.wien.ren/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711641216.8868
REQUEST_TIME 1711641216
0.108744s