[0] TemplateNotFoundException in Think.php line 86

模板文件不存在:/www/wwwroot/www.xsdyp123.com/public/../templates/default/cms/index.html

  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() in View.php line 192
  3. at View->fetch() in Homebase.php line 51
  4. at Homebase->fetch() in Index.php line 41
  5. at Index->index()
  6. at ReflectionMethod->invokeArgs() in Container.php line 395
  7. at Container->invokeReflectMethod() in Module.php line 131
  8. at Module->think\route\dispatch\{closure}()
  9. at call_user_func_array() in Middleware.php line 185
  10. at Middleware->think\{closure}()
  11. at call_user_func() in Middleware.php line 130
  12. at Middleware->dispatch() in Module.php line 136
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}()
  16. at call_user_func_array() in Middleware.php line 185
  17. at Middleware->think\{closure}()
  18. at call_user_func() in Middleware.php line 130
  19. at Middleware->dispatch() in App.php line 435
  20. at App->run() in index.php line 36

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_CONNECTION keep-alive
HTTP_HOST www.xsdyp123.com
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.9
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0
HTTP_UPGRADE_INSECURE_REQUESTS 1
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.xsdyp123.com
SERVER_PORT 80
SERVER_ADDR 172.23.204.212
REMOTE_PORT 15469
REMOTE_ADDR 169.197.142.208
SERVER_SOFTWARE nginx/1.26.2
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.xsdyp123.com/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/www.xsdyp123.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1752216713.3989
REQUEST_TIME 1752216713
Environment Variablesempty
ThinkPHP Constants
IF_PUBLIC true
ROOT_PATH /www/wwwroot/www.xsdyp123.com/public/../
APP_PATH /www/wwwroot/www.xsdyp123.com/public/../application/
DS /
ADDON_PATH /www/wwwroot/www.xsdyp123.com/public/../addons/
ROOT_URL /
TEMPLATE_PATH /www/wwwroot/www.xsdyp123.com/public/../templates/
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256
系统发生错误

[10501] PDOException in Connection.php line 687

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'www_xsdyp123_com.yzn_category' doesn't exist

  1. $this->debug(false, '', $master);
  2. // 返回结果集
  3. return $this->getResult($pdo, $procedure);
  4. } catch (\PDOException $e) {
  5. if ($this->isBreak($e)) {
  6. return $this->close()->query($sql, $bind, $master, $pdo);
  7. }
  8. throw new PDOException($e, $this->config, $this->getLastsql());
  9. } catch (\Throwable $e) {
  10. if ($this->isBreak($e)) {
  11. return $this->close()->query($sql, $bind, $master, $pdo);
  12. }
  13. throw $e;
  14. } catch (\Exception $e) {
  15. if ($this->isBreak($e)) {
  16. return $this->close()->query($sql, $bind, $master, $pdo);

Call Stack

  1. in Connection.php line 687
  2. at Connection->query() in Mysql.php line 90
  3. at Mysql->getFields() in Connection.php line 377
  4. at Connection->getTableInfo() in Connection.php line 414
  5. at Connection->getPk() in Query.php line 2474
  6. at Query->getPk() in Connection.php line 793
  7. at Connection->find() in Query.php line 3152
  8. at Query->find() in function.php line 43
  9. at getCategory() in Index.php line 53
  10. at Index->lists()
  11. at ReflectionMethod->invokeArgs() in Container.php line 395
  12. at Container->invokeReflectMethod() in Module.php line 131
  13. at Module->think\route\dispatch\{closure}()
  14. at call_user_func_array() in Middleware.php line 185
  15. at Middleware->think\{closure}()
  16. at call_user_func() in Middleware.php line 130
  17. at Middleware->dispatch() in Module.php line 136
  18. at Module->exec() in Dispatch.php line 168
  19. at Dispatch->run() in App.php line 432
  20. at App->think\{closure}()
  21. at call_user_func_array() in Middleware.php line 185
  22. at Middleware->think\{closure}()
  23. at call_user_func() in Middleware.php line 130
  24. at Middleware->dispatch() in App.php line 435
  25. at App->run() in index.php line 36

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'www_xsdyp123_com.yzn_category' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'www_xsdyp123_com.yzn_category' doesn't exist
Error SQL SHOW COLUMNS FROM `yzn_category`
Database Config
type mysql
hostname 127.0.0.1
database www_xsdyp123_com
hostport
dsn
params []
charset utf8mb4
prefix yzn_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
resultset_type array
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false
break_match_str []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=259200
HTTP_X_FORWARDED_FOR 10.1.202.131
HTTP_VIA 1.1 squid-proxy-5b5d847c96-ws7ks (squid/6.10)
HTTP_HOST xsdyp123.com
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.xsdyp123.com
SERVER_PORT 80
SERVER_ADDR 172.23.204.212
REMOTE_PORT 9888
REMOTE_ADDR 216.73.216.200
SERVER_SOFTWARE nginx/1.26.2
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.xsdyp123.com/public
DOCUMENT_URI /index.php
REQUEST_URI /c/about.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/c/about.html
SCRIPT_FILENAME /www/wwwroot/www.xsdyp123.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1752527588.0729
REQUEST_TIME 1752527588
Environment Variablesempty
ThinkPHP Constants
IF_PUBLIC true
ROOT_PATH /www/wwwroot/www.xsdyp123.com/public/../
APP_PATH /www/wwwroot/www.xsdyp123.com/public/../application/
DS /
ADDON_PATH /www/wwwroot/www.xsdyp123.com/public/../addons/
ROOT_URL /
TEMPLATE_PATH /www/wwwroot/www.xsdyp123.com/public/../templates/
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256