CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1040] Too many connections

/var/www/html/com.fydyyw.www/framework/web/widgets/CActiveForm.php(493)

481             'beforeValidateAttribute',
482             'afterValidateAttribute',
483         );
484         foreach($optionNames as $name)
485         {
486             if(isset($htmlOptions[$name]))
487             {
488                 $option[$name]=$htmlOptions[$name];
489                 unset($htmlOptions[$name]);
490             }
491         }
492 
493         if($model instanceof CActiveRecord && !$model->isNewRecord)
494             $option['status']=1;
495 
496         if($enableClientValidation)
497         {
498             $validators=isset($htmlOptions['clientValidation']) ? array($htmlOptions['clientValidation']) : array();
499             unset($htmlOptions['clientValidation']);
500 
501             $attributeName = $attribute;
502             if(($pos=strrpos($attribute,']'))!==false && $pos!==strlen($attribute)-1) // e.g. [a]name
503             {
504                 $attributeName=substr($attribute,$pos+1);
505             }

Stack Trace

#9
+
 /var/www/html/com.fydyyw.www/web/protected/modules/slogin/views/menu/menu002.php(28): CActiveForm->error(User01SearchModel, "user_admin")
23                             'validateOnSubmit'=>true
24 
25                         )))
26                     ?>
27                             <?php
28                                 if(!CCheck::isEmpty($form->error($user01SearchModel,'user_admin'))  &&  strpos($form->error($user01SearchModel,'user_admin'),"!")){
29                             ?>
30                                     <h4><?php echo $form->error($user01SearchModel,'user_admin') ;?></h4>
31 
32                             <?php
33                                 }else if(!CCheck::isEmpty($form->error($user01SearchModel,'user_pwd'))  &&  strpos($form->error($user01SearchModel,'user_pwd'),"!")){
#14
+
 /var/www/html/com.fydyyw.www/web/protected/modules/slogin/controllers/MenuController.php(32): CController->render("menu002", array("user01SearchModel" => User01SearchModel))
27                 }
28             }
29         }
30     
31         $this->render ( 'menu002', array (
32                 'user01SearchModel' => $user01SearchModel
33         ) );
34     }
35     /**
36      * 默认注册
37     registered
#22
+
 /var/www/html/com.fydyyw.www/web/config.php(12): CApplication->run()
07     defined('YII_DEBUG') or define('YII_DEBUG',true);
08     // specify how many levels of call stack should be shown in each log message
09     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11     require_once($yii);
12     Yii::createWebApplication($config)->run();
13     // 冯涛
14     // yii::app()->session->setTimeout(604800);
15 
16 
2024-03-29 21:03:29 nginx/1.16.0 Yii Framework/1.1.16