CDbException

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

/var/www/html/com.fydyyw.www/web/protected/modules/portal/models/MiningSearchModel.php(72)

60 
61     /**
62      * 招投标信息 招采信息  本页搜索
63      */
64     public   function doSelectinfo() {
65 
66         if(isset($_GET['page'])) {
67             $this->page = $_GET['page'];
68         } else {
69             $this->page = 1;
70         }
71         $sqlWhere = ' where   1 = 1 ';
72         if (! CCheck::isEmpty ( $this->mining_xmname )) {
73             $sqlWhere .= " and mining_xmname like '%" . CPub::doRC ( $this->mining_xmname ) . "%' ";
74         }
75         if (! CCheck::isEmpty ( $this->mining_title )) {
76             $sqlWhere .= " and mining_title like '%" . CPub::doRC ( $this->mining_title ) . "%' ";
77         }
78         if (! CCheck::isEmpty ( $this->ztbdir_id )) {
79             $sqlWhere .= " and b.ztbdir_id  = '" .   $this->ztbdir_id   . "' ";
80         }
81         if (! CCheck::isEmpty ( $this->ztbpro_id )) {
82             $sqlWhere .= " and b.ztbpro_id  = '" .   $this->ztbpro_id   . "' ";
83         }
84         if (! CCheck::isEmpty ( $this->ztbmen_id )) {

Stack Trace

#8
+
 /var/www/html/com.fydyyw.www/web/protected/modules/portal/models/MiningSearchModel.php(72): CActiveRecord->__get("mining_xmname")
67             $this->page = $_GET['page'];
68         } else {
69             $this->page = 1;
70         }
71         $sqlWhere = ' where   1 = 1 ';
72         if (! CCheck::isEmpty ( $this->mining_xmname )) {
73             $sqlWhere .= " and mining_xmname like '%" . CPub::doRC ( $this->mining_xmname ) . "%' ";
74         }
75         if (! CCheck::isEmpty ( $this->mining_title )) {
76             $sqlWhere .= " and mining_title like '%" . CPub::doRC ( $this->mining_title ) . "%' ";
77         }
#9
+
 /var/www/html/com.fydyyw.www/web/protected/modules/portal/controllers/MenuController.php(428): MiningSearchModel->doSelectinfo()
423         if (isset ( $_POST ['MiningSearchModel'] )) { // 判断是否点击按钮提交了
424             $miningSearchModel->attributes = $_POST ['MiningSearchModel']; // 表单中的数据压入到对象中
425             $miningSearchModel->page = $_POST ['page'];
426             $miningSearchModel->validate (); // model对象调用rule验证
427         }
428         $temp = $miningSearchModel->doSelectinfo ();//调用查询方法,参数为每页显示多少条记录
429         $data = array(
430 
431             'result' =>$temp ['result'],
432             'miningSearchModel' =>$miningSearchModel,
433             'page' =>$temp ['page'],
#17
+
 /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 16:50:57 nginx/1.16.0 Yii Framework/1.1.16