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.

Themes /

Discuss SilverStripe Themes.

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

Paddy green $PageComments Error

Go to End



Community Member, 1 Post

30 January 2012 at 6:34am

Edited: 30/01/2012 6:44am

With the Paddy green theme, but not other themes, I get:
XML Parsing Error: not well-formed
Location: http://localhost/SS/new-articleholder/new-articlepage/
Line Number 130, Column 114: <p id="DeleteComments"><a href="localhost/SS/PageComment/deleteallcomments?pageid=31&SecurityID=afb7bd338746da91043ff35f45872e652eb312e5">
whenever I allow user comments on an article
But only in firefox.

I am a total noob to SilverStripe, please use concise terminology that us noobs can comprehend.
Any help is welcomed as I am trying to run a professional website for a professional company, and this
sort of error needs to be addressed when discovered.

Article page looks like this
<% include Menu2 %>

<div id="Content" class="typography">

<% include Breadcrumbs %>

<div class="newsDetails">
Posted on $Date.Nice by $Author
ArticlePage.php looks like this
class ArticlePage extends Page {
static $icon = "themes/tutorial/images/treeicons/news";
static $db = array(
'Date' => 'Date',
'Author' => 'Text'

function getCMSFields() {
$fields = parent::getCMSFields();

$fields->addFieldToTab('Root.Content.Main', $dateField = new DateField('Date','Article Date (for example: 20/12/2010)'), 'Content');
$dateField->setConfig('showcalendar', true);
$dateField->setConfig('dateformat', 'dd/MM/YYYY');

$fields->addFieldToTab('Root.Content.Main', new TextField('Author'), 'Content');

return $fields;
class ArticlePage_Controller extends Page_Controller {

Also: I have seen this
and it does not seem to give a solution

Thanks for any assistance in advance