How to hide the server PHP warnings

You have these "warnings" because your server is set to show such PHP warnings. There is nothing to worry about. We need to keep compatibility with older versions of WordPress as well as older PHP versions. In order to solve this, if you simply set WP_DEBUG to "false" in your wp-config.php file you should be fine. In the case you already did that and still have the warnings, you can replace this line from your wp-config.php file:

define('WP_DEBUG', false);

with this:

ini_set('log_errors','On'); 
ini_set('display_errors','Off'); 
ini_set('error_reporting', E_ALL ); 
define('WP_DEBUG', false); 
define('WP_DEBUG_LOG', true); 
define('WP_DEBUG_DISPLAY', false);

Still need help? Contact Us Contact Us