Fixing errors showing up frontend

Errors and mistakes happen, but these should never show up on your website.

Errors related to SEO Booster or any other plugin should never appear on the frontend, but this can happen depending on how your WordPress installation is configured. Fortunately, we can tell WordPress to not display them.

If you wish to remove these errors, in general, you need to edit wp-config.php:

ini_set('display_errors','Off'); 
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', false);
define('WP_DEBUG_DISPLAY', false);

This prevents errors from PHP and WordPress from showing up on the front of your website.

If you want to log the errors for finding and fixing a problem, but not display on your website, you can change the settings to this:

ini_set('display_errors','Off'); 
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

This prevents
errors from PHP and WordPress from showing up on the front of your website, but errors are logged to a text file /wp-content/debug.log

Please note when you are looking at this file that there are different levels of errors.

Notices and warnings are just what they say, notices and warnings – these are things the developers should look to fix, but nothing that is breaking functionality.

Fatal Errors are when there is a serious error that prevents the website from loading.

Was this article helpful to you? Yes No

How can we help?