V66.com

[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:/www/html/application/index/view/product/detail.html

  1. public function fetch($template, $data = [], $config = [])
  2. {
  3. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  4. // 获取模板文件名
  5. $template = $this->parseTemplate($template);
  6. }
  7. // 模板不存在 抛出异常
  8. if (!is_file($template)) {
  9. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  10. }
  11. // 记录视图信息
  12. $this->app
  13. ->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
  14. $this->template->fetch($template, $data, $config);
  15. }

Call Stack

  1. in Think.php line 86
  2. at Think->fetch('/www/html/applicatio...', ['Db' => 'Db', 'configs' => ['SYSTEM_NAME' => 'breo', 'SYSTEM_URL' => '', 'SYSTEM_LOGO' => '', ...], 'header_category' => [['id' => 79, 'name' => '品牌中心', 'cover' => '', ...], ['id' => 83, 'name' => '产品中心', 'cover' => '', ...], ['id' => 89, 'name' => '店铺', 'cover' => '', ...], ...], ...], []) in View.php line 192
  3. at View->fetch('detail', ['Db' => 'Db', 'configs' => ['SYSTEM_NAME' => 'breo', 'SYSTEM_URL' => '', 'SYSTEM_LOGO' => '', ...], 'header_category' => [['id' => 79, 'name' => '品牌中心', 'cover' => '', ...], ['id' => 83, 'name' => '产品中心', 'cover' => '', ...], ['id' => 89, 'name' => '店铺', 'cover' => '', ...], ...], ...], [], false) in View.php line 42
  4. at View->output('detail') in Response.php line 396
  5. at Response->getContent() in Response.php line 128
  6. at Response->send() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID 14e46b234d74e24e61f15f6e8f6bf2b2
Sessionempty
Server/Request Data
USER nginx
HOME /var/lib/nginx
HTTP_X_CLIENT_IP 50.2.185.58
HTTP_X_TRUE_IP 50.2.185.58
HTTP_X_FORWARDED_PROTO https
HTTP_WL_PROXY_CLIENT_IP 50.2.185.58
HTTP_WEB_SERVER_TYPE nginx
HTTP_X_REAL_IP 50.2.185.58
HTTP_X5_UUID 8e6040914b2b8f838a26a27cbe953dcf
HTTP_X_SINFO on
HTTP_EAGLEEYE_RPCID 0.1
HTTP_COOKIE PHPSESSID=14e46b234d74e24e61f15f6e8f6bf2b2
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_EAGLEEYE_TRACEID 2ff3857217873830701654885e240e
HTTP_X_FORWARDED_FOR 50.2.185.58
HTTP_USER_AGENT Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1
HTTP_HOST www.breo.com
REDIRECT_STATUS 200
SERVER_NAME www.breo.com
SERVER_PORT 443
SERVER_ADDR 172.31.106.39
REMOTE_PORT 57184
REMOTE_ADDR 50.2.185.58
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/html/public
DOCUMENT_URI /index.php/index/product/detail/id/13.html
REQUEST_URI /index/product/detail/id/13.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
PATH_TRANSLATED /www/html/public/index/product/detail/id/13.html
PATH_INFO /index/product/detail/id/13.html
SCRIPT_FILENAME /www/html/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/product/detail/id/13.html
REQUEST_TIME_FLOAT 1787383070.1723
REQUEST_TIME 1787383070
Environment Variablesempty
ThinkPHP Constantsempty