CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1129] Host '172.31.32.82' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

/var/www/html/common/modules/userGroups/models/UserGroupsUser.php(149)

137     /**
138      * Returns the static model of the specified AR class.
139      * @return UserGroupsUser the static model class
140      */
141     public static function model($className = __CLASS__) {
142         return parent::model($className);
143     }
144 
145     /**
146      * @return string the associated database table name
147      */
148     public function tableName() {
149         return Yii::app()->db->tablePrefix . 'usergroups_user';
150     }
151 
152     /**
153      * @return array validation rules for model attributes.
154      */
155     public function rules() {
156         // load validation rules folder
157         Yii::import('userGroups.validation.*');
158         // rules
159         $rules = array(
160             array('group_id', 'length', 'max' => 20),
161             array('username, password, home', 'length', 'max' => 120),

Stack Trace

#4
+
 /var/www/html/common/modules/userGroups/models/UserGroupsUser.php(149): CModule->__get("db")
144 
145     /**
146      * @return string the associated database table name
147      */
148     public function tableName() {
149         return Yii::app()->db->tablePrefix . 'usergroups_user';
150     }
151 
152     /**
153      * @return array validation rules for model attributes.
154      */
#8
+
 /var/www/html/AreaParceiro/controllers/SiteController.php(36): CActiveRecord->__construct("passRequest")
31         $this->render('login', array('model' => $model));
32     }
33 
34     public function actionPassRequest() {
35         $this->layout = '//layouts/onlycanvas';
36         $model = new UserGroupsUser('passRequest');
37         $msgRetorno = NULL;
38         if (isset($_POST['UserGroupsUser'])) {
39             $model->attributes = $_POST['UserGroupsUser'];
40             if ($model->validate()) {
41                 $model = UserGroupsUser::model()->findByAttributes(array('email' => $_POST['UserGroupsUser']['email']));
#16
+
 /var/www/html/parceiro.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 14:45:03 Apache/2.4.52 (Amazon) OpenSSL/1.0.2k-fips PHP/5.4.45 Yii Framework/1.1.15