[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'www_fjspmxh_com.by_contact_type' 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 `b...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`by_contact_type`') in Query.php line 1921
  4. at Query->getTableInfo('by_contact_type', 'type') in Query.php line 1969
  5. at Query->getFieldsType('by_contact_type') in Query.php line 1975
  6. at Query->getFieldsBind('by_contact_type') in Builder.php line 270
  7. at Builder->buildWhere(['AND' => ['on_switch' => ['eq', 1]]], ['multi' => ['AND' => ['on_switch' => [['eq', 1]]]], 'where' => ['AND' => ['on_switch' => ['eq', 1]]], 'table' => 'by_contact_type', ...]) in Builder.php line 240
  8. at Builder->parseWhere(['AND' => ['on_switch' => ['eq', 1]]], ['multi' => ['AND' => ['on_switch' => [['eq', 1]]]], 'where' => ['AND' => ['on_switch' => ['eq', 1]]], 'table' => 'by_contact_type', ...]) in Builder.php line 725
  9. at Builder->select(['multi' => ['AND' => ['on_switch' => [['eq', 1]]]], 'where' => ['AND' => ['on_switch' => ['eq', 1]]], 'table' => 'by_contact_type', ...]) in Query.php line 2511
  10. at Query->select() in Frontend.php line 180
  11. at Frontend->lanmu()
  12. at ReflectionMethod->invokeArgs(object(Contact), []) in App.php line 343
  13. at App::invokeMethod([object(Contact), 'lanmu'], []) in App.php line 611
  14. at App::module(['index', 'contact', 'lanmu'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  15. at App::exec(['type' => 'module', 'module' => ['index', 'contact', 'lanmu']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  16. at App::run() in start.php line 19
  17. at require('/www/wwwroot/fjspmxh...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'www_fjspmxh_com.by_contact_type' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'www_fjspmxh_com.by_contact_type' doesn't exist
Error SQL SHOW COLUMNS FROM `by_contact_type`
Database Config
type mysql
hostname 127.0.0.1
database www_fjspmxh_com
hostport
dsn
params []
charset utf8mb4
prefix by_
debug false
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
empty
POST Data
empty
Files
empty

Cookies

think_var
zh-cn
PHPSESSID
1aq71go20ojdg8ajdpov642nlg
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
think_var=zh-cn; PHPSESSID=1aq71go20ojdg8ajdpov642nlg
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.fjspmxh.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
/index/contact/lanmu.html
REDIRECT_STATUS
200
SERVER_NAME
www.fjspmxh.com
SERVER_PORT
80
SERVER_ADDR
172.20.59.115
REMOTE_PORT
38352
REMOTE_ADDR
170.130.202.110
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/fjspmxh/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/contact/lanmu.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/contact/lanmu.html
SCRIPT_FILENAME
/www/wwwroot/fjspmxh/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1729086939.1973
REQUEST_TIME
1729086939
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/fjspmxh/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1729086939.1979
THINK_START_MEM
409936
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/fjspmxh/thinkphp/
LIB_PATH
/www/wwwroot/fjspmxh/thinkphp/library/
CORE_PATH
/www/wwwroot/fjspmxh/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/fjspmxh/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/fjspmxh/
EXTEND_PATH
/www/wwwroot/fjspmxh/extend/
VENDOR_PATH
/www/wwwroot/fjspmxh/vendor/
RUNTIME_PATH
/www/wwwroot/fjspmxh/runtime/
LOG_PATH
/www/wwwroot/fjspmxh/runtime/log/
CACHE_PATH
/www/wwwroot/fjspmxh/runtime/cache/
TEMP_PATH
/www/wwwroot/fjspmxh/runtime/temp/
CONF_PATH
/www/wwwroot/fjspmxh/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/fjspmxh/addons/