[10501] PDOException in Connection.php line 385

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'shop_goods.goods_str' in 'field list'

  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('SELECT `group_goods`...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT `group_goods`...', [], false, false) in Query.php line 2523
  4. at Query->select() in Query.php line 1485
  5. at Query->paginate(8, false) in Group.php line 32
  6. at Group->index(object(Request), object(GoodsType))
  7. at ReflectionMethod->invokeArgs(object(Group), [object(Request), object(GoodsType)]) in App.php line 343
  8. at App::invokeMethod([object(Group), 'index'], []) in App.php line 611
  9. at App::module(['index', 'group', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['index', 'group', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/mnt/www/wwwroot/zwt...') in index.php line 56

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'shop_goods.goods_str' in 'field list'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'shop_goods.goods_str' in 'field list'
Error SQL SELECT `group_goods`.*,`shop_goods`.`goods_str`,`shop_goods`.`id`,`shop_goods`.`picUrl`,shop_goods.price as old_price,`shop_goods`.`sale_number` FROM `sun_group_goods` `group_goods` INNER JOIN `sun_shop_goods` `shop_goods` ON `shop_goods`.`id`=`group_goods`.`goods_id` WHERE `group_goods`.`status` = 1 LIMIT 0,8
Database Config
type mysql
hostname 127.0.0.1
database zwtc
hostport
dsn
params []
charset utf8
prefix sun_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
resultset_type \think\Collection
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
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/index/group/index.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/index/group/index.html
REMOTE_PORT
53646
SCRIPT_FILENAME
/mnt/www/wwwroot/zwtc/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/mnt/www/wwwroot/zwtc/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/mnt/www/wwwroot/zwtc/public
REMOTE_ADDR
44.204.34.64
SERVER_PORT
80
SERVER_ADDR
172.17.123.210
SERVER_NAME
www.izwtc.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.izwtc.com Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
www.izwtc.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
REDIRECT_STATUS
200
REDIRECT_PATH_INFO
index/group/index.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711630631.1723
REQUEST_TIME
1711630631
PATH_INFO
index/group/index.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/www/wwwroot/zwtc/public/../application/
app_key
3331333731383036
app_secret
6842a54e4aab6e22bf368e5b7291efdf
app_id
232
whost
ws://www.izwtc.com
ahost
http://www.izwtc.com
wport
9091
aport
2081
registToken
1912263846
appid
appsecret
token
domain
http://www.zwsmcn.com
THINK_VERSION
5.0.24
THINK_START_TIME
1711630631.1724
THINK_START_MEM
399920
EXT
.php
DS
/
THINK_PATH
/mnt/www/wwwroot/zwtc/thinkphp/
LIB_PATH
/mnt/www/wwwroot/zwtc/thinkphp/library/
CORE_PATH
/mnt/www/wwwroot/zwtc/thinkphp/library/think/
TRAIT_PATH
/mnt/www/wwwroot/zwtc/thinkphp/library/traits/
ROOT_PATH
/mnt/www/wwwroot/zwtc/
EXTEND_PATH
/mnt/www/wwwroot/zwtc/extend/
VENDOR_PATH
/mnt/www/wwwroot/zwtc/vendor/
RUNTIME_PATH
/mnt/www/wwwroot/zwtc/runtime/
LOG_PATH
/mnt/www/wwwroot/zwtc/runtime/log/
CACHE_PATH
/mnt/www/wwwroot/zwtc/runtime/cache/
TEMP_PATH
/mnt/www/wwwroot/zwtc/runtime/temp/
CONF_PATH
/mnt/www/wwwroot/zwtc/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/mnt/www/wwwroot/zwtc/addons/
USER
12612019@qq.com
UKEY
3GbJjWpdBbmfbEpB
PRINT_SERVER
https://api.feieyun.cn/Api/Open/
API_SERVER
http://www.viooma.com/plugin/
IP
api.feieyun.cn
PATH
/Api/Open/
APP
/mnt/www/wwwroot/zwtc/application