[0] TemplateNotFoundException in Think.php line 146

模板文件不存在:/www/wwwroot/www.buylamps.cn/app/index/view/lamp_base/index.html

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

Call Stack

  1. in Think.php line 146
  2. at Think->fetch('/www/wwwroot/www.buy...', ['mueu' => ['class_id' => 4, 'class_name' => '灯库', 'subtitle' => '灯库', ...], 'media' => ['title' => '灯库 - 买灯网', 'keyword' => '...', 'description' => '...'], '_userid' => 0, ...]) in View.php line 90
  3. at View->think\{closure}() in View.php line 122
  4. at View->getContent(object(Closure)) in View.php line 91
  5. at View->fetch('index') in Base.php line 282
  6. at Base->display('index') in LampBase.php line 24
  7. at LampBase->index()
  8. at ReflectionMethod->invokeArgs(object(LampBase), []) in Container.php line 342
  9. at Container->invokeReflectMethod(object(LampBase), object(ReflectionMethod), ['class_id' => '4']) in Controller.php line 105
  10. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  11. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  12. at Pipeline->then(object(Closure)) in Controller.php line 108
  13. at Controller->exec() in Dispatch.php line 96
  14. at Dispatch->run() in Route.php line 747
  15. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  16. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  17. at Pipeline->then(object(Closure)) in Route.php line 748
  18. at Route->dispatch(object(Request), object(Closure)) in Http.php line 213
  19. at Http->dispatchToRoute(object(Request)) in Http.php line 203
  20. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  21. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  22. at TraceDebug->handle(object(Request), object(Closure), null)
  23. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure), null) in Middleware.php line 142
  24. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  25. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 65
  26. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  27. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  28. at SessionInit->handle(object(Request), object(Closure), null)
  29. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure), null) in Middleware.php line 142
  30. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  31. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  32. at Pipeline->then(object(Closure)) in MultiApp.php line 66
  33. at MultiApp->handle(object(Request), object(Closure), null)
  34. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure), null) in Middleware.php line 142
  35. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  36. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  37. at Pipeline->then(object(Closure)) in Http.php line 204
  38. at Http->runWithRequest(object(Request)) in Http.php line 162
  39. at Http->run() in index.php line 12

Environment Variables

GET Data
class_id 4
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.buylamps.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.buylamps.cn
SERVER_PORT 443
SERVER_ADDR 172.16.26.95
REMOTE_PORT 38528
REMOTE_ADDR 54.145.82.104
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/www.buylamps.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /index/LampBase/index.html?class_id=4
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/LampBase/index.html&class_id=4
SCRIPT_FILENAME /www/wwwroot/www.buylamps.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711698299.2696
REQUEST_TIME 1711698299
Environment Variables
APP_DEBUG 1
APP_DEFAULT_TIMEZONE Asia/Shanghai
DATABASE_TYPE mysql
DATABASE_HOSTNAME localhost
DATABASE_DATABASE buylamps
DATABASE_USERNAME buylamps
DATABASE_PASSWORD 5de8LnyhsE7WnmWs
DATABASE_PREFIX cd_
DATABASE_HOSTPORT 3306
DATABASE_CHARSET utf8
DATABASE_DEBUG 1
LANG_DEFAULT_LANG zh-cn
ThinkPHP Constants
PHP_OS_FAMILY Linux
QINIU_FUNCTIONS_VERSION 7.2.9
BASE_URL https://www.buylamps.cn
DS /
0.032086s