PHP warning

Cannot modify header information - headers already sent by (output started at /usr/share/nginx/misto/protected/controllers/SitemapController.php:1)

/usr/share/nginx/misto/protected/extensions/feed/EFeed.php(295)

283         $uuid .= substr($chars,8,4) . '-';
284         $uuid .= substr($chars,12,4) . '-';
285         $uuid .= substr($chars,16,4) . '-';
286         $uuid .= substr($chars,20,12);
287     
288         return $prefix . $uuid;
289     }
290     /**
291      * 
292      * Generates the Feed
293      */
294     public function generateFeed(){
295         header("Content-type: text/xml");
296         $this->renderHead();
297         $this->renderChannels();
298         $this->renderItems();
299         $this->renderBottom();
300     }
301     /**
302      * 
303      * Prints the xml and rss namespace
304      * 
305      */
306     private function renderHead()
307     {

Stack Trace

#0
+
 /usr/share/nginx/misto/protected/extensions/feed/EFeed.php(295): header("Content-type: text/xml")
290     /**
291      * 
292      * Generates the Feed
293      */
294     public function generateFeed(){
295         header("Content-type: text/xml");
296         $this->renderHead();
297         $this->renderChannels();
298         $this->renderItems();
299         $this->renderBottom();
300     }
#1
+
 /usr/share/nginx/misto/protected/controllers/SitemapController.php(88): EFeed->generateFeed()
83             $item->addTag('guid', Yii::app()->request->hostInfo . "/news/item/id/" . $res->id);
84 
85             $feed->addItem($item);
86         }
87 
88         $feed->generateFeed();
89         Yii::app()->end();
90         echo $feed;
91     }
92     
93     public function actionRssFull(){
#9
+
 /usr/share/nginx/misto/index.php(11): CApplication->run()
06 // remove the following lines when in production mode
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 require_once($yii);
11 Yii::createWebApplication($config)->run();
12 
2018-06-25 14:35:10 nginx/1.4.6 Yii Framework/1.1.14