array(3) { [0]=> string(58) "mysql:host=db;dbname=zeNDmZoKrlA;port=3306;charset=utf8mb4" [1]=> string(11) "NbdTuDOPwjL" [2]=> string(16) "Pt4WAfwLI10oN1dD" } array(3) { [0]=> string(58) "mysql:host=db;dbname=zeNDmZoKrlA;port=3315;charset=utf8mb4" [1]=> string(11) "NbdTuDOPwjL" [2]=> string(16) "Pt4WAfwLI10oN1dD" } Connection failed: SQLSTATE[HY000] [2002] Connection refused PHP warning

PHP warning

ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

/var/www/html/yii/framework/web/CHttpSession.php(343)

331      * @return integer the number of seconds after which data will be seen as 'garbage' and cleaned up, defaults to 1440 seconds.
332      */
333     public function getTimeout()
334     {
335         return (int)ini_get('session.gc_maxlifetime');
336     }
337 
338     /**
339      * @param integer $value the number of seconds after which data will be seen as 'garbage' and cleaned up
340      */
341     public function setTimeout($value)
342     {
343         ini_set('session.gc_maxlifetime',$value);
344     }
345 
346     /**
347      * Session open handler.
348      * This method should be overridden if {@link useCustomStorage} is set true.
349      * Do not call this method directly.
350      * @param string $savePath session save path
351      * @param string $sessionName session name
352      * @return boolean whether session is opened successfully
353      */
354     public function openSession($savePath,$sessionName)
355     {

Stack Trace

#5
+
 /var/www/html/protected/components/Controller.php(102): CModule->__get("session")
097         date_default_timezone_set('Asia/Tokyo');
098         $reurl=Yii::app()->request->requestUri;
099 
100         if($reurl!="/user/login")
101         {
102               Yii::app()->session['previousURL']=$reurl;
103         }
104 
105         $this->setCartItemCount();
106     }
107 }
#6
+
 /var/www/html/protected/controllers/SearchController.php(35): Controller->init()
30         '20060'     => array('name' => 'Manga / Animation'),
31         '26084'     => array('name' => 'Other'),
32     );
33 
34     public function init() {
35         parent::init();
36         $news = News::model()->findAll(array(
37             'condition' => 'deleted!=1',
38             'order' => 'modified DESC',
39             'limit' => 1,
40         ));
#10
+
 /var/www/html/index.php(17): CApplication->run()
12 defined('YII_DEBUG') or define('YII_DEBUG', true);
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
14 
15 require_once $yii;
16 require 'config.php';
17 Yii::createWebApplication($config)->run();
2025-10-01 16:15:38 Apache/2.4.54 (Debian) Yii Framework/1.1.13