23453 Posts in 18902 Topics by 2877 members
|Go to End|
16 February 2010 at 12:23am Last edited: 16 February 2010 12:23am
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.
16 February 2010 at 5:17pm
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.
17 February 2010 at 5:43am
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.
|Go to Top|