Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Don't display errors / warnings in production

Started by Matteo Rossi 8 years ago · 3 replies · 850 views
8 years ago

Hi all,

my app is showing exceptions (especially E_WARNING) in production env even thought i've disabled error reporting in php.ini and in grav admin.

Are there others occurrencies to disable Woops code exposing in production?

8 years ago

In the Admin panel under Configuration, System, you can set Display Errors to "Simple Error" which I believe will do what you want.

8 years ago

Or maybe fix the exceptions thrown? ;-)

👍 1
8 years ago

1ac5b5a228f326b1feba587b52ba0fbf0ecbe248_1_690x345|690x345

I think that the problem relies in file_exists caching mechanism (used in Grav core files). I don't want to monkey patch core files or add try catch around it.

Now i've added theme://languages directory so that it caches dir presence.. meh

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 52 8 hours ago
Support · by Anna, 3 days ago
2 59 11 hours ago
Support · by Justin Young, 12 hours ago
1 30 12 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago