[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/jgkjcom/application/index/view/index/fanlixitong.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. Container::get('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 82
  2. at Think->fetch('/www/wwwroot/jgkjcom...', ['list2' => object(Bootstrap), 'list' => [['id' => 24, 'titles' => '...', 'content' => '<p style="text-align...', ...], ['id' => 25, 'titles' => 'app软件趋势', 'content' => '...', ...], ['id' => 35, 'titles' => '...', 'content' => '...', ...], ...], 'order' => [['id' => 251, 'titles' => '...', 'content' => '<p style="white-spac...', ...], ['id' => 254, 'titles' => '...', 'content' => '...', ...], ['id' => 259, 'titles' => '...', 'content' => '<p style="text-align...', ...], ...], ...], []) in View.php line 175
  3. at View->fetch('', ['list2' => object(Bootstrap), 'list' => [['id' => 24, 'titles' => '...', 'content' => '<p style="text-align...', ...], ['id' => 25, 'titles' => 'app软件趋势', 'content' => '...', ...], ['id' => 35, 'titles' => '...', 'content' => '...', ...], ...], 'order' => [['id' => 251, 'titles' => '...', 'content' => '<p style="white-spac...', ...], ['id' => 254, 'titles' => '...', 'content' => '...', ...], ['id' => 259, 'titles' => '...', 'content' => '<p style="text-align...', ...], ...], ...], []) in Controller.php line 121
  4. at Controller->fetch() in Index.php line 933
  5. at Index->Fanlixitong()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 291
  7. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['page' => '1']) in Module.php line 148
  8. at Module->run() in App.php line 378
  9. at App->think\{closure}(object(Request), object(Closure), null)
  10. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 119
  11. at Middleware->think\{closure}(object(Request))
  12. at call_user_func(object(Closure), object(Request)) in Middleware.php line 74
  13. at Middleware->dispatch(object(Request)) in App.php line 399
  14. at App->run() in index.php line 21

Environment Variables

GET Data
page 1
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.jugekeji.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO /Fanlixitong.html
REDIRECT_STATUS 200
SERVER_NAME www.jugekeji.com
SERVER_PORT 9000
SERVER_ADDR 127.0.0.1
REMOTE_PORT 58386
REMOTE_ADDR 127.0.0.1
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/jgkjcom/public
DOCUMENT_URI /index.php
REQUEST_URI /Fanlixitong.html?page=1
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/Fanlixitong.html&page=1
SCRIPT_FILENAME /www/wwwroot/jgkjcom/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711652791.1172
REQUEST_TIME 1711652791
Environment Variablesempty
ThinkPHP Constantsempty