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

模板文件不存在:/mnt/wwwroot/www.jufaanli.com/app/Home/View/search/books.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 90
  3. at View->think\{closure}() in View.php line 126
  4. at View->getContent() in View.php line 91
  5. at View->fetch()
  6. at call_user_func_array() in Facade.php line 96
  7. at Facade::__callStatic() in SearchController.php line 2465
  8. at SearchController->books()
  9. at ReflectionMethod->invokeArgs() in Container.php line 344
  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 Pipeline.php line 66
  13. at Pipeline->then() in Controller.php line 113
  14. at Controller->exec() in Dispatch.php line 80
  15. at Dispatch->run() in Route.php line 797
  16. at Route->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in Pipeline.php line 66
  18. at Pipeline->then() in Route.php line 798
  19. at Route->dispatch() in Http.php line 216
  20. at Http->dispatchToRoute() in Http.php line 206
  21. at Http->think\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in MultiApp.php line 51
  23. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  24. at Pipeline->think\{closure}() in SessionInit.php line 66
  25. at SessionInit->handle()
  26. at call_user_func() in Middleware.php line 142
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  29. at LoadLangPack->handle()
  30. at call_user_func() in Middleware.php line 142
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in CheckRequestCache.php line 94
  33. at CheckRequestCache->handle()
  34. at call_user_func() in Middleware.php line 142
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in Pipeline.php line 66
  37. at Pipeline->then() in MultiApp.php line 52
  38. at MultiApp->handle()
  39. at call_user_func() in Middleware.php line 142
  40. at Middleware->think\{closure}() in Pipeline.php line 85
  41. at Pipeline->think\{closure}() in SessionInit.php line 66
  42. at SessionInit->handle()
  43. at call_user_func() in Middleware.php line 142
  44. at Middleware->think\{closure}() in Pipeline.php line 85
  45. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  46. at LoadLangPack->handle()
  47. at call_user_func() in Middleware.php line 142
  48. at Middleware->think\{closure}() in Pipeline.php line 85
  49. at Pipeline->think\{closure}() in CheckRequestCache.php line 94
  50. at CheckRequestCache->handle()
  51. at call_user_func() in Middleware.php line 142
  52. at Middleware->think\{closure}() in Pipeline.php line 85
  53. at Pipeline->think\{closure}() in Pipeline.php line 66
  54. at Pipeline->then() in Http.php line 207
  55. at Http->runWithRequest() in Http.php line 170
  56. at Http->run() in index.php line 500

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
TEMP /tmp
TMPDIR /tmp
TMP /tmp
PATH /usr/local/bin:/usr/bin:/bin
USER www
HOME /home/www
HTTP_CDN_SRC_IP 54.157.35.140
HTTP_VIA CHN-SCchengdu-AREACT1-CACHE53, CHN-GDdongguan-GLOBAL1-CACHE36
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_X_CLOUDWAF_TRAFFIC_TAG 1
HTTP_X_FORWARDED_PROTO https
HTTP_HOST www.jufaanli.com
HTTP_X_FORWARDED_FOR 54.157.35.140, 118.123.207.54, 183.2.201.37
HTTP_X_HWWAF_CLIENT_IP 183.2.201.37
HTTP_X_HWWAF_REAL_IP 183.2.201.37
HTTP_X_REAL_IP 183.2.201.37
SCRIPT_FILENAME /mnt/wwwroot/www.jufaanli.com/public/index.php
REDIRECT_STATUS 200
SERVER_NAME www.jufaanli.com
SERVER_PORT 443
SERVER_ADDR 192.168.0.138
REMOTE_PORT 40884
REMOTE_ADDR 124.70.126.55
SERVER_SOFTWARE nginx/1.17.8
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /mnt/wwwroot/www.jufaanli.com/public
DOCUMENT_URI /index.php
REQUEST_URI /books
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/books
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711711505.0034
REQUEST_TIME 1711711505