[10501] PDOException in Connection.php line 385

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

  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 `id`,`catenna...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT `id`,`catenna...', [], false, false) in Query.php line 2523
  4. at Query->select() in route.php line 16
  5. at include('/www/users/HA564053/...') in App.php line 641
  6. at App::routeCheck(object(Request), ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 116
  7. at App::run() in start.php line 19
  8. at require('/www/users/HA564053/...') in index.php line 19

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 `id`,`catenname` FROM `rym_category`
Database Config
type
mysql
hostname
08gqw6r8.2387.dnstoo.com:5504
database
jhwood
hostport
3306
dsn
params
[]
charset
utf8
prefix
rym_
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
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

REDIRECT_REDIRECT_UNIQUE_ID
Xw32JX8AAAEAAG4jtOQAAAAB
REDIRECT_REDIRECT_PHPRC
/usr/local/zend/apache2/conf/extra/private_php/HA564053
REDIRECT_REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
Xw32JX8AAAEAAG4jtOQAAAAB
REDIRECT_PHPRC
/usr/local/zend/apache2/conf/extra/private_php/HA564053
REDIRECT_HANDLER
application/x-httpd-php7
REDIRECT_STATUS
200
UNIQUE_ID
Xw32JX8AAAEAAG4jtOQAAAAB
PHPRC
/usr/local/zend/apache2/conf/extra/private_php/HA564053
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.jhwood.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/usr/local/jdk/bin:/sbin:/usr/sbin:/bin:/usr/bin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
www.jhwood.com
SERVER_ADDR
122.114.221.240
SERVER_PORT
80
REMOTE_ADDR
175.29.241.16
DOCUMENT_ROOT
/www/users/HA564053/WEB
SERVER_ADMIN
vhost@zzidc.com
SCRIPT_FILENAME
/www/users/HA564053/WEB/index.php
REMOTE_PORT
20001
REDIRECT_URL
/index.php/page/35.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/page/35.html
SCRIPT_NAME
/index.php
PATH_INFO
/page/35.html
PATH_TRANSLATED
/www/users/HA564053/WEB/page/35.html
ORIG_PATH_INFO
/index.php/page/35.html
ORIG_SCRIPT_NAME
/php71-cgi
ORIG_SCRIPT_FILENAME
/usr/local/zend/php7.1/bin/php-cgi
ORIG_PATH_TRANSLATED
/www/users/HA564053/WEB/index.php/page/35.html
PHP_SELF
/index.php/page/35.html
REQUEST_TIME_FLOAT
1594750501.9801
REQUEST_TIME
1594750501
Environment Variables
empty

ThinkPHP Constants

APP_VERSION
1.0.1
APP_PATH
/www/users/HA564053/WEB/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1594750501.982
THINK_START_MEM
357288
EXT
.php
DS
/
THINK_PATH
/www/users/HA564053/WEB/thinkphp/
LIB_PATH
/www/users/HA564053/WEB/thinkphp/library/
CORE_PATH
/www/users/HA564053/WEB/thinkphp/library/think/
TRAIT_PATH
/www/users/HA564053/WEB/thinkphp/library/traits/
ROOT_PATH
/www/users/HA564053/WEB/
EXTEND_PATH
/www/users/HA564053/WEB/extend/
VENDOR_PATH
/www/users/HA564053/WEB/vendor/
RUNTIME_PATH
/www/users/HA564053/WEB/runtime/
LOG_PATH
/www/users/HA564053/WEB/runtime/log/
CACHE_PATH
/www/users/HA564053/WEB/runtime/cache/
TEMP_PATH
/www/users/HA564053/WEB/runtime/temp/
CONF_PATH
/www/users/HA564053/WEB/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
Author
Atom
UPLOADDIR
/www/users/HA564053/WEB//uploads/