Loading...
 
Skip to main content

RSS for Wiki is malformed (broken in firefox)

Status
Pending
Subject
RSS for Wiki is malformed (broken in firefox)
Version
2.x
Category
  • Error
  • Patch
  • Less than 30-minutes fix
Feature
Wiki (page view, edit, history, rename, etc)
RSS
Resolution status
Fix on the Way
Submitted by
mrisch
Volunteered to solve
mrisch
Lastmod by
Philippe Cloutier
Rating
(0)
Description

I have the latest files for RSS, and the RSS feed is malformed. I fails to load properly in Firefox, and loads in other readers (e.g. Yahoo) but without formatting.

RSS Validator says one error is that there is an extra line before the first <xml... line, which is causing it to be parsed as HTML and not as XML for RSS. See here for an example; http://www.casesofinterest.com/tiki/tiki-wiki_rss.1.43.2.1.php?ver=2Question


I have spent a lot of time tracing the calls and I can't figure out why it works fine for blogs, but not for wikis as the code is similar. I hope someone who knows more than I can fix this.

Files
  1. Tiki Wiki Rss
Solution

After much trial and error, I discovered the problem - somewhere in loading the difflib and diffing the two versions caused some sort of error in PHP. As a result, the php script was running twice. The initial output (however good) was getting overwritten by the second print output, but in doing so, it left a blank line at the beginning of the output which malformed the RSS.

Seeing as I didn't like the diffing in any event, attached is a revised file for RSS that will produce properly formed output, and the full text of the wiki page - not the diff'ed text.

Importance
6
Easy to solve?
8
Priority
48
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1511
Created
Tuesday 29 January, 2008 20:26:28 UTC
by Unknown
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages