Jump to:

22997 Posts in 11853 Topics by 2828 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: 494 Views
  • Bruce B
    Avatar
    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?

    494 Views
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.