Jump to:

23358 Posts in 17874 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Tutorial problem

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: 955 Views
  • johndoak
    Avatar
    Community Member
    1 Post

    Tutorial problem Link to this post

    Hi. I'm new to Silverstripe, I'm just going through part 2 of the tutorial, where I get stuck on adding comments to my page.

    <% if Menu(2) %>
    <% include Menu2 %>
    <% end_if %>

    <div id="Content" class="typography">
    <% if Level(2) %>
    <% include Breadcrumbs %>
    <% end_if %>

    <h1>$Title</h1>
    $Content
    <div class="newsDetails">
    Posted on $Date.Nice by $Author
    </div>
    $PageComments
    </div>

    When I add $PageComments to the ArticlePage.ss I get following error:

    <p id="DeleteComments"><a href="http://localhost/tuto/PageComment/deleteallcomments?pageid=12&SecurityID=d9b1094aef2eb2f67cb772921d3db390405fc3e4">

    Can somebody help me ?

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Tutorial problem Link to this post

    <p id="DeleteComments"><a href="http://localhost/tuto/PageComment/deleteallcomments?pageid=12&SecurityID=d9b1094aef2eb2f67cb772921d3db390405fc3e4">

    Is that the full error message? It's more likely you are getting an XML error (probably with the &). Simply remove the <?xml ?> header from the top of Page.ss. The tutorial theme sends pages as strict xml which means it complains about those little things.

  • Pasqualito
    Avatar
    Community Member
    11 Posts

    Re: Tutorial problem Link to this post

    Hi,

    I'm getting the exact same error when I have pagecomments enabled. Could this error be introduced in 2.4.4? I did not have this on exactly the same site but an older version...

    where is this piece of HTML rendered?

    the error I'm getting in FireFox is:

    XML Parsing Error: not well-formed
    Location: http://www.vidimo.nl/laboratory-blog/little-red-riding-hood-tourist-tour/
    Line Number 139, Column 106:      <p id="DeleteComments"><a href="http://www.vidimo.nl/PageComment/deleteallcomments?pageid=21&SecurityID=89a6345ea67ceb19515c59b51a26292b39e7c8be">
    -----------------------------------------------------------------------------------------------------------------------^

  • johnmblack
    Avatar
    Community Member
    61 Posts

    Re: Tutorial problem Link to this post

    Hi Will,

    Your folks need to fix this in the Tutorial/Installer asap... you might be losing customers. I got to this point in the tutorial, following its directions exactly, and couldn't continue, and nearly went back to Joomla before finding this thread. The Tutorial installation creates everything in XHTML.

    -John

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Tutorial problem Link to this post

    Thanks John, Patches / fixes for the documentation are welcome - http://doc.silverstripe.org/sapphire/en/misc/contributing/#Writing-Documentation.

    One of the projects for after SilverStripe 3.0 is to update the tutorials and docs to use the new theme we're working on which will all be HTML5. The tutorials + theme are about 5 years old now so showing their age!

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