Topic on Extension talk:WikiArticleFeeds

Closed Tags causing XML Error : error on line 2 at column 1: Extra content at the end of the document

3
194.231.191.245 (talkcontribs)

Hey I have a problem with the closed Tags like <startFeed /> and <endFeed /> because they are causing an XML error.

If I use <startFeed> and <endFeed> the xml page at least shows but there is no Feed in it.

It just looks like this

<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">

<id>

http://wiki/mediawiki/index.php?title=RSS&action=feed&feed=atom

</id>

<title>RSS - Feed</title>

<link rel="self" type="application/atom+xml" href="http://wiki/mediawiki/index.php?title=RSS&action=feed&feed=atom&#x22;/>

<link rel="alternate" type="text/html" href="http://wiki/mediawiki/index.php?title=RSS&#x22;/>

<updated>2015-10-09T08:12:22Z</updated> <subtitle/>

<generator>

MediaWiki 1.25.2 via WikiArticleFeeds 0.73.0 20150316

</generator>

</feed>

194.231.191.245 (talkcontribs)

I also already deactivated every other extenion except RSS and also put the closing tags for php (?>) at the end of every page of WikiArticleFeeds

194.231.191.245 (talkcontribs)

Okay when you try to open it with Firefox built-in RSS Reader the error message would say "undefined offset 0 php on line 333" or something like that

The line is: "$lvl = $matches[1][0];"

And has to be changed to: "$lvl = @$matches[1][0];"

After this change everything works fine again

Reply to "Closed Tags causing XML Error : error on line 2 at column 1: Extra content at the end of the document"