CDbException

CDbConnection ha riportato un errore nell'apertura della connessione al DB: 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/Post.php(43): CActiveRecord::model("Post")
38      * Returns the static model of the specified AR class.
39      * @return CActiveRecord the static model class
40      */
41     public static function model($className=__CLASS__)
42     {
43         return parent::model($className);
44     }
45 
46     /**
47      * @return string the associated database table name
48      */
#8
+
 /var/www/www.cloud-hotel.it/protected/controllers/BlogController.php(194): Post::model()
189                     $condition='';
190                     
191                     
192                     $condition='';        //Permetto a tutti di vedere anche gli articoli bozze , se richiamati direttamente da url
193                 
194                 $this->_model=Post::model()->findByPk($_GET['id'], $condition);
195             }
196             if($this->_model===null)
197                 throw new CHttpException(404,'The requested page does not exist.');
198         }
199         return $this->_model;
#9
+
 /var/www/www.cloud-hotel.it/protected/controllers/BlogController.php(48): BlogController->loadModel()
43     /**
44      * Displays a particular model.
45      */
46     public function actionView()
47     {
48         $post=$this->loadModel();
49         $comment=$this->newComment($post);
50 
51         $this->render('view',array(
52             'model'=>$post,
53             'comment'=>$comment,
2024-03-28 20:59:48 Apache/2.4.41 (Ubuntu) Yii Framework/1.1.9