[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:./template//pc/yinxi2021/._template__pc_yinxi2021__.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//pc/yinxi...', ['webname' => '...', 'sitetitle' => '...', 'sitekeywords' => '...', ...], []) in View.php line 192
  3. at View->fetch('./template//pc/yinxi...', ['webname' => '...', 'sitetitle' => '...', 'sitekeywords' => '...', ...], [], false) in View.php line 42
  4. at View->output('./template//pc/yinxi...') in Response.php line 396
  5. at Response->getContent() in Response.php line 128
  6. at Response->send() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_REDIRECT_UNIQUE_ID ZcKm@qxyaOSPGLb95cVhxgAAAAk
REDIRECT_REDIRECT_PHPRC /home/yinxicyci4njxri/others
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZcKm@qxyaOSPGLb95cVhxgAAAAk
REDIRECT_PHPRC /home/yinxicyci4njxri/others
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID ZcKm@qxyaOSPGLb95cVhxgAAAAk
PHPRC /home/yinxicyci4njxri/others
HTTP_X_FORWARDED_FOR 173.232.242.158
HTTP_X_REAL_IP 173.232.242.158
HTTP_HOST www.yinxi.com.cn
HTTP_CONNECTION close
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.0; +https://openai.com/gptbot)
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
Apache Server at www.yinxi.com.cn Port 80
SERVER_SOFTWARE Apache
SERVER_NAME www.yinxi.com.cn
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 173.232.242.158
DOCUMENT_ROOT /home/yinxicyci4njxri/wwwroot
REQUEST_SCHEME http
CONTEXT_PREFIX /php-run-as-cgi
CONTEXT_DOCUMENT_ROOT /usr/php7.0/bin
SERVER_ADMIN webmaster@yinxi
SCRIPT_FILENAME /home/yinxicyci4njxri/wwwroot/index.php
REMOTE_PORT 48748
REDIRECT_URL /index.php
REDIRECT_QUERY_STRING s=/kashilonggu/
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING s=/kashilonggu/
REQUEST_URI //kashilonggu/
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /usr/php7.0/bin/php-cgi
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /home/yinxicyci4njxri/wwwroot/index.php
ORIG_SCRIPT_NAME /php-run-as-cgi/php-cgi
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1707255546.3393
REQUEST_TIME 1707255546
Environment Variablesempty
ThinkPHP Constants
DS /
APP_PATH /home/yinxicyci4njxri/wwwroot/application/
APP_DEBUG true