01223: Extra newline in the output cause problems

Summary: Extra newline in the output cause problems
Created: 2010-09-14 05:43
Status: Closed
Category: Other
From: KPX?
Assigned:
Priority: 2
Version: 2.2.18
OS: 5.2.6

Description: Some output (?action=view , source , sitemap) has extra newlines in the start of the text. Like this [(approve links) edit diff]




<?xml version="1.0" encoding="UTF-8"?>

Sometime cause problems with some strict XML parser, such as google sitemap (it will fall) , and got "XML Parsing Error: XML or text declaration not at start of entity".

Make sure your local and cookbook PHP files do not have the closing ?> tag, see the faq section at DesignNotes. Otherwise, check if your skin templates don't have new lines at the beginning. --Petko September 14, 2010, at 06:06 AM

 Thanks, some self-made cookbook cause that problem.It works. --KPX? September 14, 2010, at 07:47 AM