CDbException

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

/var/www/drampush/data/www/pushfest.ru/yii-1.1.14.f0fee9/framework/db/CDbConnection.php(382)

370                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
371             try
372             {
373                 Yii::trace('Opening DB connection','system.db.CDbConnection');
374                 $this->_pdo=$this->createPdoInstance();
375                 $this->initConnection($this->_pdo);
376                 $this->_active=true;
377             }
378             catch(PDOException $e)
379             {
380                 if(YII_DEBUG)
381                 {
382                     throw new CDbException('CDbConnection failed to open the DB connection: '.
383                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
384                 }
385                 else
386                 {
387                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
388                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#8
+
 /var/www/drampush/data/www/pushfest.ru/protected/modules/rights/components/RWebUser.php(43): CWebUser->checkAccess("News.*", array(), true)
38     * @return boolean whether the operations can be performed by this user.
39     */
40     public function checkAccess($operation, $params=array(), $allowCaching=true)
41     {
42         // Allow superusers access implicitly and do CWebUser::checkAccess for others.
43         return $this->isSuperuser===true ? true : parent::checkAccess($operation, $params, $allowCaching);
44     }
45 
46     /**
47     * @param boolean $value whether the user is a superuser.
48     */
#9
+
 /var/www/drampush/data/www/pushfest.ru/protected/modules/rights/components/RightsFilter.php(45): RWebUser->checkAccess("News.*")
40 
41             // Append the controller id to the authorization item name
42             $authItem .= ucfirst($controller->id);
43 
44             // Check if user has access to the controller
45             if( $user->checkAccess($authItem.'.*')!==true )
46             {
47                 // Append the action id to the authorization item name
48                 $authItem .= '.'.ucfirst($action->id);
49 
50                 // Check if the user has access to the controller action
#11
+
 /var/www/drampush/data/www/pushfest.ru/protected/modules/rights/components/RController.php(36): CFilter->filter(CFilterChain)
31     */
32     public function filterRights($filterChain)
33     {
34         $filter = new RightsFilter;
35         $filter->allowedActions = $this->allowedActions();
36         $filter->filter($filterChain);
37     }
38 
39     /**
40     * @return string the actions that are always allowed separated by commas.
41     */
2024-03-29 11:58:53 Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/5.4.16 Yii Framework/1.1.14