CDbException

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

/home/valesdas/domains/valesdaserra.com.br/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

#7
+
 /home/valesdas/domains/valesdaserra.com.br/public_html/protected/extensions/giix-components/GxActiveRecord.php(26): CActiveRecord::model("Vinicolas")
21      * composite pk table. Usually a character.
22      */
23     public static $pkSeparator = '-';
24 
25     public static function model($className=__CLASS__) {
26         return parent::model($className);
27     }
28 
29     /**
30      * This method should be overridden to declare related pivot models for each MANY_MANY relationship.
31      * The pivot model is used by {@link saveWithRelated}.
#8
+
 /home/valesdas/domains/valesdaserra.com.br/public_html/protected/models/_base/BaseVinicolas.php(31): GxActiveRecord::model("Vinicolas")
26  * @property VinicolasFotos[] $vinicolasFotoses
27  */
28 abstract class BaseVinicolas extends GxActiveRecord {
29 
30     public static function model($className = __CLASS__) {
31         return parent::model($className);
32     }
33 
34     public function tableName() {
35         return 'vinicolas';
36     }
#9
+
 /home/valesdas/domains/valesdaserra.com.br/public_html/protected/models/Vinicolas.php(8): BaseVinicolas::model("Vinicolas")
03 Yii::import('application.models._base.BaseVinicolas');
04 
05 class Vinicolas extends BaseVinicolas
06 {
07     public static function model($className=__CLASS__) {
08         return parent::model($className);
09     }
10 }
2024-03-29 05:35:31 LiteSpeed Yii Framework/1.1.12