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(103)

091                 Yii::app()->session->add('currency', 'CAD');
092             }
093             elseif($currency == 'EUR')
094             {
095                 Yii::app()->session->add('currency', 'EUR');
096             }
097             else
098             {
099                 Yii::app()->session->add('currency', 'JPY');
100             }
101         }
102         //echo $_SERVER["HTTP_REFERER"]; exit;
103         header('Location: '.urldecode($return_to));
104         exit;
105     }
106 
107     /**
108      * This is the default 'index' action that is invoked
109      * when an action is not explicitly requested by users.
110      */
111     public function actionIndex()
112     {
113         // renders the view file 'protected/views/site/index.php'
114         // using the default layout 'protected/views/layouts/main.php'
115         //$products = Products::model()->findAll(' 1 ORDER By Rand() LIMIT 10');

Stack Trace

#0
+
 /home/content/02/5766502/html/protected/controllers/SiteController.php(103): header("Location: http://fineluxuryproperty.com/")
098             {
099                 Yii::app()->session->add('currency', 'JPY');
100             }
101         }
102         //echo $_SERVER["HTTP_REFERER"]; exit;
103         header('Location: '.urldecode($return_to));
104         exit;
105     }
106 
107     /**
108      * This is the default 'index' action that is invoked
#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-07 20:41:21 Apache Yii Framework/1.1.8