How to ignore error messages?

Displayed errors in WordPress should be fixed as soon as possible, otherwise at some point exactly these errors lead to major problems. However, if these errors affect the frontend so much that a short-term solution is needed, the errors can be (mostly) with the following code, which must be stored in the wp-config.

ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

In most cases, the first code is already enough:

Without cookies
This website does not use cookies or tracking. More information can be found in the privacy policy.