[Mediawiki-l] Recentchanges RSS Feed breaks due to blank line
Jim Wilson
wilson.jim.r at gmail.com
Thu Jul 26 17:05:27 UTC 2007
> 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 at dell.com <David_S_Green at 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 at lists.wikimedia.org
> [mailto:mediawiki-l-bounces at 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 at dell.com <David_S_Green at 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 at lists.wikimedia.org
> > http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
More information about the MediaWiki-l
mailing list