wordpress - How to eliminate error warnings about ini_set? -
my wordpress error log filling message:
php warning: ini_set() has been disabled 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 eliminate error warnings?
you seeing error because xmlrpc_request
constant set true, causes wordpress try , disable error reporting following:
if ( defined( 'xmlrpc_request' ) ) ini_set( 'display_errors', 0 );
editing core wordpress files not recommended. overwritten when update or autoupdate. correct way correct edit php.ini
file on server , remove ini_set
disable_functions
directive.
you set display_errors
off
, or alternatively change error_reporting
directive prevent warnings being shown.
error_reporting = e_error
you try using error_reporting()
php function in wp-config.php
try , disable warnings well.
// turn off error reporting error_reporting(0); // show errors error_reporting(e_error);
one other suggestion have never tried override php.ini
values via .htaccess
may or may not work on host - see guide.
Comments
Post a Comment