Hello, friends! When Im adding the duplicate comment in Wordpress , the server gives the 500 error --- page wp-comments-post.php Instead of the message "duplicate comment. It seems you already said that!" . Please help me to fix it. I would like to see the message "Found a duplicate comment. It seems you already said that!" My nginx Directives for site: Code: location / { try_files $uri $uri/ /index.php?$args; } # Add trailing slash to */wp-admin requests. rewrite /wp-admin$ $scheme://$host$uri/ permanent; location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ { expires max; log_not_found off; } ISPConfig 3.0.5.4p5
Till, where it is located? I can t find. №1 /var/log/ispconfig/httpd/site.com/ access.log - Date information of access error.log - Empty №2 /var/www/clients/client0/web1/log - empty
Maybe it will help with the solution? wp_die? I still did not help. I have one such problem in Wordpress wp-comments-post.php & nginx ?
Solution - /wp-includes/functions.php Line 2391 Line 2392 Code: function _default_wp_die_handler( $message, $title = '', $args = array() ) { $defaults = array( 'response' => 500 ); 500 to replace 200: Code: function _default_wp_die_handler( $message, $title = '', $args = array() ) { $defaults = array( 'response' => 200 );