CDbException

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

/home/p/pvl755n1/pvl755n1.beget.tech/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/p/pvl755n1/pvl755n1.beget.tech/public_html/protected/models/Titles.php(21): CActiveRecord::model("Titles")
16      * @param string $className active record class name.
17      * @return Titles the static model class
18      */
19     public static function model($className=__CLASS__)
20     {
21         return parent::model($className);
22     }
23 
24     /**
25      * @return string the associated database table name
26      */
#8
+
–
 /home/p/pvl755n1/pvl755n1.beget.tech/public_html/protected/components/Controller.php(243): Titles::model()
238     $this->banner = $this->banners[$mt_rand];
239   }
240 
241   public function getTitle() {
242     $uri   = rtrim($_SERVER['REQUEST_URI'], '/').'/';
243     $tData = Titles::model()->find("url=".Yii::app()->db->quoteValue($uri)."");
244     $this->tTitle = $tData['title'];
245     $this->meta   = $tData['meta'];
246   }
247 
248   public function countCartData() {
#9
+
–
 /home/p/pvl755n1/pvl755n1.beget.tech/public_html/protected/components/Controller.php(75): Controller->getTitle()
70 
71         $xp = explode('/', rtrim($_SERVER['REQUEST_URI'], '/'));
72 
73         $this->PRQ = $xp;
74     $this->getBanners();
75     $this->getTitle();
76     $this->makeSiteSettings();
77     $this->makeMainMenu();
78     $this->getCategories();
79     $this->leftPlants();
80     $this->getKashpoMenu();
2026-11-16 10:19:03 Apache/2.4.68 (Unix) Yii Framework/1.1.12