Fix No-1
If you are getting error 500 (Internal Server Error) while posting a comment, it’s likely due to how WordPress is programmed to handle internally raised errors/messages. By default WordPress responses with code 500 to the server. Some servers show their own error 500 page and prevent WordPress from displaying the intended message.
The workaround…
Edit file wp-includes/functions.php
In newer versions of WordPress replace
In older versions of WordPress replace in function wp_die
If you are getting error 500 (Internal Server Error) while posting a comment, it’s likely due to how WordPress is programmed to handle internally raised errors/messages. By default WordPress responses with code 500 to the server. Some servers show their own error 500 page and prevent WordPress from displaying the intended message.
The workaround…
Edit file wp-includes/functions.php
In newer versions of WordPress replace
function _default_wp_die_handler( $message, $title = '', $args = array() ) { $defaults = array( 'response' => 500 );with
function _default_wp_die_handler( $message, $title = '', $args = array() ) { // $defaults = array( 'response' => 500 ); $defaults = array( 'response' => 200 );
status_header(500);or
status_header( 500 );with:
status_header(200);
Thanks for give us valuable information If you are Looking for WordPress Support , visit on
ReplyDeleteWordPress Support
Very Helpful. Thanks for such Information
ReplyDeleteWordPress Support
Thanks for give us valuable information
ReplyDeleteWordPress Support
WordPress Help
WordPress Technical Support