[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:./template/zymk/index/rank/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('./template/zymk/inde...', ['url' => 'https://shudm.com', 'site_name' => '书屋漫画', 'img_site' => 'http://mhbuyvm.hgmhh...', ...], []) in View.php line 189
  3. at View->fetch('./template/zymk/inde...', ['url' => 'https://shudm.com', 'site_name' => '书屋漫画', 'img_site' => 'http://mhbuyvm.hgmhh...', ...]) in View.php line 35
  4. at View->output('./template/zymk/inde...') 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
USER hhggm
HOME /home/hhggm
HTTP_X_VARNISH 30059975
HTTP_ACCEPT_ENCODING gzip
HTTP_GRACE none
HTTP_X_FORWARDED_FOR 54.205.179.155, 172.71.194.8, 127.0.0.1
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 54.205.179.155
HTTP_REFERER https://shudm.com/rank
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 866af0443c65801b-IAD
HTTP_X_REAL_IP 172.71.194.8
HTTP_X_FORWARDED_HOST llmmh.com
HTTP_HOST llmmh.com
PHP_VALUE error_log=/home/hhggm/logs/php/error.log; memory_limit=1G; max_execution_time=60; max_input_time=60; max_input_vars=10000; post_max_size=64M; upload_max_filesize=64M; auto_prepend_file=/home/hhggm/.varnish-cache/controller.php; date.timezone=UTC; display_errors=off;
HTTPS on
MGT 1
GEOIP_LONGITUDE
GEOIP_LATITUDE
GEOIP_CITY_CONTINENT_CODE
GEOIP_POSTAL_CODE
GEOIP_CITY
GEOIP_REGION
GEOIP_CITY_COUNTRY_NAME
GEOIP_CITY_COUNTRY_CODE3
GEOIP_CITY_COUNTRY_CODE
GEOIP_COUNTRY_NAME United States
GEOIP_COUNTRY_CODE3 USA
GEOIP_COUNTRY_CODE US
REDIRECT_STATUS 200
SERVER_NAME www.hhggm.com
SERVER_PORT 443
SERVER_ADDR 127.0.0.1
REMOTE_PORT
REMOTE_ADDR 172.71.194.8
SERVER_SOFTWARE nginx/1.21.4
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/hhggm/htdocs/www.hhggm.com/public
DOCUMENT_URI /index.php
REQUEST_URI /index.php?s=//rank
SCRIPT_NAME /index.php
SCRIPT_FILENAME /home/hhggm/htdocs/www.hhggm.com/public/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//rank
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710824843.0536
REQUEST_TIME 1710824843
Environment Variablesempty
ThinkPHP Constants
VARNISH_DEVELOPER_MODE false
VARNISH_GENERIC_CONTROLLER_VERSION 0.0.1
BOOKCTRL book
CHAPTERCTRL chapter
TAGCTRL tag
BOOKLISTACT booklist
SEARCHCTRL search
RANKCTRL rank
UPDATEACT update
AUTHORCTRL author
spider_db_conn xxx