Jump to:

23477 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » XML Parsing Error

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 2089 Views
  • Spacemonkey
    Avatar
    Community Member
    5 Posts

    XML Parsing Error Link to this post

    I'll just installed SilverStripe and got this error on my main page

    XML Parsing Error: not well-formed
    Location: http://www.metalmonkeygames.com/
    Line Number 45, Column 75:               
    <div id="SilverStripeNavigatorMessage" title='Note: this message won't be shown to your visitors'>Published Site</div>
    ----------------------------------------------------------------------------------------^

    The offender is the ' in won't, I tried fixing it myself, but I couldn't find where this string was stored.

    Any help would be great, this package looks really nice.

  • david_nash
    Avatar
    Community Member
    55 Posts

    Re: XML Parsing Error Link to this post

    I've just tried a clean install of silverstripe and got the same problem.

    I deleted the directory and tried the installation again using the same database. The second time it was fine.

  • Spacemonkey
    Avatar
    Community Member
    5 Posts

    Re: XML Parsing Error Link to this post

    Which directory did you delete?

  • david_nash
    Avatar
    Community Member
    55 Posts

    Re: XML Parsing Error Link to this post

    I'm using Ubuntu Linux so all files were are in /var/www/

    First I installed in SilverStripe/

    Then I deleted that and created a directory called ss/ and copied the files from the zip into there.

    I already knew what files needed the server write permissions on so I'd changed them before going to ss/

    And I think both times I saw a message flash up about PHP not being able to unlink mysite/_config.php (I'm not sure why it would do that as it just wrote that file).

    let me know how you go.

  • Spacemonkey
    Avatar
    Community Member
    5 Posts

    Re: XML Parsing Error Link to this post

    Found a solution here http://open.silverstripe.com/ticket/3602

    I just changed "won/'t" to "wont" on lines 247, 252 and 257 of sapphire/core/control/ContentController.php

  • david_nash
    Avatar
    Community Member
    55 Posts

    Re: XML Parsing Error Link to this post

    Thanks!

    I was working through the tutorial and realised that my changes weren't doing anything. I looked at mysite/_config.php and it had SSViewer::set_theme('blackcandy'); - I'm sure I set it to the empty template for the tutorial.

    As soon as I changed the theme to 'tutorial' I got the XML error again.

    I used the other workaround which I think is a bit easier, delete the very first line of themes/tutorial/templates/Page.ss - the one that says
    <?xml version="1.0" encoding="UTF-8"?>

  • hank
    Avatar
    Community Member
    10 Posts

    Re: XML Parsing Error Link to this post

    This fix helped. Thanks for posting it.

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