CDbException

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

/home/s/selina123/dvigas.ru/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
+
 /home/s/selina123/dvigas.ru/public_html/protected/components/Controller.php(37): CActiveRecord->__construct()
32 
33         Yii::app()->og->title = 'Контрактные двигатели - Dvigas.ru';
34         Yii::app()->og->description = 'Контрактные двигатели - Dvigas.ru';
35         Yii::app()->og->setImage('https://dvigas.ru/image/logo.png');
36 
37         $marki = new Marki();
38         $this->marki = $marki->get_all();
39 
40         $this->callbackForm = new CallbackForm();
41 
42         return true;
#15
+
 /home/s/selina123/dvigas.ru/public_html/index.php(22): CApplication->run()
17 
18 // remove the following line when in production mode
19 defined('YII_DEBUG') or define('YII_DEBUG', true);
20 
21 require_once($yii);
22 Yii::createWebApplication($config)->run(); 
2024-03-28 21:26:57 Apache/2.4.55 (Unix) Yii Framework/1.1.14