I tried to create a pagetype using the tutorial theme (which comes default with the SilverStripe installation).
Everything ran well. Next day when I tried to login as an admin(localhost/myproj/admin), it gave me a below error.
XML Parsing Error: not well-formed
Line Number 78, Column 26: <div class="clear"><!-- --></div>
Any clue...if I need to add any function ...., I tired everything...dev/build, ?flush=1...etc.
21 May 2011 at 10:54am
I would recommend removing the xml header from the top of the Page.ss file. Sending XHTML as proper XML seemed like a good idea but lots of core functions nowadays aren't tested with the tutorial theme in xml mode.
The header looks like <?xml .... and is in themes/tutorial/template/Page.ss
24 May 2011 at 11:32am
Well if you want to debug (rather than simply removing the xml header from page which I recommend) then you want to run your site through an HTML validator, you will find it doesn't validate and give you perhaps a better error message but I would assume that a tag may not be closed. Remove parts of Page.ss till it works (don't forget to ?flush=1 while making changes), once you have it working put the bits and pieces back one at a time till you determine what causes the issue.