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

模板文件不存在:./template/default/index/html/honor_index.html

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

Call Stack

  1. in Think.php line 150
  2. at Think->fetch('./template/default/i...', ['info' => null, 'cate' => object(Cate), 'fields' => ['id' => ['id' => 209, 'module_id' => 18, 'field' => 'id', ...], 'cate_id' => ['id' => 233, 'module_id' => 18, 'field' => 'cate_id', ...], 'title' => ['id' => 234, 'module_id' => 18, 'field' => 'title', ...], ...], ...]) in View.php line 90
  3. at View->think\{closure}() in View.php line 126
  4. at View->getContent(object(Closure)) in View.php line 91
  5. at View->fetch('honor_index')
  6. at call_user_func_array([object(View), 'fetch'], ['honor_index']) in Facade.php line 96
  7. at Facade::__callStatic('fetch', ['honor_index']) in Error.php line 92
  8. at Error->index()
  9. at ReflectionMethod->invokeArgs(object(Error), []) in Container.php line 343
  10. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), []) in Controller.php line 110
  11. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  12. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  13. at Pipeline->then(object(Closure)) in Controller.php line 113
  14. at Controller->exec() in Dispatch.php line 89
  15. at Dispatch->run() in Route.php line 772
  16. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  17. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  18. at Pipeline->then(object(Closure)) in Route.php line 773
  19. at Route->dispatch(object(Request), null) in Http.php line 216
  20. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  21. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  22. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  23. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  24. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  25. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  26. at MultiApp->handle(object(Request), object(Closure))
  27. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  28. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  29. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  30. at SessionInit->handle(object(Request), object(Closure))
  31. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  32. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  33. at Pipeline->think\{closure}(object(Request)) in InjectJwt.php line 14
  34. at InjectJwt->handle(object(Request), object(Closure))
  35. at call_user_func([object(InjectJwt), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  36. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  37. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  38. at TraceDebug->handle(object(Request), object(Closure))
  39. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  40. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  41. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  42. at Pipeline->then(object(Closure)) in Http.php line 207
  43. at Http->runWithRequest(object(Request)) in Http.php line 170
  44. at Http->run() in index.php line 23

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_HOST bsytjc.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.bsytjc.com
SERVER_PORT 443
SERVER_ADDR 172.17.250.116
REMOTE_PORT 52822
REMOTE_ADDR 45.197.36.61
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.bsytjc.com/public_html/public
DOCUMENT_URI /index.php
REQUEST_URI /culture.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/culture.html
SCRIPT_FILENAME /www/wwwroot/www.bsytjc.com/public_html/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1780394949.0216
REQUEST_TIME 1780394949
0.107830s