CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied for user 'amronewm_artmix'@'localhost' (using password: YES)

/home1/amronewm/public_html/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
+
 /home1/amronewm/public_html/protected/modules/rights/components/RWebUser.php(43): CWebUser->checkAccess("Posts.*", 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
+
 /home1/amronewm/public_html/protected/modules/rights/components/RightsFilter.php(43): RWebUser->checkAccess("Posts.*")
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
+
 /home1/amronewm/public_html/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-28 10:20:13 Apache Yii Framework/1.1.14