PHP warning

PHP warning

Cannot modify header information - headers already sent by (output started at /www/htdocs/w00c3515/cms/protected/controllers/SiteController.php:1)

/www/htdocs/w00c3515/cms/protected/controllers/SiteController.php(361)

349             'photoProvider'=>$photoProvider
350         ));        
351     }
352     
353     public function actionSitemap()
354     {
355         $criteria = new CDbCriteria();
356         $criteria->compare('domain_id',$this->domainId);
357         $photos = Photos::model()->findAll($criteria);
358         $galleries = Galleries::model()->findAll($criteria);
359         $events = Events::model()->findAll($criteria);
360         
361         header('Content-Type: application/xml');
362         $this->renderPartial('sitemap',array('photos'=>$photos,'galleries'=>$galleries,'events'=>$events));
363     }
364 
365     
366     /**
367      * This is the action to handle external exceptions.
368      */
369     public function actionError()
370     {
371         if($error=Yii::app()->errorHandler->error)
372         {
373             if(Yii::app()->request->isAjaxRequest)

Stack Trace

#0
+
–
 /www/htdocs/w00c3515/cms/protected/controllers/SiteController.php(361): header("Content-Type: application/xml")
356         $criteria->compare('domain_id',$this->domainId);
357         $photos = Photos::model()->findAll($criteria);
358         $galleries = Galleries::model()->findAll($criteria);
359         $events = Events::model()->findAll($criteria);
360         
361         header('Content-Type: application/xml');
362         $this->renderPartial('sitemap',array('photos'=>$photos,'galleries'=>$galleries,'events'=>$events));
363     }
364 
365     
366     /**
#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();
2026-11-05 23:26:27 Apache Yii Framework/1.1.14