How To Turn Off PHP Errors In WordPress

Written by the Divi Engine Documentation Team

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.

Step 1: Turn Off PHP Error Notices in WordPress

Make your way to the wp-config.php file of your WordPress Divi 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);

More Support?

Please email us at [email protected] if you are unable to get your Divi Engine plugin working.


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