Wordpress, Double comment, Error 500 on ISPConfig 3.0.5.4p5 NGINX

Discussion in 'Installation/Configuration' started by averuga, Dec 3, 2014.

  1. averuga

    averuga New Member

    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
     
    Last edited: Dec 3, 2014
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the error.log f the website to find out why wordpress fails.
     
  3. averuga

    averuga New Member

    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
     
    Last edited: Dec 3, 2014
  4. averuga

    averuga New Member

    Last edited: Dec 3, 2014
  5. averuga

    averuga New Member

    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 );
    
    :p
     

Share This Page