CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1203] User Sql93582_new already has more than 'max_user_connections' active connections

/var/www/www.cloud-hotel.it/framework/db/CDbConnection.php(382)

370                 throw new CDbException(Yii::t('yii','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(Yii::t('yii','CDbConnection failed to open the DB connection: {error}',
383                         array('{error}'=>$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(Yii::t('yii','CDbConnection failed to open the DB connection.'),(int)$e->getCode(),$e->errorInfo);
389                 }
390             }
391         }
392     }
393 
394     /**

Stack Trace

#7
+
 /var/www/www.cloud-hotel.it/protected/models/Comune.php(52): CActiveRecord::model("Comune")
47      * @param string $className active record class name.
48      * @return Comune the static model class
49      */
50     public static function model($className=__CLASS__)
51     {
52         return parent::model($className);
53     }
54 
55     /**
56      * @return string the associated database table name
57      */
#8
+
 /var/www/www.cloud-hotel.it/protected/controllers/PublicController.php(354): Comune::model()
349 350      */
351     
352     public function actionComune( $slug ){
353         
354         $comune = Comune::model()->findByAttributes( array('cslug'=>$slug ) );
355         
356                 
357         $criteria = new CDbCriteria();
358         $criteria->with = array('comune','feedbackCount','services','media');
359         $criteria->order = 'nome ASC';
#18
+
 /var/www/www.cloud-hotel.it/index.php(84): CApplication->run()
79                 }
80               }
81               return true;
82             },
83 */
84 $application->run();
2024-03-28 20:59:15 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.9