Jump to:

22993 Posts in 11595 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » Error Page 404 not working

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1624 Views
  • katja
    Avatar
    Community Member
    46 Posts

    Error Page 404 not working Link to this post

    Hello,

    I have two different sites where the generation of the 404 page from the page template is not working (this happens only on the remote server, not locally). When calling a URL that doesn't exist I get the following message from the server: "Website Error Not Found The website server has not been able to respond to your request."

    After reading this post I have got round this by creating an html error page and uploading it to the assets folder. But I don't know how good that is as a long-term solution. When changing the template one always has to create a new html page.

    I'd be grateful if somebody could point me in the right direction to solve this.

    Thanks,
    Katja

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Error Page 404 not working Link to this post

    The 404 page should regenerate when ever you publish it in the CMS. So if you make changes to the theme then publish the page in the cms after your changes are made. SS will generate the html for you.

    The reason its a html page is because some errors occur on the silverstripe level so if you relied on silverstripe to generate the error page but generating the page caused the error you wouldn't get the error page. You should make sure your assets folder is writable for that file as well.

  • katja
    Avatar
    Community Member
    46 Posts

    Re: Error Page 404 not working Link to this post

    Hi Will,

    Thank you very much for your reply. I wasn't aware that it was the publishing that generates the html file. It is all working now.

    Katja

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