Zend_Feed_Exception

Cannot send RSS because headers have already been sent.

/www/htdocs/w00c3515/cms/protected/vendors/Zend/Feed/Rss.php(521)

509      * Send feed to a http client with the correct header
510      *
511      * @return void
512      * @throws Zend_Feed_Exception if headers have already been sent
513      */
514     public function send()
515     {
516         if (headers_sent()) {
517             /**
518              * @see Zend_Feed_Exception
519              */
520             require_once 'Zend/Feed/Exception.php';
521             throw new Zend_Feed_Exception('Cannot send RSS because headers have already been sent.');
522         }
523 
524         header('Content-Type: application/rss+xml; charset=' . $this->_element->ownerDocument->actualEncoding);
525 
526         echo $this->saveXml();
527     }
528 
529 }

Stack Trace

#0
+
 /www/htdocs/w00c3515/cms/protected/controllers/SiteController.php(714): Zend_Feed_Rss->send()
709             'link'=>'http://www.'.$this->domainAlias.'.de',
710             'charset'=>'UTF-8',
711             'entries'=>$entries,
712         ),'rss');
713 
714         $feed->send();
715     }
716     
717     public function actionListByArtist()
718     {
719         if(isset($_POST['searchArtist']))
#8
+
 /www/htdocs/w00c3515/cms/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-05-12 16:16:53 Apache Yii Framework/1.1.14