[0] TemplateNotFoundException in Think.php line 88

模板文件不存在:/home/wwwroot/shtxjc.cn/themes/pc_theme/juyi/list.html

  1. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  2. // 获取模板文件名
  3. $template = $this->parseTemplate($template);
  4. }
  5. $template = str_replace('\\','/',$template);//@陌黎
  6. // 模板不存在 抛出异常
  7. if (!is_file($template)) {
  8. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  9. }
  10. // 记录视图信息
  11. $this->app
  12. ->log('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]');
  13. $this->template->fetch($template, $data, $config);
  14. }

Call Stack

  1. in Think.php line 88
  2. at Think->fetch('/home/wwwroot/shtxjc...', ['site_info' => ['site_name' => '...', 'site_logo' => 'admin/20220121/4e66c...', 'site_icon' => 'admin/20201010/44521...', ...], 'navs' => [['id' => 1, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 5, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 34, 'nav_id' => 1, 'parent_id' => 0, ...], ...], 'city_id' => 0, ...], []) in View.php line 192
  3. at View->fetch('/home/wwwroot/shtxjc...', ['site_info' => ['site_name' => '...', 'site_logo' => 'admin/20220121/4e66c...', 'site_icon' => 'admin/20201010/44521...', ...], 'navs' => [['id' => 1, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 5, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 34, 'nav_id' => 1, 'parent_id' => 0, ...], ...], 'city_id' => 0, ...], []) in HomeBaseController.php(1) : eval()'d code(1) : eval()'d code line 133
  4. at HomeBaseController->fetch('/home/wwwroot/shtxjc...') in ListController.php line 111
  5. at ListController->index()
  6. at ReflectionMethod->invokeArgs(object(ListController), []) in Container.php line 395
  7. at Container->invokeReflectMethod(object(ListController), object(ReflectionMethod), ['page' => '8', 'id' => '6', 'convert' => false]) in Module.php line 131
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 39

Environment Variables

GET Data
page 8
POST Dataempty
Filesempty
Cookiesempty
Session
authcode true
Server/Request Data
USER www
HOME /home/www
HTTP_HOST nbyxcc.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME cy.shtxjc.cn
SERVER_PORT 80
SERVER_ADDR 103.120.82.53
REMOTE_PORT 39264
REMOTE_ADDR 44.200.144.68
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/shtxjc.cn
DOCUMENT_URI /index.php
REQUEST_URI /industry-news.html?page=8
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/industry-news.html&page=8
SCRIPT_FILENAME /www/wwwroot/shtxjc.cn/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711719673.1206
REQUEST_TIME 1711719673
Environment Variablesempty
ThinkPHP Constants
WEB_ROOT /home/wwwroot/shtxjc.cn/
APP_DEBUG false
TP_ROOT /home/wwwroot/shtxjc.cn/
TP_CONFIG /home/wwwroot/shtxjc.cn/config/
APP_PATH /home/wwwroot/shtxjc.cn/application/
APP_TOKEN_DOMAIN http://www.juyiseo.cn/
xagzrhxs /home/wwwroot/shtxjc.cn/application/base/controller/HomeBaseController.php