Jump to:

1374 Posts in 487 Topics by 520 members

Themes

SilverStripe Forums » Themes » Paddy green $PageComments Error

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 446 Views
  • firewalker22
    Avatar
    Community Member
    1 Post

    Paddy green $PageComments Error Link to this 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

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