Sometimes the WordPress error log file will create huge headache for some users since it creates huge file in some cases. It will sometimes affect the hosting too if you have only less space in your server. In order to avoid logging of error, please add the following code in your wp-config.php file. Add the code below define(‘WP_DEBUG’, false); line.
@ini_set('log_errors','Off'); // enable or disable php error logging (use 'On' or 'Off')
@ini_set('display_errors','Off'); // enable or disable public display of errors (use 'On' or 'Off')
Done, no more error logging now.
not working for me on WP
what version of wordpress are you using
Not working because your code have extra “@” at the front. Remove the “@” will do.
sir , does it work on php 5.5.?
yes it will
thank you so much sir for your info
Great info sir thank you keep share with us..:)