系统发生错误

[0] TemplateNotFoundException in Think.php line 80

模板文件不存在:./template/laozhang/picture/lists.html

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

Call Stack

  1. in Think.php line 80
  2. at Think->fetch('./template/laozhang/...', ['settings' => false, 'new_list' => [object(Article), object(Article), object(Article)], 'categorys' => [['id' => 1, 'parent_id' => 0, 'model_id' => 1, ...], ['id' => 2, 'parent_id' => 0, 'model_id' => 3, ...], ['id' => 3, 'parent_id' => 0, 'model_id' => 1, ...], ...], ...], []) in View.php line 127
  3. at View->fetch(null, ['settings' => false, 'new_list' => [object(Article), object(Article), object(Article)], 'categorys' => [['id' => 1, 'parent_id' => 0, 'model_id' => 1, ...], ['id' => 2, 'parent_id' => 0, 'model_id' => 3, ...], ['id' => 3, 'parent_id' => 0, 'model_id' => 1, ...], ...], ...], []) in View.php line 36
  4. at View->output(null) in Response.php line 303
  5. at Response->getContent() in Response.php line 99
  6. at Response->send() in start.php line 18
  7. at require('/www/wwwroot/shengka...') in index.php line 24

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Session
think { "member": { "id": 0 } }
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT_ENCODING br,gzip
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
PATH_INFO /index/picture/lists/category_id/index.html
HTTP_HOST shengkangfood.com
REDIRECT_STATUS 200
SERVER_NAME shengkangfood.com
SERVER_PORT 443
SERVER_ADDR 154.83.12.235
REMOTE_PORT 44560
REMOTE_ADDR 18.97.14.84
SERVER_SOFTWARE nginx/1.26.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/shengkangfood.com
DOCUMENT_URI /index.php/index/picture/lists/category_id/index.html
REQUEST_URI /index.php/index/picture/lists/category_id/index.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/shengkangfood.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/picture/lists/category_id/index.html
REQUEST_TIME_FLOAT 1768576643.0133
REQUEST_TIME 1768576643
Environment Variablesempty
ThinkPHP Constants
LZ_VERSION v1.1.5
APP_PATH /www/wwwroot/shengkangfood.com/application/
THINK_VERSION 5.0.3
THINK_START_TIME 1768576643.0137
THINK_START_MEM 404240
EXT .php
DS /
THINK_PATH /www/wwwroot/shengkangfood.com/thinkphp/
LIB_PATH /www/wwwroot/shengkangfood.com/thinkphp/library/
CORE_PATH /www/wwwroot/shengkangfood.com/thinkphp/library/think/
TRAIT_PATH /www/wwwroot/shengkangfood.com/thinkphp/library/traits/
ROOT_PATH /www/wwwroot/shengkangfood.com/
EXTEND_PATH /www/wwwroot/shengkangfood.com/extend/
VENDOR_PATH /www/wwwroot/shengkangfood.com/vendor/
RUNTIME_PATH /www/wwwroot/shengkangfood.com/runtime/
LOG_PATH /www/wwwroot/shengkangfood.com/runtime/log/
CACHE_PATH /www/wwwroot/shengkangfood.com/runtime/cache/
TEMP_PATH /www/wwwroot/shengkangfood.com/runtime/temp/
CONF_PATH /www/wwwroot/shengkangfood.com/application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false