[10501] PDOException in Connection.php line 385

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dianyingsousou.mac_vod_search' 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 `m...', [], false, true) in Mysql.php line 65
  3. at Mysql->getFields('`mac_vod_search`') in Query.php line 1921
  4. at Query->getTableInfo('mac_vod_search', 'pk') in Query.php line 1955
  5. at Query->getPk(['multi' => ['AND' => ['search_key' => ['4667fff5beb469bdce5c...']]], 'where' => ['AND' => ['search_key' => '4667fff5beb469bdce5c...']], 'field' => ['search_result_ids', 'search_hit_count'], ...]) in Query.php line 2639
  6. at Query->find() in VodSearch.php line 38
  7. at VodSearch->getResultIdList('儿童', 'vod_class') in VodSearch.php line 31
  8. at VodSearch->getResultIdList('儿童', 'vod_class', true) in Vod.php line 435
  9. at Vod->listCacheData(['num' => '15', 'paging' => 'yes', 'pageurl' => 'vod/show', ...]) in a5f73e4ae51344221b74fa67bcb2d656.php line 124
  10. at include('/home/wwwroot/dianyi...') in File.php line 53
  11. at File->read('/home/wwwroot/dianyi...', ['maccms' => ['site_name' => '...', 'site_url' => 'www.xiaozhongtrip.co...', 'site_wapurl' => 'www.xiaozhongtrip.co...', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...], 'param' => ['page' => '1', 'ajax' => '0', 'tid' => '0', ...], ...]) in Template.php line 188
  12. at Template->fetch('template/xingxinv10/...', ['maccms' => ['site_name' => '...', 'site_url' => 'www.xiaozhongtrip.co...', 'site_wapurl' => 'www.xiaozhongtrip.co...', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...], 'param' => ['page' => '1', 'ajax' => '0', 'tid' => '0', ...], ...], []) in Think.php line 86
  13. at Think->fetch('template/xingxinv10/...', ['maccms' => ['site_name' => '...', 'site_url' => 'www.xiaozhongtrip.co...', 'site_wapurl' => 'www.xiaozhongtrip.co...', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...], 'param' => ['page' => '1', 'ajax' => '0', 'tid' => '0', ...], ...], []) in View.php line 163
  14. at View->fetch('vod/show', ['maccms' => ['site_name' => '...', 'site_url' => 'www.xiaozhongtrip.co...', 'site_wapurl' => 'www.xiaozhongtrip.co...', ...], 'user' => ['user_id' => 0, 'user_name' => '游客', 'user_portrait' => 'static/images/touxia...', ...], 'param' => ['page' => '1', 'ajax' => '0', 'tid' => '0', ...], ...], ['__ROOT__' => '', '__URL__' => '/index/vod', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  15. at Controller->fetch('vod/show') in All.php line 45
  16. at All->label_fetch('vod/show') in Vod.php line 27
  17. at Vod->show()
  18. at ReflectionMethod->invokeArgs(object(Vod), []) in App.php line 343
  19. at App::invokeMethod([object(Vod), 'show'], []) in App.php line 611
  20. at App::module([null, 'vod', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  21. at App::exec(['type' => 'module', 'module' => [null, 'vod', 'show'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  22. at App::run() in start.php line 19
  23. at require('/home/wwwroot/dianyi...') in index.php line 39

Exception Datas

PDO Error Info
SQLSTATE 42S02
Driver Error Code 1146
Driver Error Message Table 'dianyingsousou.mac_vod_search' doesn't exist
Database Status
Error Code 10501
Error Message SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dianyingsousou.mac_vod_search' doesn't exist
Error SQL SHOW COLUMNS FROM `mac_vod_search`
Database Config
type mysql
hostname 127.0.0.1
database dianyingsousou
hostport 3306
dsn
params []
charset utf8
prefix mac_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict false
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_REFERER
http://www.xiaozhongtrip.com/vodshow/class/%E5%84%BF%E7%AB%A5/id/10.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.xiaozhongtrip.com
PATH_INFO
/vodshow/class/儿童/id/10.html
REDIRECT_STATUS
200
SERVER_NAME
dianyingsousou.com
SERVER_PORT
443
SERVER_ADDR
38.11.147.99
REMOTE_PORT
36080
REMOTE_ADDR
18.232.188.122
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/home/wwwroot/dianyingsousou.com
DOCUMENT_URI
/index.php
REQUEST_URI
/vodshow/class/%E5%84%BF%E7%AB%A5/id/10.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/vodshow/class/%E5%84%BF%E7%AB%A5/id/10.html
SCRIPT_FILENAME
/home/wwwroot/dianyingsousou.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711655943.5056
REQUEST_TIME
1711655943
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/home/wwwroot/dianyingsousou.com/
APP_PATH
/home/wwwroot/dianyingsousou.com/application/
MAC_COMM
/home/wwwroot/dianyingsousou.com/application/common/common/
MAC_HOME_COMM
/home/wwwroot/dianyingsousou.com/application/index/common/
MAC_ADMIN_COMM
/home/wwwroot/dianyingsousou.com/application/admin/common/
MAC_START_TIME
1711655943.506
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1711655943.5065
THINK_START_MEM
418312
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/dianyingsousou.com/thinkphp/
LIB_PATH
/home/wwwroot/dianyingsousou.com/thinkphp/library/
CORE_PATH
/home/wwwroot/dianyingsousou.com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/dianyingsousou.com/thinkphp/library/traits/
EXTEND_PATH
/home/wwwroot/dianyingsousou.com/extend/
VENDOR_PATH
/home/wwwroot/dianyingsousou.com/vendor/
RUNTIME_PATH
/home/wwwroot/dianyingsousou.com/runtime/
LOG_PATH
/home/wwwroot/dianyingsousou.com/runtime/log/
CACHE_PATH
/home/wwwroot/dianyingsousou.com/runtime/cache/
TEMP_PATH
/home/wwwroot/dianyingsousou.com/runtime/temp/
CONF_PATH
/home/wwwroot/dianyingsousou.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/home/wwwroot/dianyingsousou.com/addons/
MAC_URL
http://www.maccms.la/
MAC_NAME
苹果CMS
MAC_PATH
/
MAC_MOB
0
MAC_ROOT_TEMPLATE
/home/wwwroot/dianyingsousou.com/template/xingxinv10//html/
MAC_PATH_TEMPLATE
/template/xingxinv10/
MAC_PATH_TPL
/template/xingxinv10//html/
MAC_PATH_ADS
/template/xingxinv10/广告目录/
MAC_PAGE_SP
_
MAC_PLAYER_SORT
1
MAC_ADDON_PATH
/home/wwwroot/dianyingsousou.com/addons/
MAC_ADDON_PATH_STATIC
/home/wwwroot/dianyingsousou.com/static/addons/