[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:./template//pc/ximate2022/._template__pc_ximate2022__.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/ximat...', ['webname' => '...', 'sitetitle' => '...', 'sitekeywords' => '...', ...], []) in View.php line 192
  3. at View->fetch('./template//pc/ximat...', ['webname' => '...', 'sitetitle' => '...', 'sitekeywords' => '...', ...], [], false) in View.php line 42
  4. at View->output('./template//pc/ximat...') 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
DOCUMENT_ROOT /usr/home/qxu1539450285/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_HOST www.xmtjs.com.cn
HTTP_USER_AGENT claudebot
PATH /bin:/usr/bin
PHPRC /var/www/php70/hichina_ini/qxu1539450285
QUERY_STRING s=/shebeizhanshi/
REDIRECT_DOCUMENT_ROOT /usr/home/qxu1539450285/htdocs
REDIRECT_GATEWAY_INTERFACE CGI/1.1
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_HOST www.xmtjs.com.cn
REDIRECT_HTTP_USER_AGENT claudebot
REDIRECT_PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
REDIRECT_PATH_INFO /
REDIRECT_PATH_TRANSLATED /usr/home/qxu1539450285/htdocs/index.php
REDIRECT_QUERY_STRING s=/shebeizhanshi/
REDIRECT_REMOTE_ADDR 3.237.232.196
REDIRECT_REMOTE_PORT 57296
REDIRECT_REQUEST_METHOD GET
REDIRECT_REQUEST_URI /shebeizhanshi/
REDIRECT_SCRIPT_FILENAME /usr/home/qxu1539450285/htdocs/shebeizhanshi
REDIRECT_SCRIPT_NAME /shebeizhanshi
REDIRECT_SCRIPT_URI http://www.xmtjs.com.cn/shebeizhanshi/
REDIRECT_SCRIPT_URL /shebeizhanshi/
REDIRECT_SERVER_ADDR 121.42.108.150
REDIRECT_SERVER_ADMIN webmaster@qxu1539450285.my3w.com
REDIRECT_SERVER_NAME www.xmtjs.com.cn
REDIRECT_SERVER_PORT 80
REDIRECT_SERVER_PROTOCOL HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgaCngofUnYAAHRKEEgAAAAU
REDIRECT_URL /shebeizhanshi/
REMOTE_ADDR 3.237.232.196
REMOTE_PORT 57296
REQUEST_METHOD GET
REQUEST_URI /shebeizhanshi/
SCRIPT_FILENAME /usr/home/qxu1539450285/htdocs/index.php
SCRIPT_NAME /index.php
SCRIPT_URI http://www.xmtjs.com.cn/shebeizhanshi/
SCRIPT_URL /shebeizhanshi/
SERVER_ADDR 121.42.108.150
SERVER_ADMIN webmaster@qxu1539450285.my3w.com
SERVER_NAME www.xmtjs.com.cn
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
UNIQUE_ID ZgaCngofUnYAAHRKEEgAAAAU
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711702686.52
REQUEST_TIME 1711702686
Environment Variablesempty
ThinkPHP Constants
DS /
APP_PATH /data/home/qxu1539450285/htdocs/application/
APP_DEBUG true