PHP warning

Cannot modify header information - headers already sent by (output started at /home/bps2100/public_html/protected/controllers/PublikasiController.php:1)

/home/bps2100/public_html/yii/framework/web/CHttpRequest.php(1110)

1098     }
1099 
1100     /**
1101      * Sends a cookie.
1102      * @param CHttpCookie $cookie cookie to be sent
1103      */
1104     protected function addCookie($cookie)
1105     {
1106         $value=$cookie->value;
1107         if($this->_request->enableCookieValidation)
1108             $value=Yii::app()->getSecurityManager()->hashData(serialize($value));
1109         if(version_compare(PHP_VERSION,'5.2.0','>='))
1110             setcookie($cookie->name,$value,$cookie->expire,$cookie->path,$cookie->domain,$cookie->secure,$cookie->httpOnly);
1111         else
1112             setcookie($cookie->name,$value,$cookie->expire,$cookie->path,$cookie->domain,$cookie->secure);
1113     }
1114 
1115     /**
1116      * Deletes a cookie.
1117      * @param CHttpCookie $cookie cookie to be deleted
1118      */
1119     protected function removeCookie($cookie)
1120     {
1121         if(version_compare(PHP_VERSION,'5.2.0','>='))
1122             setcookie($cookie->name,'',0,$cookie->path,$cookie->domain,$cookie->secure,$cookie->httpOnly);

Stack Trace

#4
+
 /home/bps2100/public_html/protected/views/publikasi/view.php(58): CComponent->__get("csrfToken")
53         $explodedflipping=explode(".",$model->file_flipping);
54         $extractedzip = $explodedflipping[0];    
55         }
56         if (($model->file_flipping) and (file_exists($_SERVER['DOCUMENT_ROOT'].Yii::app()->params['root'].'/flipping_publikasi/'.$extractedzip.'/indexFlip.php'))){
57             echo '<div style="margin-top:20px;font-size: 80%;font-weight: 100;text-decoration: none;background:#00497d;text-transform: uppercase;display: inline-block;border-radius: 5px;cursor: pointer;text-align: center;width: 100%;line-height: 30px;vertical-align: middle;">';
58             echo CHtml::ajaxLink(Yii::t("penerjemah","Baca Online"), Yii::app()->createUrl('publikasi/updateCounter'), array('type'=>'POST', 'data'=>array('id'=>$model->id_publikasi,'YII_CSRF_TOKEN' => Yii::app()->request->csrfToken),'success'=>'function(html){ window.open(html); }'),array('style'=>'display:block;color:white;'));    
59             echo '</div>';
60                 
61         }
62         if(($model->file_pdf) and (file_exists($_SERVER['DOCUMENT_ROOT'].Yii::app()->params['root'].'/pdf_publikasi/'.$model->file_pdf))){
63             echo '<div style="margin-top:20px;font-size: 80%;font-weight: 100;text-decoration: none;background:#00497d;text-transform: uppercase;display: inline-block;border-radius: 5px;cursor: pointer;text-align: center;width: 100%;line-height: 30px;vertical-align: middle;"><a href="'.
#9
+
 /home/bps2100/public_html/protected/controllers/PublikasiController.php(50): CController->render("view", array("model" => Publikasi))
45     public function actionView($id)
46     {
47         //$this->layout ='//layouts/mobile/main-without-sidebar';
48         $this->render('view',array(
49             'model'=>$this->loadModel($id),
50         ));
51     }
52 
53     /**
54      * Lists all models.
55      */
#24
+
 /home/bps2100/public_html/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();
2015-04-02 10:06:40 Apache Yii Framework/1.1.12