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('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false);
In most cases, the first code is already enough:
ini_set('display_errors','Off');