Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Mysterious XML Parsing Error

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: 1368 Views
  • KendallB
    Avatar
    Community Member
    5 Posts

    Mysterious XML Parsing Error Link to this post

    I've run into a bit of a dead end on something. I have two servers, one development (Mac) and the other production (Linux), both running Silverstripe on Apache. On Linux, Firefox returns an XML Parsing Error on a number of my pages, but cannot specify where the error is.

    It will say the error is located at Line 1, Column 1 and the error is: 208f (or some other hex value). I've attempted to remove the <?xml> header at the beginning of the Page.ss, however Firefox will still return the characters to the top of the screen as if it was part of the output.

    Any thoughts would be greatly appreciated.

    Kendall Buchanan

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Mysterious XML Parsing Error Link to this post

    Do you have any unclosed tags or strings in the PHP files that are echoing out?

  • KendallB
    Avatar
    Community Member
    5 Posts

    Re: Mysterious XML Parsing Error Link to this post

    Thanks a lot for the response.

    I really don't think so, because I can artificially create an unclosed tag error with the parser. On the development environment, it works perfectly given identical content on the page.

    I can reproduce it by putting an anchor in the $Content section of a page that points to an outside URL on the production site.

    If I turn off ContentNegotiation, it will just put a hex code at the top of the page, and a 0 at the bottom of the page. Is there a way this could be caused by Apache on the Linux box?

  • Cynic
    Avatar
    Community Member
    3 Posts

    Re: Mysterious XML Parsing Error Link to this post

    I'm having the same problem, only with the admin logon form.

    2148 is being prepended before the start of the document, and 0 is appended after the closing </html> tag.

    Has anyone figured out exactly what causes this? It's certainly only cropped up over the last day which means some tiny little layout change I made (without testing?!), or my users that have started adding content recently.

    -k.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Mysterious XML Parsing Error Link to this post

    These issues are almost certainly related to the following (solved) ticked: http://open.silverstripe.com/ticket/2529

    This will be fixed in the next release, but the actual solution is quite simple if you follow the instructions at the bottom.

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