[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:/www/wwwroot/www.joyhicare.com/application/index/view/cn/zhaoshang.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('index@/cn/zhaoshang', ['links' => [['id' => 1, 'group_id' => 1, 'title' => '...', ...], ['id' => 2, 'group_id' => 1, 'title' => '...', ...], ['id' => 3, 'group_id' => 1, 'title' => '求医网', ...]], 'links2' => [], 'homelink' => '/', ...], []) in View.php line 192
  3. at View->fetch('index@/cn/zhaoshang', [], [], false) in View.php line 42
  4. at View->output('index@/cn/zhaoshang') in Response.php line 396
  5. at Response->getContent() in Response.php line 128
  6. at Response->send() in index.php line 24

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
home_lang cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI joyhicare.com
REDIRECT_HTTP2 on
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_STREAM_TAG 258-3
REDIRECT_STATUS 200
HTTPS on
SSL_TLS_SNI joyhicare.com
HTTP2 on
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 3
H2_STREAM_TAG 258-3
proxy-nokeepalive 1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST joyhicare.com
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH /www/server/apache/lib
SERVER_SIGNATURE <address>Apache Server at joyhicare.com Port 443</address>
SERVER_SOFTWARE Apache
SERVER_NAME joyhicare.com
SERVER_ADDR 172.18.40.173
SERVER_PORT 443
REMOTE_ADDR 54.224.90.25
DOCUMENT_ROOT /www/wwwroot/www.joyhicare.com/
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /www/wwwroot/www.joyhicare.com/
SERVER_ADMIN webmaster@example.com
SCRIPT_FILENAME /www/wwwroot/www.joyhicare.com/index.php
REMOTE_PORT 57708
REDIRECT_URL /list-59/133.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/2.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /list-59/133.html
SCRIPT_NAME /index.php
PATH_INFO /list-59/133.html
PATH_TRANSLATED redirect:/index.php/list-59/133.html/133.html
PHP_SELF /index.php/list-59/133.html
REQUEST_TIME_FLOAT 1711637169.2023
REQUEST_TIME 1711637169
Environment Variablesempty
ThinkPHP Constants
PHP_INT_MIN -9223372036854775808
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256
QINIU_FUNCTIONS_VERSION 7.4.0