[TYPO3-ttnews] rss2 feed firts line empty

Oliver Rowlands oliver at liquidlight.co.uk
Sun Jan 13 15:11:29 CET 2008


Hi Jeroen,

Which version of tt_news & PHP are you using on the new server?

Just as a test, do you get the same result if you enable GZ compression 
on the output? Try adding the following to your localconf.php:

$TYPO3_CONF_VARS['FE']['compressionLevel'] = '1';

Best regards,

Oliver

Jeroen Visser wrote:
> Hi all,
> After I switched from a old server to a new one my rss feeds don't work 
> anymore. The Typo version remained 4.1.2
> 
> The RSS feed of my tt_news generates the news.xml but creates the file 
> with the first line empty and the output starts at line 2.
> IE6 doesn't seem to care about it. Also my feedreader has no problem 
> with it.
> Firefox and IE7 spits the following message:
> 
> XML Parsing Error: xml declaration not at start of external entity
> Location: http://www.mydomain.nl/news.xml
> Line Number 2, Column 1:
> 
> <?xml version="1.0" encoding="iso-8859-1" ?>
> ^
> 
> 
> It looks like there is something placed in front of the 
> ###XML_DECLARATION### marker. I did a extra trim() before returning it 
> no luck there.
> The template file for the rss2 realy starts at line 1. Did someone had 
> this problem also, and fixed it?
> I am looking forward to some reactions.
> 
> Kind regards,
> Jeroen
> 


-- 
Oliver Rowlands
:: Liquid Light ::

E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk

T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35


More information about the TYPO3-project-tt-news mailing list