[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:/usr/home/wh-ab2xzw3txhh0bsj4xm9/htdocs/application/index/view/index/.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('/usr/home/wh-ab2xzw3...', ['chnnler' => [['tid' => 1, 'name' => '关于3499拉斯维加斯官网', 'img' => '', ...], ['tid' => 2, 'name' => '...', 'img' => '', ...], ['tid' => 13, 'name' => '案例分析', 'img' => '', ...], ...], 'html' => '', 'postion' => '首页', ...], []) in View.php line 192
  3. at View->fetch('index/', ['chnnler' => [['tid' => 1, 'name' => '关于3499拉斯维加斯官网', 'img' => '', ...], ['tid' => 2, 'name' => '...', 'img' => '', ...], ['tid' => 13, 'name' => '案例分析', 'img' => '', ...], ...], 'html' => '', 'postion' => '首页', ...], [], false) in View.php line 42
  4. at View->output('index/') 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
Cookiesempty
Sessionempty
Server/Request Data
DOCUMENT_ROOT /usr/home/wh-ab2xzw3txhh0bsj4xm9/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_HOST www.arctechsolar.cn
HTTP_USER_AGENT claudebot
PATH /bin
PHPRC /var/www/php70/hichina_ini/wh-ab2xzw3txhh0bsj4xm9
QUERY_STRING
REDIRECT_DOCUMENT_ROOT /usr/home/wh-ab2xzw3txhh0bsj4xm9/htdocs
REDIRECT_GATEWAY_INTERFACE CGI/1.1
REDIRECT_HTTPS on
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_ACCEPT_ENCODING gzip
REDIRECT_HTTP_HOST www.arctechsolar.cn
REDIRECT_HTTP_USER_AGENT claudebot
REDIRECT_PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO news/27620/
REDIRECT_PATH_TRANSLATED redirect:/index.php/
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR 170.130.202.250
REDIRECT_REMOTE_PORT 38332
REDIRECT_REQUEST_METHOD GET
REDIRECT_REQUEST_URI //news/27620/
REDIRECT_SCRIPT_FILENAME /usr/home/wh-ab2xzw3txhh0bsj4xm9/htdocs/news
REDIRECT_SCRIPT_NAME /news
REDIRECT_SERVER_ADDR 172.22.250.27
REDIRECT_SERVER_ADMIN webmaster@wh-ab2xzw3txhh0bsj4xm9.my3w.com
REDIRECT_SERVER_NAME www.arctechsolar.cn
REDIRECT_SERVER_PORT 443
REDIRECT_SERVER_PROTOCOL HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_SSL_TLS_SNI www.arctechsolar.cn
REDIRECT_STATUS 200
REDIRECT_TZ Asia/Shanghai
REDIRECT_UNIQUE_ID ZgVEj6wW@hsAAwfSHuQAAAAe
REDIRECT_URL /news/27620/
REMOTE_ADDR 170.130.202.250
REMOTE_PORT 38332
REQUEST_METHOD GET
REQUEST_URI //news/27620/
SCRIPT_FILENAME /usr/home/wh-ab2xzw3txhh0bsj4xm9/htdocs/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 172.22.250.27
SERVER_ADMIN webmaster@wh-ab2xzw3txhh0bsj4xm9.my3w.com
SERVER_NAME www.arctechsolar.cn
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI www.arctechsolar.cn
TZ Asia/Shanghai
UNIQUE_ID ZgVEj6wW@hsAAwfSHuQAAAAe
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711621263.3659
REQUEST_TIME 1711621263
Environment Variablesempty
ThinkPHP Constantsempty
XML 地图