Server operating system: LINUX
Server environment: nginx1.4.7
PHP Version: php5.6.9
MySQL version: Mysql5.5.34-log
Open Source framework: Tpshop
Error Details:
SQLSTATE[HY000]: General error:2014 cannot execute queries and other unbuffered queries is active. Consider using Pdostatement::fetchall (). Alternatively, if your code is a ever going to run against MySQL, you may enable query buffering by setting the Pdo::my Sql_attr_use_buffered_query attribute.
Search for a workaround:
Line 28th in application/database.php
// Database connection Parameters ' params ' = [],
Modify the following
// Database connection Parameters ' params ' array( ' 1002 ' = "SET NAMES UTF8", # Initial query ' + ' = true, #pdo::mysql_attr_use_buffered_query),
I'm not going to report this mistake after the change.
SQLSTATE[HY000]: General error:2014 cannot execute queries and other unbuffered queries is active.