[0] TemplateNotFoundException in Think.php line 86

template not exists:./template//index/show.htm

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

Call Stack

  1. in Think.php line 86
  2. at Think->fetch('./template//index/sh...', ['current_site' => null, 'member' => null, 'lang' => '?lang=', ...], []) in View.php line 189
  3. at View->fetch(null, ['current_site' => null, 'member' => null, 'lang' => '?lang=', ...], []) in Controller.php line 161
  4. at Controller->fetch(null) in Index.php line 237
  5. at Index->show('412')
  6. at ReflectionMethod->invokeArgs(object(Index), ['412']) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['lang' => 'spanish', 'id' => '412', 'convert' => false]) in Module.php line 132
  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 137
  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 21

Environment Variables

GET Data
lang spanish
POST Dataempty
Filesempty
Cookies
mike_home_lang spanish
Sessionempty
Server/Request Data
DOCUMENT_ROOT /usr/home/uyu7499100001/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_HOST solaxtech.com
HTTP_USER_AGENT claudebot
PATH /bin
PHPRC /var/www/php72/hichina_ini/uyu7499100001
QUERY_STRING lang=spanish
REDIRECT_DOCUMENT_ROOT /usr/home/uyu7499100001/htdocs
REDIRECT_GATEWAY_INTERFACE CGI/1.1
REDIRECT_HTTPS on
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_HOST solaxtech.com
REDIRECT_HTTP_USER_AGENT claudebot
REDIRECT_PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO /412.html
REDIRECT_PATH_TRANSLATED redirect:/index.php/412.html
REDIRECT_QUERY_STRING lang=spanish
REDIRECT_REMOTE_ADDR 34.229.50.161
REDIRECT_REMOTE_HOST ec2-34-229-50-161.compute-1.amazonaws.com
REDIRECT_REMOTE_PORT 49450
REDIRECT_REQUEST_METHOD GET
REDIRECT_REQUEST_URI /show/412.html?lang=spanish
REDIRECT_SCRIPT_FILENAME /usr/home/uyu7499100001/htdocs/show
REDIRECT_SCRIPT_NAME /show
REDIRECT_SERVER_ADDR 10.17.14.87
REDIRECT_SERVER_ADMIN webmaster@uyu7499100001.my3w.com
REDIRECT_SERVER_NAME solaxtech.com
REDIRECT_SERVER_PORT 443
REDIRECT_SERVER_PROTOCOL HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_SSL_TLS_SNI solaxtech.com
REDIRECT_STATUS 200
REDIRECT_TZ Asia/Shanghai
REDIRECT_UNIQUE_ID ZgXkdgoRDlcAK9vMrj8AAAAB
REDIRECT_URL /show/412.html
REMOTE_ADDR 34.229.50.161
REMOTE_HOST ec2-34-229-50-161.compute-1.amazonaws.com
REMOTE_PORT 49450
REQUEST_METHOD GET
REQUEST_URI /show/412.html?lang=spanish
SCRIPT_FILENAME /usr/home/uyu7499100001/htdocs/index.php
SCRIPT_NAME /index.php
SERVER_ADDR 10.17.14.87
SERVER_ADMIN webmaster@uyu7499100001.my3w.com
SERVER_NAME solaxtech.com
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI solaxtech.com
TZ Asia/Shanghai
UNIQUE_ID ZgXkdgoRDlcAK9vMrj8AAAAB
ORIG_PATH_INFO /show/412.html
ORIG_PATH_TRANSLATED /usr/home/uyu7499100001/htdocs/index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711662198.3387
REQUEST_TIME 1711662198
Environment Variablesempty
ThinkPHP Constantsempty