[0] TemplateNotFoundException in Think.php line 88

模板文件不存在:/home/wwwroot/shmzbjfw.com/themes/wap_theme/juyi/service_page.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/shmzbj...', ['site_info' => ['site_name' => '...', 'site_logo' => 'admin/20210910/98648...', 'site_icon' => 'admin/20201010/44521...', ...], 'navs' => [['id' => 1, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 5, 'nav_id' => 1, 'parent_id' => 0, ...], ['id' => 2, 'nav_id' => 1, 'parent_id' => 0, ...], ...], 'city_id' => 1, ...], []) in View.php line 192
  3. at View->fetch('/home/wwwroot/shmzbj...', [], []) in HomeBaseController.php(1) : eval()'d code(1) : eval()'d code line 133
  4. at HomeBaseController->fetch('/service_page') in PageController.php line 76
  5. at PageController->index()
  6. at ReflectionMethod->invokeArgs(object(PageController), []) in Container.php line 395
  7. at Container->invokeReflectMethod(object(PageController), object(ReflectionMethod), ['id' => '282']) 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 Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID subsle9v8b0u4mqcfh6n405eo2
Session
authcode true
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/shmzbjfw.com/index.php
QUERY_STRING s=/juyi/page/index/id/282.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /juyi/page/index/id/282.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/shmzbjfw.com
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.18.0
REMOTE_ADDR 104.140.79.98
REMOTE_PORT 37976
SERVER_ADDR 103.108.194.239
SERVER_PORT 80
SERVER_NAME shmzbjfw.com
REDIRECT_STATUS 200
PATH_INFO
HTTP_USER_AGENT Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)
HTTP_HOST www.shmzbjfw.com
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_COOKIE PHPSESSID=subsle9v8b0u4mqcfh6n405eo2
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1655830924.1629
REQUEST_TIME 1655830924
Environment Variablesempty
ThinkPHP Constants
WEB_ROOT /home/wwwroot/shmzbjfw.com/
APP_DEBUG false
TP_ROOT /home/wwwroot/shmzbjfw.com/
TP_CONFIG /home/wwwroot/shmzbjfw.com/config/
APP_PATH /home/wwwroot/shmzbjfw.com/application/
APP_TOKEN_DOMAIN http://www.juyiseo.cn/
xagzrhxs /home/wwwroot/shmzbjfw.com/application/base/controller/HomeBaseController.php
Baidu
sogou