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

模板文件不存在:../public/web/default/solutions/web.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 147
  2. at Think->fetch('../public/web/defaul...', ['title' => '...', 'template_catalog' => 'web', 'themes' => 'default', ...]) 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('/solutions/web', ['title' => '...', 'template_catalog' => 'web', 'themes' => 'default', ...])
  6. at call_user_func_array([object(View), 'fetch'], ['/solutions/web', ['title' => '...', 'template_catalog' => 'web', 'themes' => 'default', ...]]) in Facade.php line 96
  7. at Facade::__callStatic('fetch', ['/solutions/web', ['title' => '...', 'template_catalog' => 'web', 'themes' => 'default', ...]]) in ViewController.php line 120
  8. at ViewController->index()
  9. at ReflectionMethod->invokeArgs(object(ViewController), []) in Container.php line 343
  10. at Container->invokeReflectMethod(object(ViewController), object(ReflectionMethod), ['html' => 'solutions', 'html2' => 'web']) 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 116
  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), object(Closure)) in Http.php line 219
  20. at Http->dispatchToRoute(object(Request)) in Http.php line 208
  21. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  22. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  23. at TraceDebug->handle(object(Request), object(Closure))
  24. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  25. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  26. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  27. at Pipeline->then(object(Closure)) in Http.php line 209
  28. at Http->runWithRequest(object(Request)) in Http.php line 172
  29. 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_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST tmvps.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME tmvps.cn
SERVER_PORT 443
SERVER_ADDR 180.97.189.92
REMOTE_PORT 37540
REMOTE_ADDR 3.235.42.157
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/tmvps/public
DOCUMENT_URI /index.php
REQUEST_URI /solutions/web.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/solutions/web.html
SCRIPT_FILENAME /www/wwwroot/tmvps/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710821148.5512
REQUEST_TIME 1710821148
0.228592s