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

模板文件不存在:./template/default/index/html/page_list.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('./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 122
  4. at View->getContent(object(Closure)) in View.php line 91
  5. at View->fetch('page_list')
  6. at call_user_func_array([object(View), 'fetch'], ['page_list']) in Facade.php line 96
  7. at Facade::__callStatic('fetch', ['page_list']) in Error.php line 91
  8. at Error->index()
  9. at ReflectionMethod->invokeArgs(object(Error), []) in Container.php line 342
  10. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), ['cate' => '103']) 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 65
  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 760
  16. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  17. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  18. at Pipeline->then(object(Closure)) in Route.php line 761
  19. at Route->dispatch(object(Request), object(Closure)) in Http.php line 210
  20. at Http->dispatchToRoute(object(Request)) in Http.php line 200
  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 65
  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 84
  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 84
  33. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  34. at Pipeline->then(object(Closure)) in Http.php line 201
  35. at Http->runWithRequest(object(Request)) in Http.php line 162
  36. at Http->run() in index.php line 25

Environment Variables

GET Data
cate 103
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /index/Page/index.html?cate=103
QUERY_STRING s=/index/Page/index.html&cate=103
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING s=/index/Page/index.html&cate=103
REDIRECT_URL /index/Page/index.html
REMOTE_PORT 44084
SCRIPT_FILENAME /wwwroot/lty.51jhz.com/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /wwwroot/lty.51jhz.com/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /wwwroot/lty.51jhz.com/public
REMOTE_ADDR 52.207.218.95
SERVER_PORT 80
SERVER_ADDR 172.31.97.249
SERVER_NAME lingtongyun.cn
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at lingtongyun.cn Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST lingtongyun.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711640780.4525
REQUEST_TIME 1711640780