WordPress.org

Ready to get started?Download WordPress

Forums

status_header(500) problem with IE6 (7 posts)

  1. Patrizio81
    Member
    Posted 6 years ago #

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

  2. rarsenault
    Member
    Posted 6 years ago #

    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

  3. rickm124
    Member
    Posted 6 years ago #

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

    Thanks

  4. archon810
    Member
    Posted 6 years ago #

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

  5. Mladjo
    Member
    Posted 6 years ago #

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

  6. eliemartin
    Member
    Posted 5 years ago #

    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!

  7. Glenn Ansley
    Member
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic