admin管理员组

文章数量:1201785

Suddenly I am getting the following error on my website, I don't know why, these are the following errors shown on my website:

1)Fatal error: Cannot declare class WP_User_Request, because the name is already in use in /home/hnukt37ls4nt/public_html/wp-includes/user.php on line 3657

2)Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in /home/hnukt37ls4nt/public_html/wp-includes/formatting.php:4316 Stack trace: #0 /home/hnukt37ls4nt/public_html/wp-includes/class-wp-fatal-error-handler.php(190): esc_url('https://wordpre...') #1 /home/hnukt37ls4nt/public_html/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false) #2 /home/hnukt37ls4nt/public_html/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/hnukt37ls4nt/public_html/wp-includes/formatting.php on line 4316

Please help me in solving this error,

Thanks in advance. Cheers!!

Suddenly I am getting the following error on my website, I don't know why, these are the following errors shown on my website:

1)Fatal error: Cannot declare class WP_User_Request, because the name is already in use in /home/hnukt37ls4nt/public_html/wp-includes/user.php on line 3657

2)Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in /home/hnukt37ls4nt/public_html/wp-includes/formatting.php:4316 Stack trace: #0 /home/hnukt37ls4nt/public_html/wp-includes/class-wp-fatal-error-handler.php(190): esc_url('https://wordpre...') #1 /home/hnukt37ls4nt/public_html/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false) #2 /home/hnukt37ls4nt/public_html/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/hnukt37ls4nt/public_html/wp-includes/formatting.php on line 4316

Please help me in solving this error,

Thanks in advance. Cheers!!

Share Improve this question edited Jan 27, 2020 at 14:21 Chetan Vaghela 2,3984 gold badges10 silver badges16 bronze badges asked Jan 27, 2020 at 7:41 venkatesh kasatvenkatesh kasat 11 silver badge1 bronze badge 2
  • This seems like a failed update. I suggest trying a manual update to make sure WordPress is all in order: wordpress.org/support/article/updating-wordpress/#manual-update – Jacob Peattie Commented Jan 27, 2020 at 7:50
  • Thanks for the update Jacob. will update it manually and let you know. – venkatesh kasat Commented Jan 27, 2020 at 9:39
Add a comment  | 

1 Answer 1

Reset to default -1
  1. Just put your class in a if condition.
if( !class_exists( 'class_name' ) ) {
     class class_name {
         //....
     }
     $object = new class_name();
}

This will work fine for first condition

本文标签: Fatal error Cannot declare class WPUserRequestbecause the name is already in use