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

setting friendlyErrorMessage


Reply


551 Views

Avatar
Bruce B

Community Member, 147 Posts

26 April 2009 at 12:11pm

I'd like to change the text that shows when an error occurs in the production environment.

The default text is:
There has been an error
The website server has not been able to respond to your request.

These lines are held in the variables $friendlyErrorMessage and $friendlyErrorDetails. I can edit these in sapphire/dev/debug.php but it would be cleaner to have it somewhere else eg in the _config file.

Any suggestions about how to achieve this?