[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:./template/skin001/pc/html_8768/category.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('./template/skin001/p...', ['template_path' => '/template/skin001/pc', 'pub_pic' => '/upload/pic/', 'site' => ['url' => 'https://b2c.ideacms....', 'title' => 'IdeaMall商城系统...', 'logo' => 'cat/cat1.jpg', ...], ...], []) in View.php line 192
  3. at View->fetch('/category', ['template_path' => '/template/skin001/pc', 'pub_pic' => '/upload/pic/', 'site' => ['url' => 'https://b2c.ideacms....', 'title' => 'IdeaMall商城系统...', 'logo' => 'cat/cat1.jpg', ...], ...], [], false) in View.php line 42
  4. at View->output('/category') in Response.php line 396
  5. at Response->getContent() in Response.php line 128
  6. at Response->send() in index.php line 32

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
idea_ { "pid": 0 }
Server/Request Data
REDIRECT_REDIRECT_UNIQUE_ID ZgWxzetzfdn2YSjaoKCgKgAAAAQ
REDIRECT_REDIRECT_PHPRC /home/szanyehsszqaknayge/others
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgWxzetzfdn2YSjaoKCgKgAAAAQ
REDIRECT_PHPRC /home/szanyehsszqaknayge/others
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID ZgWxzetzfdn2YSjaoKCgKgAAAAQ
PHPRC /home/szanyehsszqaknayge/others
HTTP_X_FORWARDED_FOR 34.204.177.148
HTTP_X_REAL_IP 211.149.140.180
HTTP_HOST b2c.ideacms.net
HTTP_CONNECTION close
HTTP_ACCEPT_ENCODING gzip
HTTP_X_FORWARDED_PROTO http
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache Server at b2c.ideacms.net Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME b2c.ideacms.net
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 34.204.177.148
DOCUMENT_ROOT /home/szanyehsszqaknayge/wwwroot
REQUEST_SCHEME http
CONTEXT_PREFIX /php-run-as-cgi
CONTEXT_DOCUMENT_ROOT /usr/php7.0/bin
SERVER_ADMIN webmaster@szanye
SCRIPT_FILENAME /home/szanyehsszqaknayge/wwwroot/index.php
REMOTE_PORT 56666
REDIRECT_URL /index.php/goods/category/28.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /goods/category/28.html
SCRIPT_NAME /index.php
PATH_INFO /goods/category/28.html
PATH_TRANSLATED /home/szanyehsszqaknayge/wwwroot/goods/category/28.html
ORIG_PATH_INFO /index.php/goods/category/28.html
ORIG_SCRIPT_NAME /php-run-as-cgi/php-cgi
ORIG_SCRIPT_FILENAME /usr/php7.0/bin/php-cgi
ORIG_PATH_TRANSLATED /home/szanyehsszqaknayge/wwwroot/index.php/goods/category/28.html
PHP_SELF /index.php/goods/category/28.html
REQUEST_TIME_FLOAT 1711649229.8182
REQUEST_TIME 1711649229
Environment Variablesempty
ThinkPHP Constants
PUBLIC_PATH /public/
UPLOAD_PATH /upload/
VIEW_PATH ./template/skin001/pc/html_8768/