[0] TemplateNotFoundException in Think.php line 88

模板文件不存在:/www/wwwroot/www.sxjunce.com/public/themes/pc_theme/cms/article_job.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('/www/wwwroot/www.sxj...', ['site_info' => ['site_name' => '...', 'site_logo' => '/themes/pc_theme/pub...', 'site_icon' => '/static/images/logo....', ...], 'navs' => [['id' => 1, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 3, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 4, 'nav_id' => 1, 'parent_id' => 0, ...], ...], 'city_id' => 0, ...], []) in View.php line 192
  3. at View->fetch('/www/wwwroot/www.sxj...', ['site_info' => ['site_name' => '...', 'site_logo' => '/themes/pc_theme/pub...', 'site_icon' => '/static/images/logo....', ...], 'navs' => [['id' => 1, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 3, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 4, 'nav_id' => 1, 'parent_id' => 0, ...], ...], 'city_id' => 0, ...], []) in HomeBaseController.php line 133
  4. at HomeBaseController->fetch('/www/wwwroot/www.sxj...') in ArticleController.php line 158
  5. at ArticleController->index()
  6. at ReflectionMethod->invokeArgs(object(ArticleController), []) in Container.php line 395
  7. at Container->invokeReflectMethod(object(ArticleController), object(ReflectionMethod), ['cid' => '3', 'id' => '5', '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 41

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.sxjunce.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.sxjunce.com
SERVER_PORT 80
SERVER_ADDR 172.19.7.172
REMOTE_PORT 49272
REMOTE_ADDR 44.221.43.88
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.sxjunce.com/public
DOCUMENT_URI /index.php
REQUEST_URI /cjwt/5.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/cjwt/5.html
SCRIPT_FILENAME /www/wwwroot/www.sxjunce.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711642225.6195
REQUEST_TIME 1711642225
Environment Variablesempty
ThinkPHP Constants
WEB_ROOT /www/wwwroot/www.sxjunce.com/public/
APP_DEBUG true
NO_CACHE_RUNTIME true
TP_ROOT /www/wwwroot/www.sxjunce.com/public/../
TP_CONFIG /www/wwwroot/www.sxjunce.com/public/../config/
APP_PATH /www/wwwroot/www.sxjunce.com/public/../application/
APP_TOKEN_DOMAIN http://www.tpsq.com