[wp-trac] [WordPress Trac] #7890: Internal server error when submitting comment without name or email

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 15 17:41:11 GMT 2008


#7890: Internal server error when submitting comment without name or email
---------------------+------------------------------------------------------
 Reporter:  gadlen   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.8      
Component:  General  |     Version:  2.6.1    
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 In WP 2.6.2, running Internet Explorer 6
 If you submit a comment without a name or email address, Internet Explorer
 returns an error. This does not happen in Firefox 3 or Chrome. The error
 returned is:

 {{{
 http://lee.org/blog/wp-comments-post.php
 The page cannot be displayed
 There is a problem with the page you are trying to reach and it cannot be
 displayed.
 HTTP 500 - Internal server error
 Internet Explorer
 }}}


 [http://wordpress.org/support/topic/187581?replies=6 hotkee suggests] "The
 bug is IE related I think it treats it as internal error if the returned
 page is less 512Bytes."

 That appears to be correct :-). If the error messages are made longer, the
 Server Error messages don't appear.

 Here are some proposed changes:

 line 61 of wp-comments-post.php was:
                 wp_die( __('Error: please fill the required fields (name,
 email).') );

 change to:
                 wp_die( __('Sorry, please click the Back button on your
 browser and fill the required fields (name, email).') );

 change line 63 to:
                 wp_die( __('Sorry, please click the Back button on your
 browser and enter a valid email address.') );

 change line 67 to:
                 wp_die( __('Sorry, please click the Back button on your
 browser and enter a comment.') );

 change line 54 to:
                 wp_die( __('Sorry, you must be logged in to post a
 comment. Please click the Back button on your browser.') );

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7890>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list