Developer forum

Forum » CMS - Standard features » Hide error information on pages with an error

Hide error information on pages with an error

Tomas Gomez
Reply

Hi,

We want to avoid frontend users to see the error information whenever they get a page with an error (see attached image). The error info is not useful for them and it produces a negative feeling about the website.

This could be achieved in two ways:

  • Replacing the error information with a friendly message ("Ops, something went wrong, please reload the page")
  • Redirecting the user to a page with that friendly message.

 What it is the best method? Is there any other alternative? How would you implement it?

Regards,
Tomas

Errror_page.png

Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

There is a number of checkboxes in security settings that will disable exceptions and show "friendly" messages instead:

See the debugging section under Security on this page:

https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/web-and-http#3518

Some of the settings require IISreset

Votes for this answer: 1
 
Tomas Gomez
Reply

Great! Quite sure there was a config to do it but couldn't find it :-)

I trigered a malformed template error and the page displays "An error has occured. See log for information."

Is it possible to translate or customize these messages? They are not in the Setting > Translations sentences.

Regards,
Tomas

 

 
Nicolai Pedersen
Reply

Hi Tomas

No - these errors cannot be translated. They are system messages and should not be shown to users except for rare occasions....

BR Nicolai

 
Tomas Gomez
Reply

Ok, thanks!

 

You must be logged in to post in the forum