21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 793 Views |
-
Tutorial problem

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 %><h1>$Title</h1>
$Content
<div class="newsDetails">
Posted on $Date.Nice by $Author
</div>
$PageComments
</div>When I add $PageComments to the ArticlePage.ss I get following error:
<p id="DeleteComments"><a href="http://localhost/tuto/PageComment/deleteallcomments?pageid=12&SecurityID=d9b1094aef2eb2f67cb772921d3db390405fc3e4">
Can somebody help me ?
-
Re: Tutorial problem

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

13 January 2011 at 9:06am
Hi,
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
Location: http://www.vidimo.nl/laboratory-blog/little-red-riding-hood-tourist-tour/
Line Number 139, Column 106: <p id="DeleteComments"><a href="http://www.vidimo.nl/PageComment/deleteallcomments?pageid=21&SecurityID=89a6345ea67ceb19515c59b51a26292b39e7c8be">
-----------------------------------------------------------------------------------------------------------------------^ -
Re: Tutorial problem

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.
-John
-
Re: Tutorial problem

19 March 2011 at 6:41pm
Thanks John, Patches / fixes for the documentation are welcome - http://doc.silverstripe.org/sapphire/en/misc/contributing/#Writing-Documentation.
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!
| 793 Views | ||
|
Page:
1
|
Go to Top |




