Jump to:

23479 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » setting friendlyErrorMessage

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: 525 Views
  • Bruce B
    Community Member
    145 Posts

    setting friendlyErrorMessage Link to this post

    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?

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.