firstly i got one mail from wordpres, your wordpress has been updated succesfully and my website stop running on every alternate days
Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.
Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://wordpress.org/support/article/debugging-in-wordpress/
You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you cannot access wp-admin, there are other ways to deactivate plugins.
my server got this error on every alternate days and my website got down when we are trying to open my website it will show only blank page and at that we are unable to login wp-admin panel also…plz help me out
[29-Nov-2019 05:15:59 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in /home/drrim2gt/public_html/gemmamarketing.in/wp-includes/formatting.php:4305
Stack trace:
#0 /home/drrim2gt/public_html/gemmamarketing.in/wp-includes/class-wp-fatal-error-handler.php(190): esc_url(‘https://wordpre…’)
#1 /home/drrim2gt/public_html/gemmamarketing.in/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)
#2 /home/drrim2gt/public_html/gemmamarketing.in/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)
#3 [internal function]: WP_Fatal_Error_Handler->handle()
#4 {main}
thrown in /home/drrim2gt/public_html/gemmamarketing.in/wp-includes/formatting.php on line 4305
Login with FTP and add the following code in functions.php :
if ( !function_exists( 'wp_kses_normalize_entities' ) ){
function wp_kses_normalize_entities( $string ) {
// Disarm all entities by converting & to &
$string = str_replace( '&', '&', $string );
// Change back the allowed entities in our entity whitelist
$string = preg_replace_callback( '/&([A-Za-z]{2,8}[0-9]{0,2});/', 'wp_kses_named_entities', $string );
$string = preg_replace_callback( '/&#(0*[0-9]{1,7});/', 'wp_kses_normalize_entities2', $string );
$string = preg_replace_callback( '/&#[Xx](0*[0-9A-Fa-f]{1,6});/', 'wp_kses_normalize_entities3', $string );
return $string;
}
}
That should temporary fix the problem, until you find the origin of the problem.
-
This reply was modified 2 years, 5 months ago by
wowlayers.
how can we fix this issue permanently because we are facing this problem on every alternate days plz help me out
Please contact your host. Intermittent problems may be due to server issues.
is there any another way to fix this issue permanently because my hosting provider didn’t help me ..if anyone know then plz help me out as soon as possible thanks