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 [url=http://www.silverstripe.org/general-questions/show/268971]this post[/url] 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.
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.