Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Manage the display of PHP warnings/errors
This guide explains how to modify the error_reporting()
directive on your website.
Enable Error Reporting
Include the following 2 lines in your .user.ini
file:
display_errors=on
error_reporting=E_ALL & ~E_NOTICE & ~E_STRICT
If your browser displays neither errors nor warnings, then there are none.
Disable PHP Error Display
For WordPress, edit the wp-config.php file and replace the line:
define('WP_DEBUG', false);
with:
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
Otherwise, add the following code to the .user.ini file:
display_errors=off
Link to this FAQ: