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

How to avoid 'Crikey!' error messages showing config details

Started by Muut Archive 10 years ago · 3 replies · 966 views
10 years ago

Hi all,
from time to time it appears that my site does not work due to some files I've edited wrong. Then Grav shows the 'Crikey' error page with all my site details :-( I'd like to avoid that. I've read here https://muut.com/i/getgrav/chitchat:crikey-there-was-an-error that I could create a file 'user/config/plugins/problems.yaml' and just set 'enabled: false'. I've done it but it had no effect.
So how could I display a nicer error message, especially which hides all my server configuration details?
Many thanks!

10 years ago

You can edit the error core file as well and delete what you don't want to show. This will put the ownership of the change on you and will be overwritten during upgrades.

The file (or files) should be here:
system/src/Grav/Common/Errors/Resources

10 years ago

If you are talking about simply turning off the detailed errors, the simplest solution is to turn off the errors display in system.yaml:

YAML
errors:
  display: false   

This will show a much less detailed error message.

10 years ago

@DarryllD, thanks for the details, but I'm sure I forget to reactivate as soon as I update Grav :-)
@rhukster, thanks, that's easy. Updated system.yaml in user/config now.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1354 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4064 9 years ago
Archive · by Muut Archive, 9 years ago
1 2951 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago