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
RSS feed: prepended whitespace causes parse error
-
Slideshow Bob
- Regular
- Posts: 6
- Joined: Sat Feb 07, 2009 11:01 pm
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: RSS feed: prepended whitespace causes parse error
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
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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Slideshow Bob
- Regular
- Posts: 6
- Joined: Sat Feb 07, 2009 11:01 pm
Re: RSS feed: prepended whitespace causes parse error
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
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
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: RSS feed: prepended whitespace causes parse error
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
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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/