#0 [0]RuntimeException in Php.php line 81

模板文件不存在:/mnt/www.first-priority.com.cn/public/index.html

  1. public function fetch(string $template, array $data = []): void
  2. {
  3. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  4. // 获取模板文件名
  5. $template = $this->parseTemplate($template);
  6. }
  7. // 模板不存在 抛出异常
  8. if (!is_file($template)) {
  9. throw new RuntimeException('template not exists:' . $template);
  10. }
  11. $this->template = $template;
  12. extract($data, EXTR_OVERWRITE);
  13. include $this->template;
  14. }

Call Stack

  1. in Php.php line 81
  2. at Php->fetch() in View.php line 90
  3. at View->think\{closure}() in View.php line 122
  4. at View->getContent() in View.php line 91
  5. at View->fetch() in common.php line 131
  6. at view() in app.php line 15
  7. at Http->{closure}() in Container.php line 292
  8. at Container->invokeFunction() in Container.php line 356
  9. at Container->invoke() in Callback.php line 27
  10. at Callback->exec() in Dispatch.php line 96
  11. at Dispatch->run() in Route.php line 747
  12. at Route->think\{closure}() in Pipeline.php line 59
  13. at Pipeline->think\{closure}() in Pipeline.php line 65
  14. at Pipeline->then() in Route.php line 748
  15. at Route->dispatch() in Http.php line 213
  16. at Http->dispatchToRoute() in Http.php line 203
  17. at Http->think\{closure}() in Pipeline.php line 59
  18. at Pipeline->think\{closure}() in SessionInit.php line 67
  19. at SessionInit->handle()
  20. at call_user_func() in Middleware.php line 142
  21. at Middleware->think\{closure}() in Pipeline.php line 84
  22. at Pipeline->think\{closure}() in InjectJwt.php line 14
  23. at InjectJwt->handle()
  24. at call_user_func() in Middleware.php line 142
  25. at Middleware->think\{closure}() in Pipeline.php line 84
  26. at Pipeline->think\{closure}() in TraceDebug.php line 71
  27. at TraceDebug->handle()
  28. at call_user_func() in Middleware.php line 142
  29. at Middleware->think\{closure}() in Pipeline.php line 84
  30. at Pipeline->think\{closure}() in MultiApp.php line 65
  31. at MultiApp->handle()
  32. at call_user_func() in Middleware.php line 142
  33. at Middleware->think\{closure}() in Pipeline.php line 84
  34. at Pipeline->think\{closure}() in Pipeline.php line 65
  35. at Pipeline->then() in Http.php line 204
  36. at Http->runWithRequest() in Http.php line 162
  37. at Http->run() in index.php line 16

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.first-priority.com.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.first-priority.com.cn
SERVER_PORT 80
SERVER_ADDR 172.22.37.29
REMOTE_PORT 33796
REMOTE_ADDR 54.173.221.132
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /mnt/www.first-priority.com.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /en/law.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//en/law.html
SCRIPT_FILENAME /mnt/www.first-priority.com.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF
REQUEST_TIME_FLOAT 1711662440.6358
REQUEST_TIME 1711662440
Environment Variables
APP_DEBUG 1
JWT_SECRET f5d66ec6fcdc3e327c3b10c17412a1a9
DATABASE_TYPE mysql
DATABASE_HOSTNAME 127.0.0.1
DATABASE_HOSTPORT 3306
DATABASE_USERNAME root
DATABASE_PASSWORD pqa5vlwlxF5TyBa0
DATABASE_DATABASE first_priority
DATABASE_PREFIX hs_
DATABASE_CHARSET utf8
DATABASE_DEBUG
ThinkPHP Constants
_INDEX_ /mnt/www.first-priority.com.cn/public
_STATIC_ /system/