[10501] PDOException in Connection.php line 687

SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared

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

Call Stack

  1. in Connection.php line 687
  2. at Connection->query('SELECT * FROM `s_goo...', ['ThinkBind_1_' => [1, 1]], false, false) in Connection.php line 923
  3. at Connection->select(object(Query)) in Query.php line 2996
  4. at Query->select() in NavigationService.php line 40
  5. at NavigationService::Home() in Common.php line 224
  6. at Common->NavInit() in Common.php line 63
  7. at Common->__construct()
  8. at ReflectionClass->newInstanceArgs([]) in Container.php line 439
  9. at Container->invokeClass('app\index\controller...', []) in Container.php line 284
  10. at Container->make('app\index\controller...', []) in App.php line 727
  11. at App->controller('ledgkddz', 'controller', false, 'Error') in Module.php line 95
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}(object(Request), object(Closure), null)
  15. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  16. at Middleware->think\{closure}(object(Request)) in SystemEnvCheck.php line 42
  17. at SystemEnvCheck->handle(object(Request), object(Closure), null)
  18. at call_user_func_array([object(SystemEnvCheck), 'handle'], [object(Request), object(Closure), null]) in Middleware.php line 185
  19. at Middleware->think\{closure}(object(Request))
  20. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  21. at Middleware->dispatch(object(Request)) in App.php line 435
  22. at App->run() in index.php line 28
  23. at require('/data/home/syu557887...') in index.php line 16

Exception Datas

PDO Error Info
SQLSTATE
HY000
Driver Error Code
1615
Driver Error Message
Prepared statement needs to be re-prepared
Database Status
Error Code
10501
Error Message
SQLSTATE[HY000]: General error: 1615 Prepared statement needs to be re-prepared
Error SQL
SELECT * FROM `s_goods_category` WHERE `pid` = 1 ORDER BY `sort` DESC
Database Config
type
mysql
hostname
sdm359768252.my3w.com
database
sdm359768252_db
hostport
3306
dsn
params
[]
charset
utf8
prefix
s_
debug
true
deploy
0
rw_separate
false
master_num
1
slave_no
read_master
false
fields_strict
true
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
break_match_str
[]

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
DOCUMENT_ROOT
/usr/home/syu5578870001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_HOST
www.guangdecheng.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH
/bin:/usr/bin
PHPRC
/var/www/php70/hichina_ini/syu5578870001
QUERY_STRING
s=ledgk/ledgkddz.html
REDIRECT_DOCUMENT_ROOT
/usr/home/syu5578870001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
deflate, gzip
REDIRECT_HTTP_HOST
www.guangdecheng.com
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_PATH
/bin:/bin/sbin/:/usr/sbin/:/usr/bin/:/usr/local/bin/:/sbin
REDIRECT_PATH_INFO
/ledgkddz.html
REDIRECT_PATH_TRANSLATED
redirect:/index.php
REDIRECT_QUERY_STRING
s=ledgk/ledgkddz.html
REDIRECT_REMOTE_ADDR
154.209.215.151
REDIRECT_REMOTE_PORT
20000
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/ledgk/ledgkddz.html
REDIRECT_SCRIPT_FILENAME
/usr/home/syu5578870001/htdocs/ledgk
REDIRECT_SCRIPT_NAME
/ledgk
REDIRECT_SERVER_ADDR
172.17.62.200
REDIRECT_SERVER_ADMIN
webmaster@syu5578870001.my3w.com
REDIRECT_SERVER_NAME
www.guangdecheng.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
X2mED6wRPsgAAGgwL0MAAAAa
REDIRECT_URL
/ledgk/ledgkddz.html
REMOTE_ADDR
154.209.215.151
REMOTE_PORT
20000
REQUEST_METHOD
GET
REQUEST_URI
/ledgk/ledgkddz.html
SCRIPT_FILENAME
/usr/home/syu5578870001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
172.17.62.200
SERVER_ADMIN
webmaster@syu5578870001.my3w.com
SERVER_NAME
www.guangdecheng.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
X2mED6wRPsgAAGgwL0MAAAAa
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1600750607.8548
REQUEST_TIME
1600750607
Environment Variablesempty
ThinkPHP Constants
IS_ROOT_ACCESS
true
APPLICATION_VERSION
v1.2.0
DS
/
__MY_HTTP__
http
__MY_ROOT__
__MY_ROOT_PUBLIC__
/public/
__MY_HOST__
www.guangdecheng.com
__MY_URL__
http://www.guangdecheng.com/
__MY_PUBLIC_URL__
http://www.guangdecheng.com/public/
__MY_VIEW_URL__
http://www.guangdecheng.com/ledgk/ledgkddz.html
ROOT_PATH
/data/home/syu5578870001/htdocs/public/
ROOT
/data/home/syu5578870001/htdocs/
APP_PATH
/data/home/syu5578870001/htdocs/application/
APPLICATION
web
APPLICATION_CLIENT
default
APPLICATION_CLIENT_TYPE
pc
IS_AJAX
false