[10501] PDOException in Connection.php line 385

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

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

Call Stack

  1. in Connection.php line 385
  2. at Connection->query('SHOW COLUMNS FROM `t...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`tpt_thread_3`') in Query.php line 1921
  4. at Query->getTableInfo('tpt_thread_3', 'type') in Query.php line 1969
  5. at Query->getFieldsType('tpt_thread_3') in Query.php line 1975
  6. at Query->getFieldsBind('tpt_thread_3') in Builder.php line 270
  7. at Builder->buildWhere(['AND' => [['exp', object(Expression)]]], ['field' => ['id', 'tid', 'title', ...], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['id desc'], ...]) in Builder.php line 240
  8. at Builder->parseWhere(['AND' => [['exp', object(Expression)]]], ['field' => ['id', 'tid', 'title', ...], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['id desc'], ...]) in Builder.php line 719
  9. at Builder->select(['field' => ['id', 'tid', 'title', ...], 'where' => ['AND' => [['exp', object(Expression)]]], 'order' => ['id desc'], ...]) in Query.php line 2511
  10. at Query->select() in Query.php line 1487
  11. at Query->paginate('18', true) in Index.php line 254
  12. at Index->forum()
  13. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  14. at App::invokeMethod([object(Index), 'forum'], []) in App.php line 611
  15. at App::module([null, 'index', 'forum'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  16. at App::exec(['type' => 'module', 'module' => [null, 'index', 'forum'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  17. at App::run() in start.php line 19
  18. at require('/www/wwwroot/chinawi...') in index.php line 18

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'chinawiki.tpt_thread_3' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'chinawiki.tpt_thread_3' doesn't exist
Error SQL SHOW COLUMNS FROM `tpt_thread_3`
Database Config
type mysql
hostname 127.0.0.1
database chinawiki
hostport 3306
dsn
params []
charset utf8
prefix tpt_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
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

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.chinawiki.net
PATH_INFO
/list/History
REDIRECT_STATUS
200
SERVER_NAME
www.chinawiki.net
SERVER_PORT
443
SERVER_ADDR
10.0.4.5
REMOTE_PORT
59148
REMOTE_ADDR
44.213.75.78
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/chinawiki
DOCUMENT_URI
/index.php
REQUEST_URI
/list/History
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/list/History
SCRIPT_FILENAME
/www/wwwroot/chinawiki/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711623129.8063
REQUEST_TIME
1711623129
Environment Variables
empty

ThinkPHP Constants

VERIFY
344C842242AD0CC2
WEB_URL
APP_PATH
./templet/
CONF_PATH
./config/
BIND_MODULE
index
THINK_VERSION
5.0.24
THINK_START_TIME
1711623129.8068
THINK_START_MEM
413560
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/chinawiki/thinkphp/
LIB_PATH
/www/wwwroot/chinawiki/thinkphp/library/
CORE_PATH
/www/wwwroot/chinawiki/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/chinawiki/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/chinawiki/
EXTEND_PATH
/www/wwwroot/chinawiki/extend/
VENDOR_PATH
/www/wwwroot/chinawiki/vendor/
RUNTIME_PATH
/www/wwwroot/chinawiki/runtime/
LOG_PATH
/www/wwwroot/chinawiki/runtime/log/
CACHE_PATH
/www/wwwroot/chinawiki/runtime/cache/
TEMP_PATH
/www/wwwroot/chinawiki/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false