CDbException CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.. The SQL statement executed was: SELECT * FROM lime_users ORDER BY uid /var/www/html/survey/framework/db/CDbCommand.php(528) 516 return $result; 517 } 518 catch(Exception $e) 519 { 520 if($this->_connection->enableProfiling) 521 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 522 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 523 $message = $e->getMessage(); 524 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 525 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 526 if(YII_DEBUG) 527 $message .= '. The SQL statement executed was: '.$this->getText().$par; 528 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 529 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 530 } 531 } 532 533 /** 534 * Builds a SQL SELECT statement from the given query specification. 535 * @param array $query the query specification in name-value pairs. The following 536 * query options are supported: {@link select}, {@link distinct}, {@link from}, 537 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 538 * {@link limit}, {@link offset} and {@link union}. 539 * @return string the SQL statement 540 * @since 1.1.6 Stack Trace #0 – /var/www/html/survey/framework/db/CDbCommand.php(372): CDbCommand->queryInternal("", 0, array()) 367 * @return CDbDataReader the reader object for fetching the query result 368 * @throws CException execution failed 369 */ 370 public function query($params=array()) 371 { 372 return $this->queryInternal('',0,$params); 373 } 374 375 /** 376 * Executes the SQL statement and returns all rows. 377 * @param boolean $fetchAssociative whether each row should be returned as an associated array with #1 – /var/www/html/survey/application/helpers/common_helper.php(1342): CDbCommand->query() 1337 else 1338 { 1339 $uquery = "SELECT * FROM {{users}} ORDER BY uid"; 1340 } 1341 1342 $uresult = Yii::app()->db->createCommand($uquery)->query()->readAll(); //Checked 1343 1344 if (count($uresult)==0) 1345 //user is not in a group and usercontrolSameGroupPolicy is activated - at least show his own userinfo 1346 { 1347 $uquery = "SELECT u.* FROM {{users}} AS u WHERE u.uid=".$myuid; #2 – /var/www/html/survey/application/helpers/common_helper.php(7561): getUserList() 7556 $surveyselecter = ""; 7557 7558 if (Yii::app()->getConfig('usercontrolSameGroupPolicy') == true) 7559 { 7560 7561 $authorizedUsersList = getUserList('onlyuidarray'); 7562 } 7563 7564 foreach($surveyidresult->readAll() as $sv) 7565 { 7566 if (Yii::app()->getConfig('usercontrolSameGroupPolicy') == false || #3 – /var/www/html/survey/application/controllers/admin/surveypermission.php(169): getSurveyUserList() 164 165 $surveysecurity .= "\n" 166 . "\n" 167 . "
\n" 174 . "