Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » XML-parse failure when opening blog on website

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

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

Page: 1
Go to End
Author Topic: 1670 Views
  • raamklaza
    Avatar
    Community Member
    182 Posts

    XML-parse failure when opening blog on website Link to this post

    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"?>
    ^

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: XML-parse failure when opening blog on website Link to this post

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

    Anyone any ideas?

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: XML-parse failure when opening blog on website Link to this post

    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" 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.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: XML-parse failure when opening blog on website Link to this post

    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.

  • gdcode
    Avatar
    Community Member
    3 Posts

    Re: XML-parse failure when opening blog on website Link to this post

    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!

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: XML-parse failure when opening blog on website Link to this post

    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.

    1670 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.