CDbException

CDbConnection failed to open the DB connection: SQLSTATE[08006] [7] could not connect to server: No route to host
Is the server running on host "202.148.162.93" and accepting
TCP/IP connections on port 5432?

/var/www/i13/estore/protected/models/Mistable.php(28)

16  * @property string $stringvalue3
17  * @property string $usagedesc
18  */
19 class Mistable extends CActiveRecord 
20 {
21 
22     public $dbConnection;
23     public $dbSchema;
24 
25     // constructor for db connection
26     public function __construct() 
27     {
28         $this->dbConnection = Yii::app()->db;
29         $this->dbSchema = isset (Yii::app ()->controller->octDbSchema) ? Yii::app ()->controller->octDbSchema : 'public';
30 
31         parent::__construct();
32     }
33 
34     /**
35      * @return string the associated database table name
36      */
37     public function tableName () 
38     {
39         return $this->dbSchema.'.mistable';
40     }

Stack Trace

#4
+
 /var/www/i13/estore/protected/models/Mistable.php(28): CModule->__get("db")
23     public $dbSchema;
24 
25     // constructor for db connection
26     public function __construct() 
27     {
28         $this->dbConnection = Yii::app()->db;
29         $this->dbSchema = isset (Yii::app ()->controller->octDbSchema) ? Yii::app ()->controller->octDbSchema : 'public';
30 
31         parent::__construct();
32     }
33 
#5
+
 /var/www/i13/estore/protected/components/Octopus.php(36): Mistable->__construct()
31         return self::$appVersion;
32     }
33 
34     //get theme for ecom
35     public static function getEcomThemeName(){
36         $modelMistable = new Mistable ();
37         return $modelMistable->getConstant ('website_theme');
38     }
39 
40     public static function getEcomThemePath(){
41         $baseUrl = Yii::app()->request->baseUrl;
#6
+
 /var/www/i13/estore/protected/modules/cart/components/Controller.php(11): Octopus::getEcomThemeName()
06 class Controller extends OcController
07 // class Controller extends OcController
08 {   
09     public function init ()
10     {
11         $website_theme = Octopus::getEcomThemeName();
12         if($website_theme && $website_theme!=''){
13                Yii::app()->theme = $website_theme;
14         }
15     }      
16 
2024-03-19 10:42:37 nginx/1.10.3 Yii Framework/1.1.17