[0] TemplateNotFoundException in Think.php line 82

模板文件不存在:themes/pc_cn/error/../public/404.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('themes/pc_cn/error/....', ['site_info' => ['site_name' => '...', 'site_seo_title' => '', 'site_seo_keywords' => '...', ...], 'year' => '2022', 'SO' => 'is_top DESC,list_ord...', ...], []) in View.php line 163
  3. at View->fetch('themes/pc_cn/error/....', ['site_info' => ['site_name' => '...', 'site_seo_title' => '', 'site_seo_keywords' => '...', ...], 'year' => '2022', 'SO' => 'is_top DESC,list_ord...', ...], ['__ROOT__' => '', '__URL__' => '/error/yunying', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('themes/pc_cn/error/....', [], [], []) in HomeBaseController.php line 105
  5. at HomeBaseController->fetch('themes/pc_cn/error/....') in ErrorController.php line 13
  6. at ErrorController->_empty()
  7. at ReflectionMethod->invokeArgs(object(ErrorController), []) in App.php line 343
  8. at App::invokeMethod([object(ErrorController), '_empty'], ['shequnyingxiao']) in App.php line 621
  9. at App::module(['a', 'yunying', 'shequnyingxiao'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['a', 'yunying', 'shequnyingxiao']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in index.php line 57

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
53e3b54tughsliuufgu6597j8d
Session
empty

Server/Request Data

USER
w_host234022
HOME
/home/w_host234022
SCRIPT_NAME
/index.php
REQUEST_URI
/a/yunying/shequnyingxiao/
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/a/yunying/shequnyingxiao/
REMOTE_PORT
55270
SCRIPT_FILENAME
/data/www/host234022/wwwroot/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/data/www/host234022/wwwroot
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/data/www/host234022/wwwroot
REMOTE_ADDR
172.120.80.98
SERVER_PORT
80
SERVER_ADDR
150.242.58.152
SERVER_NAME
www.henovcom.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
Apache Server at www.henovcom.com Port 80
LD_LIBRARY_PATH
/data/ZKEYS/server/apache/lib:/data/ZKEYS/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_COOKIE
PHPSESSID=53e3b54tughsliuufgu6597j8d
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.henovcom.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
proxy-nokeepalive
1
UNIQUE_ID
Yoek8XvJ0Ojt@WyxwUs1vgAAAAQ
REDIRECT_STATUS
200
REDIRECT_PATH_INFO
a/yunying/shequnyingxiao/
REDIRECT_UNIQUE_ID
Yoek8XvJ0Ojt@WyxwUs1vgAAAAQ
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1653056753.1594
REQUEST_TIME
1653056753
PATH_INFO
a/yunying/shequnyingxiao/
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/data/www/host234022/wwwroot/
APP_PATH
/data/www/host234022/wwwroot/app/
UPLOAD_PATH
/data/www/host234022/wwwroot/upload/
CMF_PATH
/data/www/host234022/wwwroot/simplewind/cmf/
PLUGINS_PATH
/data/www/host234022/wwwroot/plugins/
EXTEND_PATH
/data/www/host234022/wwwroot/simplewind/extend/
VENDOR_PATH
/data/www/host234022/wwwroot/simplewind/vendor/
RUNTIME_PATH
/data/www/host234022/wwwroot/data/runtime/
THINKCMF_VERSION
5.0.170927
SO
is_top DESC,list_order DESC,published_time DESC,post_id DESC
GSO
is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC
TMPLSO
order:is_top DESC,list_order DESC,published_time DESC,post_id DESC;
TMPLGSO
order:is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC;
WEB_ROOT
/data/www/host234022/wwwroot/
THINK_VERSION
5.0.24
THINK_START_TIME
1653056753.1606
THINK_START_MEM
421544
EXT
.php
DS
/
THINK_PATH
/data/www/host234022/wwwroot/simplewind/thinkphp/
LIB_PATH
/data/www/host234022/wwwroot/simplewind/thinkphp/library/
CORE_PATH
/data/www/host234022/wwwroot/simplewind/thinkphp/library/think/
TRAIT_PATH
/data/www/host234022/wwwroot/simplewind/thinkphp/library/traits/
ROOT_PATH
/data/www/host234022/wwwroot/
LOG_PATH
/data/www/host234022/wwwroot/data/runtime/log/
CACHE_PATH
/data/www/host234022/wwwroot/data/runtime/cache/
TEMP_PATH
/data/www/host234022/wwwroot/data/runtime/temp/
CONF_PATH
/data/www/host234022/wwwroot/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/data/www/host234022/wwwroot/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1
ERR_INVALID_IMAGE
1
ERR_NO_GD
2
ERR_IMAGE_NOT_EXISTS
3
ERR_DIRECTORY_READONLY
4
ERR_UPLOAD_FAILURE
5
ERR_INVALID_PARAM
6
ERR_INVALID_IMAGE_TYPE
7
ERR_COPYFILE_FAILED
1
ERR_CREATETABLE_FAILED
2
ERR_DELETEFILE_FAILED
3
ATTR_TEXT
0
ATTR_OPTIONAL
1
ATTR_TEXTAREA
2
ATTR_URL
3
ERR_USERNAME_EXISTS
1
ERR_EMAIL_EXISTS
2
ERR_INVALID_USERID
3
ERR_INVALID_USERNAME
4
ERR_INVALID_PASSWORD
5
ERR_INVALID_EMAIL
6
ERR_USERNAME_NOT_ALLOW
7
ERR_EMAIL_NOT_ALLOW
8
ERR_MOBILE_PHONE_EXISTS
9
ERR_INVALID_MOBILE_PHONE
10
ERR_MOBILE_PHONE_NOT_ALLOW
11
ERR_INVALID_REGISTER_TYPE
12
ERR_NOT_EXISTS
1
ERR_OUT_OF_STOCK
2
ERR_NOT_ON_SALE
3
ERR_CANNT_ALONE_SALE
4
ERR_NO_BASIC_GOODS
5
ERR_NEED_SELECT_ATTR
6
CART_GENERAL_GOODS
0
CART_GROUP_BUY_GOODS
1
CART_AUCTION_GOODS
2
CART_SNATCH_GOODS
3
CART_EXCHANGE_GOODS
4
CART_PRE_SALE_GOODS
6
CART_VIRTUAL_GROUP_GOODS
7
OS_UNCONFIRMED
0
OS_CONFIRMED
1
OS_CANCELED
2
OS_INVALID
3
OS_RETURNED
4
OS_SPLITED
5
OS_SPLITING_PART
6
PAY_ORDER
0
PAY_SURPLUS
1
SS_UNSHIPPED
0
SS_SHIPPED
1
SS_RECEIVED
2
SS_PREPARING
3
SS_SHIPPED_PART
4
SS_SHIPPED_ING
5
OS_SHIPPED_PART
6
PS_UNPAYED
0
PS_PAYING
1
PS_PAYED
2
PS_REFUND
3
CS_AWAIT_PAY
100
CS_AWAIT_SHIP
101
CS_UNKNOW
99
CS_UNPAY
100
CS_UNWORK
101
CS_CHECKED
102
CS_SPLITED_PART
103
CS_SPLITED
104
CS_SHIPPED_PART
105
CS_SHIPPED
106
CS_RECEIVED_PART
107
CS_RECEIVED
108
CS_FINISHED
109
CS_CANCEL
110
CS_RETURNING
111
CS_PAY_RETURNING
112
CS_PAY_RETURNED
113
CS_PAY_RETURNING_REJECT
114
CS_PAY_RETURNED_REJECT
115
CS_PAY_RETURNING_ADMIN_REJECT
116
CS_CHECKED_NO_SHIP
117
CS_CHECKED_CAN_SHIP
118
CAN_NOT
0
CAN_PAY
1
CAN_CANCEL
2
CAN_REFUND
3
CAN_RETURN
4
CAN_RECEIVED
5
CAN_COMMENT
6
CAN_SHAIDAN
7
OOS_WAIT
0
OOS_CANCEL
1
OOS_CONSULT
2
SDT_SHIP
0
SDT_PLACE
1
SEND_BY_USER
0
SEND_BY_GOODS
1
SEND_BY_ORDER
2
SEND_BY_PRINT
3
SEND_BY_REGISTER
5
SEND_BY_ONLINE
4
SEND_BY_LEAGUE
6
SEND_BY_FREE_BUY
7
SEND_BY_ON_LINE
8
SURPLUS_SAVE
0
SURPLUS_RETURN
1
ACT_SAVING
0
ACT_DRAWING
1
ACT_ADJUSTING
2
ACT_OTHER
99
HN_CHARSET
utf-8
USE_STORAGE
1
STOCK_DEC_TIME
1
INTEGRAL_SCALE
1
MIN_GOODS_AMOUNT
0
DIVIDE_TYPE_SECKILL
3
DIVIDE_TYPE_GROUP
3
DIVIDE_TYPE_BARGAIN
1
FAR_ALL
0
FAR_CATEGORY
1
FAR_BRAND
2
FAR_GOODS
3
FAT_GOODS
0
FAT_PRICE
1
FAT_DISCOUNT
2
FAT_FREESHIPPING
3
GROUP_BUY_CODE
group_by
GBS_PRE_START
0
GBS_UNDER_WAY
1
GBS_FINISHED
2
GBS_SUCCEED
3
GBS_FAIL
4
PRE_SALE_CODE
pre_sale
VIRTUAL_SALE_CODE
virtual_good
PSS_PRE_START
0
PSS_UNDER_WAY
1
PSS_FINISHED
2
PSS_SUCCEED
3
PSS_FAIL
4
IS_WECHAT_FALSE
1
IS_WECHAT_TRUE
2
Baidu
sogou