Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Disabling SS error messages? help Please

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: 1080 Views
  • FireMe!
    Avatar
    Community Member
    74 Posts

    Disabling SS error messages? help Please Link to this post

    Hi all,

    Having a little problem with error messages being displayed, I want too disable SS (you know blue bg with ss logo top left) error messages and use my own for the site design.

    for example if I type a URL that does not exist I get :

    Website Error
    Not Found

    The website server has not been able to respond to your request.
    (blue bg with ss logo top left)

    Instead of my custom 404 - not found :

    Sorry, it seems you were trying to access a page that doesn't exist.

    Please check the spelling of the URL you were trying to access and try again.

    _myconfig

    Director::set_dev_servers(array(
       'localhost',
       '127.0.0.1',
    ));

    Director::set_environment_type("live");

    I read somewhere to add set_environment_type("live");

    But does not seem to work am I missing something simple?

    thanks in advance

    FireMe

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Disabling SS error messages? help Please Link to this post

    Do you have a error-404.html page in your assets folder and a 'Page Not Found' Page in the CMS? If theres no 404 template then it could be throwing an error. If you put it in devmode you might need to check its not another error.

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