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/helpers/Core.php(63)

51     public static function getProductPath()
52     {
53         return dirname(Yii::app()->request->scriptFile).Yii::app()->params['products'];
54     }
55     
56     public static function getProductUrl()
57     {
58         return 'http://'.Yii::app()->request->getServerName().Yii::app()->request->baseUrl.Yii::app()->params['products'];
59     }
60     
61     public static function returnBack()
62     {
63         header("Location: ".$_SERVER['HTTP_REFERER']);
64         exit;
65     }
66     
67     /*public static function getGalleryPath()
68     {
69         return dirname(Yii::app()->request->scriptFile).Yii::app()->params['gallery'];
70     }
71     
72     public static function getGalleryUrl()
73     {
74         return 'http://'.Yii::app()->request->getServerName().Yii::app()->request->baseUrl.Yii::app()->params['gallery'];
75     }

Stack Trace

#0
+
 /home/content/02/5766502/html/protected/helpers/Core.php(63): header("Location: ")
58         return 'http://'.Yii::app()->request->getServerName().Yii::app()->request->baseUrl.Yii::app()->params['products'];
59     }
60     
61     public static function returnBack()
62     {
63         header("Location: ".$_SERVER['HTTP_REFERER']);
64         exit;
65     }
66     
67     /*public static function getGalleryPath()
68     {
#1
+
 /home/content/02/5766502/html/protected/controllers/CartController.php(240): Core::returnBack()
235             {
236                 if($this->lang == 'en')
237                     Yii::app()->user->setFlash('message', 'error|Your shopping bag is currently empty');
238                     else
239                         Yii::app()->user->setFlash('message', 'error|買い物かごは空です。');
240                 Core::returnBack(); 
241             }
242         
243         }
244         
245         $this->render($this->lang.'/viewcart',
#14
+
 /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:42:32 Apache Yii Framework/1.1.8