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, biapar, Willr, Ingo, swaiba, simon_w

Paddy green $PageComments Error


Reply

474 Views

Avatar
firewalker22

30 January 2012 at 6:34am (Last edited: 30 January 2012 6:44am), Community Member, 1 Post

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

<h1>$Title</h1>
$Content
<div class="newsDetails">
Posted on $Date.Nice by $Author
</div>
$PageComments
</div>
-----------------------------------------------------------------------
ArticlePage.php looks like this
-----------------------------------------------------------------------
<?php
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 http://www.silverstripe.org/general-questions/show/15389
and it does not seem to give a solution

Thanks for any assistance in advance
firewalker22