Thanks Brion, it turns out that I did have an extra newline after my copy of EasyTimeline.php. That did the trick.
Still, I'd be curious how y'all go about debugging your code. Do you really jus sprinkle printf's throughout?
thanks, -Nick
Brion Vibber wrote:
On Dec 5, 2004, at 11:23 AM, Nick Triantos wrote:
I've got a strange problem on my installation of mediawiki (an extra blank line is emitted as the first line of all pages from my site). This apparently breaks the RSS feeds.
Usually this is because some extra whitespace has crept into one of the .php files.
PHP scripts are actually embedded into a surrounding file (generally HTML), though in the case of 'biggish' apps like ours we've generally got a bunch of include files which are code only; everything goes inside <?php ... ?> tags. If there is a blank line at the start, or more than a single newline at the end, then the extra space will be output when the script is loaded. If this comes before output buffering is started that can prevent the output of HTTP headers from the script, or perhaps also damage gzip compression mode, etc.
Check for extra whitespace around the <?php ... ?> tags, particularly in LocalSettings.php or other files you might have modified.
Interestingly, I made a second copy of the wiki software in which I've been hacking in trying to debug this, and there, I see my shell prompt as the first line of text. So, something's pretty obviously shelling out during init, but I've currently got no idea what is doing that.
Now that's just _weird_...
-- brion vibber (brion @ pobox.com)
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l