Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

XML-parse failure when opening blog on website

Go to End

6 Posts   2074 Views


Community Member, 182 Posts

23 July 2008 at 6:06am

Edited: 23/07/2008 6:07am

XML-parsefout: troep na documentelement
Locatie: http://localhost/silverstripe-v2.2.2.1/blog/
Regelnummer 4, kolom 1:<?xml version="1.0" encoding="UTF-8"?>


Community Member, 182 Posts

23 July 2008 at 7:14am

This what i get when i try to open the blog page.

Anyone any ideas?


Community Member, 182 Posts

23 July 2008 at 8:42am

From source:

<p style="background-color: white; color: black; width: 95%; margin: 0.5em; padding: 0.3em; border: 1px #CCC solid">
<b>Debug (line 118 of BBCodeParser.php):</b>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="" xml:lang="en" >

How come the blog module puts the blog contents (test) above the DOCTYPE???? Offcourse this doesn't work.

Where change this page? I can't find it.


Forum Moderator, 5523 Posts

23 July 2008 at 5:49pm

Theres a major bug with the BBCode parser - a Debug::message statement got in there some how. So what its doing since the blog uses BBCode it is using the parser so calling that Debug::message is outputing text before the doctype

You can remove the Debug::message by opening sapphire/parsers/BBCodeParser.php and scrolling down to about line 118 and removing the Debug::message line.


Community Member, 3 Posts

1 November 2008 at 8:26am

Hi there! I'm here since a day and I'm pretty happy 'cause this cms rocks! (it really cover all my needs and I hope to be able to help on it some how)
Well, here's the thing... I'm having this debug line too...
Debug (line 118 of BBCodeParser.php)
so I modified parsers/BBCodeParser.php and kick the "Debug::message($this->content);" line of the file...
Well, the error line stills there... I "?flush=1-it"... but nothing works...
I even search for the same line with the finder in the whole instalation but I didnt find another... am I missing something?


Forum Moderator, 5523 Posts

3 November 2008 at 11:29am

That should be the only place you need to remove it from. Make sure you didnt have a syntax error or a remove a ; or something where you shouldn't have.