array(5) { ["headers"]=> array(5) { ["Server"]=> string(21) "nginx/1.18.0 (Ubuntu)" ["Date"]=> string(29) "Sun, 14 Dec 2025 23:38:24 GMT" ["Content-Type"]=> string(24) "text/html; charset=UTF-8" ["Transfer-Encoding"]=> string(7) "chunked" ["Connection"]=> string(10) "keep-alive" } ["httpStatusCode"]=> int(500) ["contentType"]=> string(24) "text/html; charset=UTF-8" ["body"]=> string(16411) "
/var/www/html/anyway2fun/srcAppServer/protected/components/AppServerWebApplication.php(34)
22 /** 23 * Doing some application-level initialization here. 24 */ 25 public function init() { 26 /** 27 * [Dowlin 20130325] 28 * We have to set the following db PDO attributes explicitly when we 29 * migrate from PostgreSQL to MySQL. This is because MySQL PDO driver 30 * always return numeric data as strings unless we enforce the results 31 * to match database defined datatypes. 32 * @see: http://www.yiiframework.com/forum/index.php/topic/3934-cdbcommand-queryall-problem/ 33 */ 34 $this->db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); 35 $this->db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); 36 $this->dbRun->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); 37 $this->dbRun->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); 38 39 $this->chiefCloudRestClient->initialize(array("server" => $this->chiefCloudServerLoadBalancer->getServerAddress())); 40 $this->chiefCloudRestClient->option(CURLOPT_FORBID_REUSE, false); 41 $this->chiefCloudRestClient->option(CURLOPT_FRESH_CONNECT, false); 42 $this->chiefCloudRestClient->option(CURLOPT_CONNECTTIMEOUT, 10); 43 $this->chiefCloudRestClient->option(CURLOPT_TIMEOUT, 120); 44 } 45 46 /**
| #0 |
+
–
/home/www/yii-1.1.19.5790cb/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
| #1 |
+
–
/home/www/yii-1.1.19.5790cb/framework/db/CDbConnection.php(325): CDbConnection->setActive(true) 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
| #2 |
+
–
/home/www/yii-1.1.19.5790cb/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
| #3 |
+
–
/home/www/yii-1.1.19.5790cb/framework/base/CModule.php(103): CModule->getComponent("db") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
| #4 |
+
–
/var/www/html/anyway2fun/srcAppServer/protected/components/AppServerWebApplication.php(34): CModule->__get("db") 29 * migrate from PostgreSQL to MySQL. This is because MySQL PDO driver 30 * always return numeric data as strings unless we enforce the results 31 * to match database defined datatypes. 32 * @see: http://www.yiiframework.com/forum/index.php/topic/3934-cdbcommand-queryall-problem/ 33 */ 34 $this->db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); 35 $this->db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); 36 $this->dbRun->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); 37 $this->dbRun->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); 38 39 $this->chiefCloudRestClient->initialize(array("server" => $this->chiefCloudServerLoadBalancer->getServerAddress())); |
| #5 |
+
–
/home/www/yii-1.1.19.5790cb/framework/base/CApplication.php(170): AppServerWebApplication->init() 165 166 $this->configure($config); 167 $this->attachBehaviors($this->behaviors); 168 $this->preloadComponents(); 169 170 $this->init(); 171 } 172 173 174 /** 175 * Runs the application. |
| #6 |
+
–
/var/www/html/anyway2fun/srcAppServer/protected/components/AppServerWebApplication.php(19): CApplication->__construct(array("name" => "Anyway 2 Fun!!! - Application Server", "preload" => array("log"), "import" => array("application.models.*", "application.models.runwatch.*", "application.components.*", "application.interface.*", ...), "defaultController" => "app", ...)) 14 /** 15 * Constructor. 16 * @param mixed $config application configuration. 17 */ 18 public function __construct($config) { 19 parent::__construct($config); 20 } 21 22 /** 23 * Doing some application-level initialization here. 24 */ |
| #7 |
+
–
/home/www/yii-1.1.19.5790cb/framework/YiiBase.php(125): AppServerWebApplication->__construct("/var/www/html/anyway2fun/srcAppServer/protected/config/main.php") 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
| #8 |
+
–
/var/www/html/anyway2fun/srcAppServer/index-dev.php(22): YiiBase::createApplication("AppServerWebApplication", "/var/www/html/anyway2fun/srcAppServer/protected/config/main.php") 17 require_once(dirname(__FILE__).'/protected/config/globalconst.php'); 18 19 // Use Application Specific CWebApplication class 20 $appServerWebAppFile = dirname(__FILE__) . "/protected/components/AppServerWebApplication.php"; 21 require_once($appServerWebAppFile); 22 Yii::createApplication("AppServerWebApplication", $config)->run(); |