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"?>
^
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
This what i get when i try to open the blog page.
Anyone any ideas?
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>
Test</p>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 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.
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.
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?
Thanks!
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.