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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to disable all error meaggess and disable debug parameter url?


Go to End


3 Posts   1669 Views

Avatar
Suriya

Community Member, 5 Posts

10 December 2009 at 6:55pm

I have upload final web app to public domain (http://www.mydomain.com) . How to disable Dev parameter url (debug,showqueries,flush=all). I want to user admin only can use it on public URL.

My configuration file _config.php

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

ฺBut all people can use parameter "debug=1&showqueries=1".

Please help me.
Thanks.

Avatar
Fuzz10

Community Member, 791 Posts

10 December 2009 at 11:29pm

Add this to your live_config

Director::set_environment_type("live");

Avatar
Suriya

Community Member, 5 Posts

11 December 2009 at 5:56pm

Thank you very much.