PHP warning

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

/homepages/46/d829343105/htdocs/letstravel/en_ly/framework/web/CHttpSession.php(340)

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

Stack Trace

#5
+
 /homepages/46/d829343105/htdocs/letstravel/en_ly/protected/views/layouts/market.php(38): CModule->__isset("session")
33 <body>
34     <header class="lulutop">
35         <div class="container market-top">        
36            
37                 <div class="fl">
38                 <?php if(!isset(Yii::app()->session["first"])){?>
39                 <a href="/"><img class="lulogo" src="<?php echo Yii::app()->baseUrl;?>/assets/index/images/logo.png" alt=""></a>
40                 <?php }else{?>
41                     <a href="/affiliate"><img class="lulogo" src="<?php echo Yii::app()->baseUrl;?>/assets/index/images/logo.png" alt=""></a>
42                 <?php }?>
43                 </div>
#9
+
 /homepages/46/d829343105/htdocs/letstravel/en_ly/protected/controllers/MarketController.php(193): CController->render("album", array("model" => PwycAlbum, "pic" => array(array(PwycPic, PwycPic, PwycPic, PwycPic, ...), array(PwycPic, PwycPic, PwycPic, PwycPic, ...), array(PwycPic, PwycPic, PwycPic, PwycPic), array(PwycPic, PwycPic, PwycPic, PwycPic))))
188                 foreach($pic as $key=>$v){
189                     $mo =$key%4;
190                     $arr[$mo][]=$v;
191                 }
192             }
193             $this->render('album',array('model'=>$album,'pic'=>$arr));
194         }
195         //用来判断相册是否存在
196         public function getpicmodel($id){
197             $model=PwycAlbum::model()->find(array('condition'=>"sort='$id'"));
198             if($model){
#19
+
 /homepages/46/d829343105/htdocs/letstravel/en_ly/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
15 
16 
17 function isRedirect($redirecturl)
18 {
19     if(isset($_COOKIE['letsravel_area'])){
2020-11-27 02:30:02 Apache Yii Framework/1.1.15