Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Manage the display of PHP warnings/errors

Update 09/01/2026

This guide explains 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 displays no errors or warnings, then there are none.

 

Disable PHP error display

For WordPress, edit the wp-config.php file and replace the following 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);

Alternatively, you can add the following code to the .user.ini file:

display_errors=off

Has this FAQ been helpful?