All,
We are trying to use the RSS feed from Special:Recentchanges, but when we try to pull the feed in we get the following:
XML Parsing Error: xml declaration not at start of external entity
Location: http://wxp-5ppg211/gecwiki/index.php?title=Special:Recentchanges&feed=rs s
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^
It appears Mediawiki is putting in a blank line above the "<?xml version="1.0" encoding="utf-8"?>" line, when that line should be first.
Any ideas on how I can get Mediawiki to change that behavior?
Thanks,
Dave Green
Most of the time when this happens it means you have trailing newlines at the end of an extension file.
At some point this will be auto-detected by MediaWiki - in the meantime, I've posted a script to help you identify the offending file(s):
http://jimbojw.com/wiki/index.php?title=How_to_find_PHP_files_with_trailing_...
-- Jim R. Wilson (jimbojw)
On 7/24/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
All,
We are trying to use the RSS feed from Special:Recentchanges, but when we try to pull the feed in we get the following:
XML Parsing Error: xml declaration not at start of external entity
Location: http://wxp-5ppg211/gecwiki/index.php?title=Special:Recentchanges&feed=rs s
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^
It appears Mediawiki is putting in a blank line above the "<?xml version="1.0" encoding="utf-8"?>" line, when that line should be first.
Any ideas on how I can get Mediawiki to change that behavior?
Thanks,
Dave Green
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Jim,
Thanks for this. I ran the "findBadFiles.php" file that I placed in maintenance based on your article....and it appears to scan all the files...but then that was it, just back to the prompt. Would it have displayed something if a file was found to be bad?
If so, then I'm still stuck with why the RSS feed is putting in that blank line at the start.
Thanks, Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Wilson Sent: Tuesday, July 24, 2007 4:06 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Recentchanges RSS Feed breaks due to blank line
Most of the time when this happens it means you have trailing newlines at the end of an extension file.
At some point this will be auto-detected by MediaWiki - in the meantime, I've posted a script to help you identify the offending file(s):
http://jimbojw.com/wiki/index.php?title=How_to_find_PHP_files_with_trail ing_whitespace
-- Jim R. Wilson (jimbojw)
On 7/24/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
All,
We are trying to use the RSS feed from Special:Recentchanges, but when we try to pull the feed in we get the following:
XML Parsing Error: xml declaration not at start of external entity
Location:
http://wxp-5ppg211/gecwiki/index.php?title=Special:Recentchanges&feed=rs
s
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^
It appears Mediawiki is putting in a blank line above the "<?xml version="1.0" encoding="utf-8"?>" line, when that line should be
first.
Any ideas on how I can get Mediawiki to change that behavior?
Thanks,
Dave Green
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Would it have displayed something if a file was found to be bad?
Yeah - it would have listed any bad ones. What version of MediaWiki are you using, and do you have any extensions installed?
Is this a publicly accessible wiki? or for internal use only?
-- Jim
On 7/26/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
Jim,
Thanks for this. I ran the "findBadFiles.php" file that I placed in maintenance based on your article....and it appears to scan all the files...but then that was it, just back to the prompt. Would it have displayed something if a file was found to be bad?
If so, then I'm still stuck with why the RSS feed is putting in that blank line at the start.
Thanks, Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Wilson Sent: Tuesday, July 24, 2007 4:06 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Recentchanges RSS Feed breaks due to blank line
Most of the time when this happens it means you have trailing newlines at the end of an extension file.
At some point this will be auto-detected by MediaWiki - in the meantime, I've posted a script to help you identify the offending file(s):
http://jimbojw.com/wiki/index.php?title=How_to_find_PHP_files_with_trail ing_whitespace
-- Jim R. Wilson (jimbojw)
On 7/24/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
All,
We are trying to use the RSS feed from Special:Recentchanges, but when we try to pull the feed in we get the following:
XML Parsing Error: xml declaration not at start of external entity
Location:
http://wxp-5ppg211/gecwiki/index.php?title=Special:Recentchanges&feed=rs
s
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^
It appears Mediawiki is putting in a blank line above the "<?xml version="1.0" encoding="utf-8"?>" line, when that line should be
first.
Any ideas on how I can get Mediawiki to change that behavior?
Thanks,
Dave Green
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Jim,
I'm a week slow in responding to this (I was out of town)...
The only 2 extensions I have running are: navigation_en.php DynamicPageList.php
And this is an internally only wiki...no way to access it from outside.
Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Wilson Sent: Thursday, July 26, 2007 12:05 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Recentchanges RSS Feed breaks due to blank line
Would it have displayed something if a file was found to be bad?
Yeah - it would have listed any bad ones. What version of MediaWiki are you using, and do you have any extensions installed?
Is this a publicly accessible wiki? or for internal use only?
-- Jim
On 7/26/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
Jim,
Thanks for this. I ran the "findBadFiles.php" file that I placed in maintenance based on your article....and it appears to scan all the files...but then that was it, just back to the prompt. Would it have displayed something if a file was found to be bad?
If so, then I'm still stuck with why the RSS feed is putting in that blank line at the start.
Thanks, Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim
Wilson
Sent: Tuesday, July 24, 2007 4:06 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Recentchanges RSS Feed breaks due to blank line
Most of the time when this happens it means you have trailing newlines at the end of an extension file.
At some point this will be auto-detected by MediaWiki - in the
meantime,
I've posted a script to help you identify the offending file(s):
http://jimbojw.com/wiki/index.php?title=How_to_find_PHP_files_with_trail
ing_whitespace
-- Jim R. Wilson (jimbojw)
On 7/24/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
All,
We are trying to use the RSS feed from Special:Recentchanges, but
when
we try to pull the feed in we get the following:
XML Parsing Error: xml declaration not at start of external entity
Location:
http://wxp-5ppg211/gecwiki/index.php?title=Special:Recentchanges&feed=rs
s
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^
It appears Mediawiki is putting in a blank line above the "<?xml version="1.0" encoding="utf-8"?>" line, when that line should be
first.
Any ideas on how I can get Mediawiki to change that behavior?
Thanks,
Dave Green
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Try disabling them both and rechecking your recent change feed. Also, after disabling them, make a change to a page - the feeds are cached until edits occur (this may make a difference).
If it works with both disabled, try disabling only one and try again - use process of elimination to determine which it is.
I have personally seen extra newlines at the end of DynamicPageList2's i18n file, so I encourage you to check there.
-- Jim
On 8/6/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
Jim,
I'm a week slow in responding to this (I was out of town)...
The only 2 extensions I have running are: navigation_en.php DynamicPageList.php
And this is an internally only wiki...no way to access it from outside.
Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Wilson Sent: Thursday, July 26, 2007 12:05 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Recentchanges RSS Feed breaks due to blank line
Would it have displayed something if a file was found to be bad?
Yeah - it would have listed any bad ones. What version of MediaWiki are you using, and do you have any extensions installed?
Is this a publicly accessible wiki? or for internal use only?
-- Jim
On 7/26/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
Jim,
Thanks for this. I ran the "findBadFiles.php" file that I placed in maintenance based on your article....and it appears to scan all the files...but then that was it, just back to the prompt. Would it have displayed something if a file was found to be bad?
If so, then I'm still stuck with why the RSS feed is putting in that blank line at the start.
Thanks, Dave
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim
Wilson
Sent: Tuesday, July 24, 2007 4:06 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Recentchanges RSS Feed breaks due to blank line
Most of the time when this happens it means you have trailing newlines at the end of an extension file.
At some point this will be auto-detected by MediaWiki - in the
meantime,
I've posted a script to help you identify the offending file(s):
http://jimbojw.com/wiki/index.php?title=How_to_find_PHP_files_with_trail
ing_whitespace
-- Jim R. Wilson (jimbojw)
On 7/24/07, David_S_Green@dell.com David_S_Green@dell.com wrote:
All,
We are trying to use the RSS feed from Special:Recentchanges, but
when
we try to pull the feed in we get the following:
XML Parsing Error: xml declaration not at start of external entity
Location:
http://wxp-5ppg211/gecwiki/index.php?title=Special:Recentchanges&feed=rs
s
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
^
It appears Mediawiki is putting in a blank line above the "<?xml version="1.0" encoding="utf-8"?>" line, when that line should be
first.
Any ideas on how I can get Mediawiki to change that behavior?
Thanks,
Dave Green
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
David_S_Green wrote:
Jim,
Thanks for this. I ran the "findBadFiles.php" file that I placed in maintenance based on your article....and it appears to scan all the files...but then that was it, just back to the prompt. Would it have displayed something if a file was found to be bad?
If so, then I'm still stuck with why the RSS feed is putting in that blank line at the start.
Thanks, Dave
Maybe the blank line is not after ?> but before <?Php ? Or maybe a BOM instead of a new line?
mediawiki-l@lists.wikimedia.org