Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » 404 error pages - doctype changes

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1299 Views
  • bdgraphics
    Community Member
    5 Posts

    404 error pages - doctype changes Link to this post

    Hi everyone,

    I am having an issue with 404 error pages that I can't seem to get around.

    When publishing a custom error page (404) the page.ss is being used like for normal pages but the doctype itself is being changed.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" >

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en" >

    It is xhtml 1.1 for all of the content pages but changes to strict html with the error page. this is throwing a parsing error in the browser. It also seems to strip all the closing tags in the head.

    I have deleted the 404 page in assets and disabled the Content Negotiator, reflushed and rebuilt all to no avail.

    Is the headers and meta being created by the CMS itself?

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.