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/common/modules/suaConta/controllers/DefaultController.php(62): CActiveRecord->__construct("login")
57 
58     public function actionLogin($id = NULL) {
59         //Yii::app()->theme = 'siteOfertas'; 
60         $this->layout = '//layouts/onlycanvas';
61 
62         $model = new UserGroupsUser('login');
63         $modelPessoa = new PfPessoa('novaContaOferta');
64         $formVisible = (isset($id) && $id) ? 'cadastro' : 'login';
65         $msgRetorno = null;
66         
67         if (isset($_POST['UserGroupsUser'])) {
#15
+
 /var/www/html/SiteOfertas/components/Controller.php(52): CFilter->filter(CFilterChain)
47         Yii::import('userGroups.models.UserGroupsUser');
48         Yii::import('userGroups.models.UserGroupsConfiguration');
49         Yii::import('userGroups.components.UserGroupsAccessControl');
50         $filter = new UserGroupsAccessControl;
51         $filter->setRules($this->accessRules());
52         $filter->filter($filterChain);
53     }
54 
55     public $mobile_menu = true;
56     public $busca_categoria = NULL;
57     public $busca_params = NULL;
2024-03-29 07:10:32 Apache/2.4.52 (Amazon) OpenSSL/1.0.2k-fips PHP/5.4.45 Yii Framework/1.1.15