I get the following error or very similar for all the feeds from my blog
XML Parsing Error: xml declaration not at start of external entity
Location: http://www.melanieofsydney.com/serendip ... /index.rss
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8" ?>
^
It had worked previously so I have evidently broken it somewhere.
Recent changes I have made
* another meta tag in template
* added the taget="_blank" thing for the js url thing
* turned on html rewriting
The URL is www.melanieofsydney.com/serendipity/
Also is there someway to make the feeds appear in the top directory, apparently google would like this.
Thanks
RSS/AtoM feeds not working
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: RSS/AtoM feeds not working
Hi!
You seem to have added an extra linebreak/space before the first <?php or after the last ?> of some .php file somewhere.
Sadly PHP is hard to debug in that case, so you will need to check every single file you edited to spot extra linebreaks.
Best regards,
Garvin
You seem to have added an extra linebreak/space before the first <?php or after the last ?> of some .php file somewhere.
Sadly PHP is hard to debug in that case, so you will need to check every single file you edited to spot extra linebreaks.
Best 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/
-
Melanieofsydney
- Regular
- Posts: 21
- Joined: Tue Mar 20, 2007 10:50 am
so im looking for a line break before a <?php or after a ?>
even though the error talks about like breaks with <?xml
?
another question should every php file end with a ?> because they don't
I am missing a recent comment and one of my replies, and my style was changed so i am wondering if someone has been in my site causing issues.
even though the error talks about like breaks with <?xml
?
another question should every php file end with a ?> because they don't
I am missing a recent comment and one of my replies, and my style was changed so i am wondering if someone has been in my site causing issues.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
That's true, because before <?xml is emitted, all .php files are executed, including language files, plugins etc.
In fact it's better if a php file does not end with "?>" because then you have one less chance of accidentaly putting a linebreak there. Ending ?> are optional.
HTH,
Garvin
That's true, because before <?xml is emitted, all .php files are executed, including language files, plugins etc.
In fact it's better if a php file does not end with "?>" because then you have one less chance of accidentaly putting a linebreak there. Ending ?> are optional.
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/
-
Melanieofsydney
- Regular
- Posts: 21
- Joined: Tue Mar 20, 2007 10:50 am
I got sick of look and re downloaded serendipity and replaced and reuploaded all the files i had locally except my index file wheich i checked through and the one javascript file. It is still broken!
I have no idea where the break is at all now as anything i potentially touched as been put back with nice fresh files.

I have no idea where the break is at all now as anything i potentially touched as been put back with nice fresh files.
-
Melanieofsydney
- Regular
- Posts: 21
- Joined: Tue Mar 20, 2007 10:50 am
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
The extra blank must come from somewhere. The typical places it could come from are:
- Any *.php files of plugins you are using
- Any lang*.inc.php files of plugins you are using
- Any serendipity_lang_XX.inc.php language file you might have edited
- Your template's config.inc.php file
- Any possible global auto_prepend PHP directives through .htaccess
Since you say you reuploaded all native s9y files, the change might only be caused by a template's config.inc.php file or custom .htaccesss directives or plugins you downloaded via spartacus and modified locally?
HTH,
Garvin
The extra blank must come from somewhere. The typical places it could come from are:
- Any *.php files of plugins you are using
- Any lang*.inc.php files of plugins you are using
- Any serendipity_lang_XX.inc.php language file you might have edited
- Your template's config.inc.php file
- Any possible global auto_prepend PHP directives through .htaccess
Since you say you reuploaded all native s9y files, the change might only be caused by a template's config.inc.php file or custom .htaccesss directives or plugins you downloaded via spartacus and modified locally?
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/
-
Melanieofsydney
- Regular
- Posts: 21
- Joined: Tue Mar 20, 2007 10:50 am