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

Fresh install Blog module gives xml parser error


Go to End


2 Posts   1436 Views

Avatar
raamklaza

Community Member, 182 Posts

8 November 2008 at 8:00am

I download and unzipped the blog module in root of my silverstripe installation.

I did db/build and ?flush=1.

Page type is set correct for holder and entry.

When i go to the blog in my menu on the front-end, i get the following error:

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

I know it's in dutch but i hope that someone can help me.

Avatar
raamklaza

Community Member, 182 Posts

8 November 2008 at 8:05am

CLOSED

I forgot that i asked this a while a go.

Here is the answer and the conclusion:

http://www.silverstripe.com/site-builders-forum/flat/127308?showPost=218851
Re: XML-parse failure when opening blog on website
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.

I did the solution above and it is fixed and it works now.