[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:/www/wwwroot/www.cpshiqing.com/public/../application/index/view/customer.html

  1. */
  2. public function fetch($template, $data = [], $config = [])
  3. {
  4. if ('' == pathinfo($template, PATHINFO_EXTENSION)) {
  5. // 获取模板文件名
  6. $template = $this->parseTemplate($template);
  7. }
  8. // 模板不存在 抛出异常
  9. if (!is_file($template)) {
  10. throw new TemplateNotFoundException('template not exists:' . $template, $template);
  11. }
  12. // 记录视图信息
  13. App::$debug && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
  14. $this->template->fetch($template, $data, $config);
  15. }
  16. /**
  17. * 渲染模板内容
  18. * @access public

Call Stack

  1. in Think.php line 82
  2. at Think->fetch('/customer', ['formlen' => 524, 'global' => ['site_name' => '...', 'site_title' => '重庆装修公司 -...', 'site_description' => '...', ...], 'menu' => [['id' => 97, 'title' => '首页', 'pid' => 0, ...], ['id' => 98, 'title' => '套餐产品', 'pid' => 0, ...], ['id' => 99, 'title' => '装修案例', 'pid' => 0, ...], ...], ...], []) in View.php line 163
  3. at View->fetch('/customer', [], [], []) in Controller.php line 120
  4. at Controller->fetch('/customer') in Index.php line 505
  5. at Index->_empty()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  7. at App::invokeMethod([object(Index), '_empty'], ['customer']) in App.php line 611
  8. at App::module(['index', 'index', 'customer'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'customer'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/www.cps...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_SCRIPT_URL
/customer/customer_details/OIYZFEVR.html
REDIRECT_SCRIPT_URI
http://zzznks.com/customer/customer_details/OIYZFEVR.html
REDIRECT_STATUS
200
SCRIPT_URL
/customer/customer_details/OIYZFEVR.html
SCRIPT_URI
http://zzznks.com/customer/customer_details/OIYZFEVR.html
proxy-nokeepalive
1
HTTP_HOST
zzznks.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip,deflate
HTTP_REFERER
http://zzznks.com/customer/customer_details/OIYZFEVR.html
HTTP_CLIENT_IP
60.185.186.244
HTTP_X_FORWARDED_FOR
218.64.195.88
PATH
/www/server/panel/pyenv/bin:/www/server/panel/pyenv/bin:/www/server/panel/pyenv/bin:/www/server/panel/pyenv/bin:/www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at zzznks.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
zzznks.com
SERVER_ADDR
122.114.8.168
SERVER_PORT
80
REMOTE_ADDR
23.19.72.20
DOCUMENT_ROOT
/www/wwwroot/www.cpshiqing.com/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.cpshiqing.com/public
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/www.cpshiqing.com/public/index.php
REMOTE_PORT
59841
REDIRECT_URL
/customer/customer_details/OIYZFEVR.html
REDIRECT_QUERY_STRING
s=/customer/customer_details/OIYZFEVR.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=/customer/customer_details/OIYZFEVR.html
REQUEST_URI
/customer/customer_details/OIYZFEVR.html
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1586420692.787
REQUEST_TIME
1586420692
PATH_INFO
/customer/customer_details/OIYZFEVR.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.cpshiqing.com/public/../application/
RUNTIME_PATH
/www/wwwroot/www.cpshiqing.com/public/../runtime/
THINK_VERSION
5.0.24
THINK_START_TIME
1586420692.7883
THINK_START_MEM
269624
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.cpshiqing.com/thinkphp/
LIB_PATH
/www/wwwroot/www.cpshiqing.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.cpshiqing.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.cpshiqing.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.cpshiqing.com/
EXTEND_PATH
/www/wwwroot/www.cpshiqing.com/extend/
VENDOR_PATH
/www/wwwroot/www.cpshiqing.com/vendor/
LOG_PATH
/www/wwwroot/www.cpshiqing.com/public/../runtime/log/
CACHE_PATH
/www/wwwroot/www.cpshiqing.com/public/../runtime/cache/
TEMP_PATH
/www/wwwroot/www.cpshiqing.com/public/../runtime/temp/
CONF_PATH
/www/wwwroot/www.cpshiqing.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false