Does anyone have any idea how to hide error codes on the website (frontend) if any get and instead show the client a general graphic, e.g. that we have a temporary problem, we are working on it,
2 Answers
Addition on the tips below: make sure the following line is commented:
ini_set('display_errors', 1);
to
#ini_set('display_errors', 1);
in app/bootstrap.php
Also what is said above: setting your site in production mode should disable the display of (most) errors.
You need to do following things.
- Set your website into the production mode using this command.
php bin/magento deploy:mode:set production
- If you want your custom design, then modify the default 404 page.