MantisBT - mantisbt
View Issue Details
0010352mantisbtrsspublic2009-04-21 10:332010-06-08 14:08
matejp 
 
normalminoralways
feedbackopen 
IIS6 + SQL Server 2008Windows Server 2003 R2 standard
1.1.6 
 
0010352: RSS feed - XML Parsing Error
When i try to display RSS feed for all issues (view issues link) in FF or IE7 i've recieve this:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://silj1pfs01/mantis/issues_rss.php?username=xxxxx&key=a9a1ea6c26cca7bdf1dd270f159cac8d [^]
Line Number 3, Column 1:<?xml version="1.0" encoding="utf-8"?>



No tags attached.
? issues_rss.php (6,804) 2009-07-13 07:20
http://www.mantisbt.org/bugs/file_download.php?file_id=2384&type=bug
Issue History
2009-04-21 10:33matejpNew Issue
2009-07-04 04:48vboctorNote Added: 0022382
2009-07-04 04:48vboctorStatusnew => feedback
2009-07-07 08:23matejpNote Added: 0022435
2009-07-08 18:17grangewayNote Added: 0022453
2009-07-13 07:19matejpNote Added: 0022487
2009-07-13 07:20matejpFile Added: issues_rss.php
2009-08-14 11:48ctimmerNote Added: 0022733
2009-08-17 13:23ctimmerIssue Monitored: ctimmer
2010-06-08 14:08ecasareroNote Added: 0025763

Notes
(0022382)
vboctor   
2009-07-04 04:48   
I'm not able to reproduce on this bug tracker. There is two options:

1. It is specific to the contents of one of the issues included in the RSS, i.e. not escaped correctly.

2. It is an issue that has been fixed.

Please provide more details.
(0022435)
matejp   
2009-07-07 08:23   
I installed Mantis on Microsoft Server 2003 with SQL Server 2008. I did some customization (only to install Mantis in SQL server). When i clicked on RSS icon, i've recieved this error.

I've also tried with another mantis database for testing purposes.

Internet Explorer 8 returns:
"Invalid xml declaration.
 Line: 3 Character: 3

<?xml version="1.0" encoding="utf-8"?>
"

Firefox 3.5 returns:
"XML Parsing Error: XML or text declaration not at start of entity
Location: http://silj1pfs01/mantis/issues_rss.php?username=xxxxx&key=a9a1ea6c26cca7bdf1dd270f159cac8d&project_id=4 [^]
Line Number 3, Column 1:"

Maybe is something wrong with function which creates RSS feeds i dont know.

I can check if you tell me where to look for this function or tell me which functions are responsibile for RSS feeds.
(0022453)
grangeway   
2009-07-08 18:17   
Whats this file look like in notepad?

Paul
(0022487)
matejp   
2009-07-13 07:19   
I've uploaded "issues_rss.php" i am using.
(0022733)
ctimmer   
2009-08-14 11:48   
This problem is caused by a blank line (CRLF) in FRONT of the XML text.

Curt
(0025763)
ecasarero   
2010-06-08 14:08   
I had the same problem. I solved it by adding "php" to the open tag in config_local.php

original: config_local.php

<?
#Comment
?>

modified: config_local.php


<?php
#Comment
?>

The problem was with php config "short open tag" by default is disable and apache did not process this file as php, just dumped the content to the xml breaking it.