Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

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

Tutorial problem

Go to End

5 Posts   1242 Views


Community Member, 1 Post

9 January 2011 at 11:58am

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 %>

<div class="newsDetails">
Posted on $Date.Nice by $Author

When I add $PageComments to the I get following error:

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

Can somebody help me ?


Forum Moderator, 5521 Posts

9 January 2011 at 6:24pm

<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 The tutorial theme sends pages as strict xml which means it complains about those little things.


Community Member, 11 Posts

13 January 2011 at 9:06am


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
Line Number 139, Column 106: <p id="DeleteComments"><a href="">


Community Member, 62 Posts

18 March 2011 at 2:58am

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.



Forum Moderator, 5521 Posts

19 March 2011 at 6:41pm

Thanks John, Patches / fixes for the documentation are welcome -

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!