[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:application/index/view/lists/operation.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('', [], []) in View.php line 192
  3. at View->fetch('', [], [], false) in View.php line 42
  4. at View->output('') 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 www
HOME /home/www
FCGI_ROLE RESPONDER
REDIRECT_STATUS 200
proxy-nokeepalive 1
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST playmore.com.cn
PATH /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
LD_LIBRARY_PATH /www/server/apache/lib
SERVER_SIGNATURE <address>Apache Server at playmore.com.cn Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME playmore.com.cn
SERVER_ADDR 172.26.82.127
SERVER_PORT 80
REMOTE_ADDR 3.236.111.234
DOCUMENT_ROOT /www/wwwroot/playmore.com.cn
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /www/wwwroot/playmore.com.cn
SERVER_ADMIN webmaster@example.com
SCRIPT_FILENAME /www/wwwroot/playmore.com.cn/index.php
REMOTE_PORT 43076
REDIRECT_URL /operation.html
REDIRECT_QUERY_STRING s=index/lists/operation
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING s=index/lists/operation
REQUEST_URI /operation.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710816553.215
REQUEST_TIME 1710816553
Environment Variablesempty
ThinkPHP Constantsempty