Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Error Page 404 not working


Reply


3 Posts   1709 Views

Avatar
katja

Community Member, 46 Posts

16 February 2010 at 12:23am

Edited: 16/02/2010 12:23am

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

Thanks,
Katja

Avatar
Willr

Forum Moderator, 5513 Posts

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.

Avatar
katja

Community Member, 46 Posts

17 February 2010 at 5:43am

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