Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Manage the display of PHP warnings / errors
This guide shows how to modify the error_reporting()
directive on your website.
Enable error reporting
Specify the following 2 pieces of information in your .user.ini
file:
display_errors=on
error_reporting=E_ALL & ~E_NOTICE & ~E_STRICT
If your browser does not display any errors or warnings, then there are none.
Disable PHP error display
For WordPress, edit the file wp-config.php
and replace the line:
define('WP_DEBUG', false);
by:
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
Otherwise, you can add the following code to the .user.ini
file:
display_errors=off
Link to this FAQ: