[0] TemplateNotFoundException in Think.php line 82

template not exists:./template/web/default/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('./template/web/defau...', ['pc_template' => './template/web/defau...', 'wap_template' => './template/wap/defau...', 'sitename' => '...', ...], []) in View.php line 163
  3. at View->fetch('public/404', ['pc_template' => './template/web/defau...', 'wap_template' => './template/wap/defau...', 'sitename' => '...', ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  4. at Controller->fetch('public/404', ['seo_title' => '404', 'content' => '分类不【十大正规网赌软件】存在']) in Index.php line 78
  5. at Index->exception('404', '分类不【十大正规网赌软件】存在') in Index.php line 28
  6. at Index->list('question', 0, 1)
  7. at ReflectionMethod->invokeArgs(object(Index), ['question', 0, 1]) in App.php line 343
  8. at App::invokeMethod([object(Index), 'list'], []) in App.php line 611
  9. at App::module(['index', 'Index', 'list'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['index', 'Index', 'list'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in index.php line 32

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "website": 0, "language": "cn" }

Server/Request Data

USER
www
HOME
/home/www
HTTP_UPGRADE_INSECURE_REQUESTS
1
HTTP_CONNECTION
keep-alive
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.5
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER
http://fht7.qc057.com/question
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0
HTTP_HOST
fht7.qc057.com
PATH_INFO
/question
REDIRECT_STATUS
200
SERVER_NAME
qc057.com
SERVER_PORT
443
SERVER_ADDR
172.28.209.110
REMOTE_PORT
52710
REMOTE_ADDR
38.6.160.9
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/qc057.com
DOCUMENT_URI
/index.php
REQUEST_URI
/question
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/question
SCRIPT_FILENAME
/www/wwwroot/qc057.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1724437717.3764
REQUEST_TIME
1724437717
Environment Variables
empty

ThinkPHP Constants

IN_WTCMS
true
APP_PATH
/www/wwwroot/qc057.com/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1724437717.3768
THINK_START_MEM
410496
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/qc057.com/thinkphp/
LIB_PATH
/www/wwwroot/qc057.com/thinkphp/library/
CORE_PATH
/www/wwwroot/qc057.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/qc057.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/qc057.com/
EXTEND_PATH
/www/wwwroot/qc057.com/extend/
VENDOR_PATH
/www/wwwroot/qc057.com/vendor/
RUNTIME_PATH
/www/wwwroot/qc057.com/runtime/
LOG_PATH
/www/wwwroot/qc057.com/runtime/log/
CACHE_PATH
/www/wwwroot/qc057.com/runtime/cache/
TEMP_PATH
/www/wwwroot/qc057.com/runtime/temp/
CONF_PATH
/www/wwwroot/qc057.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
LAYER_LOGIC_NAME
logic
LAYER_MODEL_NAME
model
LAYER_SERVICE_NAME
service
LAYER_CONTROLLER_NAME
controller
LAYER_VALIDATE_NAME
validate
LAYER_VIEW_NAME
view
SYS_HOOK
hook
SYS_ADMIN
admin
SYS_INDEX
index
SYS_WAP
wap
SYS_PLUGIN
plugin
SYS_COMMON
common
DATA_DISABLE
0
TIME_NOW
1724437717
WTCMS_ROOT
/www/wwwroot/qc057.com
WT_FILEPATH
/www/wwwroot/qc057.com/
PLUGIN_PATH
/www/wwwroot/qc057.com/plugin/
UPLOADS_PATH
/www/wwwroot/qc057.com/static/uploads
WT_NVER
获取【十大正规网赌软件】失败
WT_DOWN
javascript:;
WT_QQUN
javascript:;
WT_NAME
WTCMS
WT_DOMAIN
lansucai.com
WT_INDEX
http://www.lansucai.com
WT_ADDONS
http://addon.lansucai.com
WT_GG
联网失败或【正规靠谱赌博软件】未发布【十大正规网赌软件】更新公告【十大正规网赌软件】
RESULT_SUCCESS
success
RESULT_ERROR
error
RESULT_REDIRECT
redirect
RESULT_MESSAGE
message
RESULT_URL
url
RESULT_DATA
data
WT_VER
1.0.0
WT_VER_NUMBER
20210415