PHP Error

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

/home/content/02/5766502/html/protected/controllers/SiteController.php(75)

63         if(!empty($lang))
64         {
65             if($lang == 'jp')
66             {
67                 Yii::app()->session->add('language', 'jp');
68             }
69             else
70             {
71                 Yii::app()->session->add('language', 'en');
72             }
73         }
74         
75         header('Location: '.$_SERVER['HTTP_REFERER']);
76         exit;
77     }
78     
79     public function actionCurrency()
80     {
81         $currency = Yii::app()->request->getParam('currency');
82         $return_to = Yii::app()->request->getParam('return_to');
83         if(!empty($currency))
84         {
85             if($currency == 'USD')
86             {
87                 Yii::app()->session->add('currency', 'USD');

Stack Trace

#0
+
 /home/content/02/5766502/html/protected/controllers/SiteController.php(75): header("Location: ")
70             {
71                 Yii::app()->session->add('language', 'en');
72             }
73         }
74         
75         header('Location: '.$_SERVER['HTTP_REFERER']);
76         exit;
77     }
78     
79     public function actionCurrency()
80     {
#13
+
 /home/content/02/5766502/html/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2021-12-09 03:11:35 Apache Yii Framework/1.1.8