ofe PHP warning

PHP warning

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

/home/baktmobilepr/public_html/yii/web/CHttpRequest.php(763)

751     /**
752      * Redirects the browser to the specified URL.
753      * @param string $url URL to be redirected to. If the URL is a relative one, the base URL of
754      * the application will be inserted at the beginning.
755      * @param boolean $terminate whether to terminate the current application
756      * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
757      * for details about HTTP status code.
758      */
759     public function redirect($url,$terminate=true,$statusCode=302)
760     {
761         if(strpos($url,'/')===0)
762             $url=$this->getHostInfo().$url;
763         header('Location: '.$url, true, $statusCode);
764         if($terminate)
765             Yii::app()->end();
766     }
767 
768     /**
769      * Returns the user preferred language.
770      * The returned language ID will be canonicalized using {@link CLocale::getCanonicalID}.
771      * This method returns false if the user does not have language preference.
772      * @return string the user preferred language.
773      */
774     public function getPreferredLanguage()
775     {

Stack Trace

#2
+
 /home/baktmobilepr/public_html/protected/controllers/front/SiteController.php(1529): CController->redirect("cobertura")
1524     public function actionCobertura() {
1525         $this->render('network');
1526     }
1527 
1528     public function actionNetwork() {
1529         $this->redirect('cobertura');
1530     }
1531 
1532 //    public function actionNiUnChavoMas2(){
1533 //        $this->render('niunchavomas');
1534 //    }
#10
+
 /home/baktmobilepr/public_html/protected/components/WebApplicationEndBehavior.php(24): CApplication->run()
19         // Attach the changeModulePaths event handler
20         // and raise it.
21         $this->onModuleCreate = array($this, 'changeModulePaths');
22         $this->onModuleCreate(new CEvent($this->owner));
23 
24         $this->owner->run(); // Run application.
25     }
26 
27     // This event should be raised when CWebApplication
28     // or CWebModule instances are being initialized.
29     public function onModuleCreate($event) {
#13
+
 /home/baktmobilepr/public_html/index.php(17): CComponent->__call("runEnd", array("front"))
12 defined('YII_DEBUG') or define('YII_DEBUG', true);
13 // specify how many levels of call stack should be shown in each log message
14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->runEnd('front');
2018-12-13 10:26:39 Apache Yii Framework/1.1.12