Page 1 of 1
RSS feed: prepended whitespace causes parse error
Posted: Thu Oct 08, 2009 3:47 am
by Slideshow Bob
Hey there - unfortunately your forum's search feature doesn't like the word length of my query words "RSS" and "XML", so please bear with me if this bug has already been reported:
I've got a problem with the RSS feed on my blog. The output is prepended with whitespace characters which cause XML parse errors in a couple of readers (Firefox as well).
Could somebody confirm this issue? Is there already a fix available?
Many thanks in advance,
Thomas
Re: RSS feed: prepended whitespace causes parse error
Posted: Thu Oct 08, 2009 11:21 am
by garvinhicking
Hi!
A whitespace character can often occur when you edited any lang*php files, and your editor inserted UTF-8 BOM headers. Those are 3 "hidden" characters, which disturb PHP. No character may occur before the openinig <?php of any PHP file in serendipity.
HTH,
Garvin
Re: RSS feed: prepended whitespace causes parse error
Posted: Thu Oct 08, 2009 12:49 pm
by Slideshow Bob
Hi Garvin,
you're right, I edited the language files for the entrysplit plugin, due to the additions I've done a couple of months ago ("table of contents", see
http://board.s9y.org/viewtopic.php?f=4&t=14746&start=0).
Unfortunately I cannot spot the problem there. I also just downloaded and re-installed the official entrysplit plugin from Spartacus and the RSS feed problem still remains.
Since I didn't edit any other language file I'd appreciate if you could give another pointer to the possible cause of the problem.
Thanks!
Thomas
Re: RSS feed: prepended whitespace causes parse error
Posted: Fri Oct 09, 2009 9:58 am
by garvinhicking
Hi!
Did you edit any other PHP file, apart from language files? Which editor do you use? If you use linux "joe" you could spot a UTF-8 BOM on the top of the file, and you could even use a find command to find files with BOM:
http://board.s9y.org/viewtopic.php?f=4& ... 568#p90568
Regards,
Garvin