I'm a SilverStripe beginner following the Tutorial 2 (http://doc.silverstripe.org/sapphire/en/tutorials/2-extending-a-basic-site). I find an error when trying to include comments on a page (the news page in the tutorial):
This page contains the following errors:
error on line 171 at column 101: EntityRef: expecting ';'
Below is a rendering of the page up to the first error.
The error disappear when $PageComments is removed from the .ss file:
<% include Menu2 %>
<div id="Content" class="typography">
<% include Breadcrumbs %>
Posted on $Date.Nice by $Author
It sounds like an XML error. You can either use plain xhtml over text rather than XML by removing the xml header at the top of Page.ss *or* you should be able to make this change - http://open.silverstripe.org/ticket/6610 manually to your installation.
I had a look and the problem seems to be that $DeleteAllLink generates a & character for the request.
When publishing anything using the CMS, I noticed that this character (&) screws up the Text Field String to be processed.
So probably there might be something to be done when generating the string itself, considering this special character.
That should be carried out at the CMS Text Fields as well.
It generates a link to HOME...
I am just following the Tutorial 2 and then ended up with this issue. So ther is no extra java script on the top of what standard SilverStirpe Framework does.
Reading the link you have posted it seems that the guys who were trying that same solution got the same kind of issue...
At the top of my head nothing come to help me think about a java script issue.
Regarding what the CMS does, maybe while saving text with special character (e.g. &) it could not treat it right. But this is still standard SS.
Following all Tutorial 2 steps, till $PageComments, seems to give this same error for other users... (http://www.silverstripe.org/general-questions/show/19064#post313511)
But I am just a newbie in SS, so if you have anything to help us, that would be nice....