Support » Fixing WordPress » status_header(500) problem with IE6

  • I noticed that if i try to post an incomplete (eg. with missing e-mail) comment using IE6, i get a “HTTP 500” error page. With other browsers (IE7, Firefox, Opera), instead, i get the “correct” error page (eg. the readable one saying that the email is invalid).

    Anyone noticed this?

    As a workaround, i’ve modified the wp_die function on functions.php, replacing the line:
    status_header(500);
    with:
    status_header(200);

Viewing 6 replies - 1 through 6 (of 6 total)
  • Patrizio81,

    Thank you VERY MUCH for posting this. I had spent 1-2 hours debugging, googling, and searching the forums on this until I found your post.

    Changing the functions.php file fixed this for me.

    For reference, in WordPress v2.5 I changed line 1388 from:

    status_header( 500 );
    to
    status_header( 200 );

    The error messages are working fine now.

    Rich

    I also want to thank you for this. As a newbie, I wasn’t sure what to do. Your solution helped me.

    Thanks

    It sounds more like a workaround to a bug rather than a solution. Has anyone filed a formal bug?

    Well it solved problem for me thanks. I had problem only wnen I’m login and didn’t type comment. I recevied error 500.

    i don’t understand why they are doing this in the first place, instead of page validation. But this did work for me, so i’m glad to have a solution even if it isn’t the most attractive one.

    thanks!

    If you didn’t want to edit core but you wanted to use the fix on the forum, you could do the following:
    1) copy wp-comments-post.php from the root of your site into the theme directory
    2) edit the lines mentioned by rarsenault (in your copy of the file)
    3) change the action in your theme’s comment script to point to your version of the script.
    eg: change <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> to <form action="<?php bloginfo('stylesheet_directory'); ?>/wp-comments-post.php" method="post" id="commentform">

    Just an idea

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘status_header(500) problem with IE6’ is closed to new replies.