How To Turn Off PHP Errors

Are PHP Warnings & Notices Fatal?

PHP warnings and notices help developers debug issues with their code. PHP errors that you can see on your wp-admin dashboard are usually warnings and notices. These are NOT FATAL errors like the internal server error.

How To Turn Off PHP Errors in WordPress?

For this part, you will need to edit the wp-config.php file of your WordPress website.

Make your way to the wp-config.php file of your website and, look for the following line.

define('WP_DEBUG', true);

Then change it to.

define('WP_DEBUG', false);

If this does not work, you will need to replace the define('WP_DEBUG', true); line of code with the following.

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

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us