How can I stop PHP notices from appearing in wordpress?
You need to edit your:
wp-config.php
file and modify the following here:
error_reporting(0);@ini_set('display_errors', 0);
otherwise Wordpress overwrites the ALERTS set by PHP.INI
Jan 2015 with latest Wordpress, none of the above works for me.
Creating a php file in mu-plugins folder of Wordpress worked, like :
<?phperror_reporting(E_ALL & ~( E_NOTICE | E_USER_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED | E_WARNING | E_CORE_WARNING | E_USER_WARNING | E_COMPILE_WARNING | E_PARSE ));
Just name it anything you want ...
i got the answer from here :
https://wycks.wordpress.com/2013/12/05/how-to-remove-error-notices-using-wordpresss-wp_debug/
In wp-config.php add this line:
define('WP_DEBUG_DISPLAY', false);
That will enable or disable the display of notices and warnings to the page. There is a fuller description of this option, and some related options, here: