PHP Error

Description

Cannot modify header information - headers already sent by (output started at /home/content/13/8169213/html/copyNewAstro/index.php:2)

Source File

/home/content/13/8169213/html/copyNewAstro/system/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/content/13/8169213/html/copyNewAstro/system/framework/web/CHttpRequest.php(587): header()
#1 /home/content/13/8169213/html/copyNewAstro/system/framework/web/CController.php(933): CHttpRequest->redirect()
#2 /home/content/13/8169213/html/copyNewAstro/protected/controllers/front/SiteController.php(346): SiteController->redirect()
#3 unknown(0): SiteController->actionShopping()
#4 /home/content/13/8169213/html/copyNewAstro/system/framework/web/actions/CInlineAction.php(47): ReflectionMethod->invokeArgs()
#5 /home/content/13/8169213/html/copyNewAstro/system/framework/web/CController.php(300): CInlineAction->run()
#6 /home/content/13/8169213/html/copyNewAstro/system/framework/web/filters/CFilterChain.php(133): SiteController->runAction()
#7 /home/content/13/8169213/html/copyNewAstro/system/framework/web/filters/CFilter.php(41): CFilterChain->run()
#8 /home/content/13/8169213/html/copyNewAstro/system/framework/web/CController.php(1049): CAccessControlFilter->filter()
#9 /home/content/13/8169213/html/copyNewAstro/system/framework/web/filters/CInlineFilter.php(59): SiteController->filterAccessControl()
#10 /home/content/13/8169213/html/copyNewAstro/system/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter()
#11 /home/content/13/8169213/html/copyNewAstro/system/framework/web/CController.php(283): CFilterChain->run()
#12 /home/content/13/8169213/html/copyNewAstro/system/framework/web/CController.php(257): SiteController->runActionWithFilters()
#13 /home/content/13/8169213/html/copyNewAstro/system/framework/web/CWebApplication.php(324): SiteController->run()
#14 /home/content/13/8169213/html/copyNewAstro/system/framework/web/CWebApplication.php(121): CWebApplication->runController()
#15 /home/content/13/8169213/html/copyNewAstro/system/framework/base/CApplication.php(135): CWebApplication->processRequest()
#16 /home/content/13/8169213/html/copyNewAstro/protected/components/WebApplicationEndBehavior.php(25): CWebApplication->run()
#17 unknown(0): WebApplicationEndBehavior->runEnd()
#18 /home/content/13/8169213/html/copyNewAstro/system/framework/base/CComponent.php(261): call_user_func_array()
#19 /home/content/13/8169213/html/copyNewAstro/index.php(11): CWebApplication->__call()
#20 /home/content/13/8169213/html/copyNewAstro/index.php(11): CWebApplication->runEnd()
2021-10-21 17:36:24 Apache Yii Framework/1.1.4