Voyage PHP warning

PHP warning

Cannot modify header information - headers already sent by (output started at /home2/garagevinconneau/public_html/protected/config/main.php:1)

/home2/garagevinconneau/public_html/framework/web/CHttpRequest.php(789)

777     /**
778      * Redirects the browser to the specified URL.
779      * @param string $url URL to be redirected to. Note that when URL is not
780      * absolute (not starting with "/") it will be relative to current request URL.
781      * @param boolean $terminate whether to terminate the current application
782      * @param integer $statusCode the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
783      * for details about HTTP status code.
784      */
785     public function redirect($url,$terminate=true,$statusCode=302)
786     {
787         if(strpos($url,'/')===0 && strpos($url,'//')!==0)
788             $url=$this->getHostInfo().$url;
789         header('Location: '.$url, true, $statusCode);
790         if($terminate)
791             Yii::app()->end();
792     }
793 
794     /**
795      * Returns an array of user accepted languages in order of preference.
796      * The returned language IDs will NOT be canonicalized using {@link CLocale::getCanonicalID}.
797      * @return array the user accepted languages in the order of preference.
798      * See {@link http://tools.ietf.org/html/rfc2616#section-14.4}
799      */
800     public function getPreferredLanguages()
801     {

Stack Trace

#13
+
 /home2/garagevinconneau/public_html/index.php(22): CApplication->run()
17 $custom_config = json_decode(file_get_contents(dirname(__FILE__).'/protected/config/custom.php'), true);
18 $custom_config = $custom_config ? $custom_config : array();
19 $config = CMap::mergeArray($config,$custom_config);
20 
21 //print_r($config);exit;
22 Yii::createWebApplication($config)->run();
2018-12-16 10:57:49 Apache Yii Framework/1.1.13