[10501] PDOException in Connection.php line 402

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'kefu.sy_174_cms_channel' 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 402
  2. at Connection->query('SHOW COLUMNS FROM `s...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`sy_174_cms_channel`') in Query.php line 1921
  4. at Query->getTableInfo('sy_174_cms_channel', 'type') in Query.php line 1969
  5. at Query->getFieldsType('sy_174_cms_channel') in Query.php line 1975
  6. at Query->getFieldsBind('sy_174_cms_channel') in Builder.php line 270
  7. at Builder->buildWhere(['AND' => ['status' => ['<>', 'hidden']]], ['multi' => ['AND' => ['status' => [['<>', 'hidden']]]], 'where' => ['AND' => ['status' => ['<>', 'hidden']]], 'order' => ['weigh desc', 'id desc'], ...]) in Builder.php line 240
  8. at Builder->parseWhere(['AND' => ['status' => ['<>', 'hidden']]], ['multi' => ['AND' => ['status' => [['<>', 'hidden']]]], 'where' => ['AND' => ['status' => ['<>', 'hidden']]], 'order' => ['weigh desc', 'id desc'], ...]) in Builder.php line 719
  9. at Builder->select(['multi' => ['AND' => ['status' => [['<>', 'hidden']]]], 'where' => ['AND' => ['status' => ['<>', 'hidden']]], 'order' => ['weigh desc', 'id desc'], ...]) in Query.php line 2511
  10. at Query->select() in Base.php line 3943
  11. at Base->menu() in Base.php line 87
  12. at Base->__construct()
  13. at ReflectionClass->newInstanceArgs([]) in App.php line 359
  14. at App::invokeClass('app\vip\controller\F...') in Loader.php line 479
  15. at Loader::controller('faq', 'controller', false, 'Error') in App.php line 580
  16. at App::module(['vip', 'Faq', 'index'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...], true) in App.php line 456
  17. at App::exec(['type' => 'module', 'module' => ['vip', 'Faq', 'index']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  18. at App::run() in start.php line 19
  19. at require('/www/wwwroot/kefu/th...') in index.php line 44

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'kefu.sy_174_cms_channel' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'kefu.sy_174_cms_channel' doesn't exist
Error SQL SHOW COLUMNS FROM `sy_174_cms_channel`
Database Config
type mysql
hostname 127.0.0.1
database kefu
hostport 3306
dsn
params []
charset utf8
prefix sy_
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 false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data

web_id
174
lang
cn
POST Data
empty
Files
empty

Cookies

think_var
cn

Session

think
{ "host": { "curr": "cn3.138com.cn", "view": null, "uid": 174, "web_color": null, "language": { "cn": "\u4e2d\u6587\u7b80\u4f53", "tw": "\u4e2d\u6587\u7e41\u4f53", "en": "\u82f1\u6587" } }, "web_id": 174 }

Server/Request Data

USER
www
HOME
/home/www
HTTP_REFERER
http://cn3.138com.cn/vip/Faq/index?web_id=174&lang=cn
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
cn3.138com.cn
PATH_INFO
//vip/Faq/index
REDIRECT_STATUS
200
SERVER_NAME
cn3.138com.cn
SERVER_PORT
443
SERVER_ADDR
103.56.114.96
REMOTE_PORT
54420
REMOTE_ADDR
34.206.3.58
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/kefu/public
DOCUMENT_URI
/index.php
REQUEST_URI
/vip/Faq/index?web_id=174&lang=cn
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//vip/Faq/index&web_id=174&lang=cn
SCRIPT_FILENAME
/www/wwwroot/kefu/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711696650.1408
REQUEST_TIME
1711696650
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/kefu/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711696650.1412
THINK_START_MEM
383944
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/kefu/thinkphp/
LIB_PATH
/www/wwwroot/kefu/thinkphp/library/
CORE_PATH
/www/wwwroot/kefu/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/kefu/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/kefu/
EXTEND_PATH
/www/wwwroot/kefu/extend/
VENDOR_PATH
/www/wwwroot/kefu/vendor/
RUNTIME_PATH
/www/wwwroot/kefu/runtime/
LOG_PATH
/www/wwwroot/kefu/runtime/log/
CACHE_PATH
/www/wwwroot/kefu/runtime/cache/
TEMP_PATH
/www/wwwroot/kefu/runtime/temp/
CONF_PATH
/www/wwwroot/kefu/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
XY_FLAG_MA
XySwordCMS
XY_FLAG_TXT
211n.com
JSURI
/vip/Faq/index?web_id=174&lang=cn
CHECKJSJS
false
JSJS
http://cms.ys.211n.com/cmshelp
ADDON_PATH
/www/wwwroot/kefu/addons/