CDbException

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

/home/uahorses/public_html/framework/db/CDbConnection.php(381)

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

Stack Trace

#8
+
 /home/uahorses/public_html/protected/modules/rights/components/RWebUser.php(43): CWebUser->checkAccess("Ad.*", 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
+
 /home/uahorses/public_html/protected/modules/rights/components/RightsFilter.php(43): RWebUser->checkAccess("Ad.*")
38 
39             // Append the controller id to the authorization item name
40             $authItem .= ucfirst($controller->id);
41 
42             // Check if user has access to the controller
43             if( $user->checkAccess($authItem.'.*')!==true )
44             {
45                 // Append the action id to the authorization item name
46                 $authItem .= '.'.ucfirst($action->id);
47 
48                 // Check if the user has access to the controller action
#11
+
 /home/uahorses/public_html/protected/modules/rights/components/RController.php(40): CFilter->filter(CFilterChain)
35     */
36     public function filterRights($filterChain)
37     {
38         $filter = new RightsFilter;
39         $filter->allowedActions = $this->allowedActions();
40         $filter->filter($filterChain);
41     }
42 
43     /**
44     * @return string the actions that are always allowed separated by commas.
45     */
2024-03-28 17:14:56 Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.45 Yii Framework/1.1.13