Your request is invalid

PHP warning

PHP warning

Cannot modify header information - headers already sent by (output started at /vol/portal/m1/framework/web/CController.php:793)

/vol/portal/m1/framework/web/CHttpRequest.php(1380)

1368     }
1369 
1370     /**
1371      * Sends a cookie.
1372      * @param CHttpCookie $cookie cookie to be sent
1373      */
1374     protected function addCookie($cookie)
1375     {
1376         $value=$cookie->value;
1377         if($this->_request->enableCookieValidation)
1378             $value=Yii::app()->getSecurityManager()->hashData(serialize($value));
1379         if(version_compare(PHP_VERSION,'5.2.0','>='))
1380             setcookie($cookie->name,$value,$cookie->expire,$cookie->path,$cookie->domain,$cookie->secure,$cookie->httpOnly);
1381         else
1382             setcookie($cookie->name,$value,$cookie->expire,$cookie->path,$cookie->domain,$cookie->secure);
1383     }
1384 
1385     /**
1386      * Deletes a cookie.
1387      * @param CHttpCookie $cookie cookie to be deleted
1388      */
1389     protected function removeCookie($cookie)
1390     {
1391         if(version_compare(PHP_VERSION,'5.2.0','>='))
1392             setcookie($cookie->name,'',0,$cookie->path,$cookie->domain,$cookie->secure,$cookie->httpOnly);

Stack Trace

#3
+
 /vol/portal/m1/protected/controllers/SiteController.php(309): CMap->offsetSet("acz_hospital_id", CHttpCookie)
304             
305             # set hospital id to cookie
306             $exp_time = time()+2592000; // 30 days
307             $cookie = new CHttpCookie('acz_hospital_id', $hospital_id);
308             $cookie->expire = $exp_time;  
309             Yii::app()->request->cookies['acz_hospital_id'] = $cookie;
310             $cookie1 = new CHttpCookie('acz_user_type', 2); // 2 for patient
311             $cookie1->expire = $exp_time;
312             Yii::app()->request->cookies['acz_user_type'] = $cookie1;
313             
314             $this->layout = '//layouts/login_patient';
#13
+
 /vol/portal/m1/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2018-06-21 04:08:40 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.15