my wordpress error log is filling up with this message:
PHP Warning: ini_set() has been disabled for security reasons in
/home/mywebsite/public_html/wp-includes/load.php on line 271
that line reads: ini_set( 'display_errors', 0 );
any suggestions on how to eliminate error warnings?
You are seeing that error because the
XMLRPC_REQUEST
constant is set to true, which causes WordPress to try and disable error reporting with the following:Editing core Wordpress files is not recommended. They will be overwritten when you update or autoupdate. The correct way to correct for this is to edit the
php.ini
file on the server and removeini_set
from thedisable_functions
directive.You could also set
display_errors
toOff
, or alternatively change theerror_reporting
directive as well to prevent warnings from being shown.You could also try using the
error_reporting()
PHP function inwp-config.php
to try and disable warnings as well.One other suggestion I have never tried to is to override the
php.ini
values via.htaccess
which may or may not work on your host - see this guide.