3 PHP Error

PHP Error

Descriere

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

Fisierul sursa

/home/clubfiat/public_html/framework/web/CHttpRequest.php(587)

00575:     /**
00576:      * Redirects the browser to the specified URL.
00577:      * @param string URL to be redirected to. If the URL is a relative one, the base URL of
00578:      * the application will be inserted at the beginning.
00579:      * @param boolean whether to terminate the current application
00580:      * @param integer the HTTP status code. Defaults to 302. See {@link http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html}
00581:      * for details about HTTP status code. This parameter has been available since version 1.0.4.
00582:      */
00583:     public function redirect($url,$terminate=true,$statusCode=302)
00584:     {
00585:         if(strpos($url,'/')===0)
00586:             $url=$this->getHostInfo().$url;
00587: header('Location: '.$url, true, $statusCode);
00588: if($terminate) 00589: Yii::app()->end(); 00590: } 00591: 00592: /** 00593: * @return string the user preferred language. 00594: * The returned language ID will be canonicalized using {@link CLocale::getCanonicalID}. 00595: * This method returns false if the user does not have language preference. 00596: */ 00597: public function getPreferredLanguage() 00598: { 00599: if($this->_preferredLanguage===null)

Stack Trace

#0 /home/clubfiat/public_html/framework/web/CHttpRequest.php(587): header()
#1 /home/clubfiat/public_html/framework/web/CController.php(933): CHttpRequest->redirect()
#2 /home/clubfiat/public_html/protected/controllers/SiteController.php(125): SiteController->redirect()
#3 /home/clubfiat/public_html/framework/web/actions/CInlineAction.php(50): SiteController->actionPartener()
#4 /home/clubfiat/public_html/framework/web/CController.php(300): CInlineAction->run()
#5 /home/clubfiat/public_html/framework/web/CController.php(278): SiteController->runAction()
#6 /home/clubfiat/public_html/framework/web/CController.php(257): SiteController->runActionWithFilters()
#7 /home/clubfiat/public_html/framework/web/CWebApplication.php(324): SiteController->run()
#8 /home/clubfiat/public_html/framework/web/CWebApplication.php(121): CWebApplication->runController()
#9 /home/clubfiat/public_html/framework/base/CApplication.php(135): CWebApplication->processRequest()
#10 /home/clubfiat/public_html/index.php(13): CWebApplication->run()
2012-05-27 19:45:52 Apache Yii Framework/1.1.4