• Resolved boutros

    (@boutros)


    Hi,

    I just noticed that only in IE8 whenever I submit a Comment in a post while leaving blank any of the required fields, I get the HTTP500 error message. In other Words, clicking submit with any of the required fields (like name, email, comment) are left blank I will get the below error message in IE8. Filling up all required fields (with a valid email address) cause no errors.

    https://bacsoftwareconsulting.com/blog/wp-comments-post.php
    The website cannot display the page
    HTTP 500
    Most likely causes:
    ?The website is under maintenance.
    ?The website has a programming error.

    What you can try:
    Refresh the page.
    Go back to the previous page.
    More information
    This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

    All other browsers I checked work fine (Mozilla/Fiefox 3.6, Google Chrome 4, Opera 10 and Safari 4). They display the approriate error
    message coded in wp-comments-post.php

    Feel free to try it out on my Blog:
    https://bacsoftwareconsulting.com/blog/

    I am not sure how to fix this?

    Thank you,
    Boutros.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems?

    Thread Starter boutros

    (@boutros)

    Hi,

    1. I have switched to the default theme, and tried other themes too.
    The problem, described in my first post, is still there.

    2. I disabled all plugins I have (I only have 8 plugins), and the problem still there.

    This is really interesting with IE8: if you leave any of the required
    fields blank, and even if you fill out an invalid e-mail, and click
    SUBMIT. So IE8 instead of displaying the appropriate error message as coded in wp-comments-post.php, it displays an HTTP 500 Error.
    All other browsers behave as expected.

    Any other ideas? If you use IE8 on my posts, do you get the same result when you submit a comment with empty fields?

    Thank you.

    Thread Starter boutros

    (@boutros)

    UPDATE: PROBLEM SOLVED
    I found the solution to this problem. Now IE8 behaves the same like the other browsers. The fix lies in WordPress core code.

    Go to: “wp-includes/functions.php”
    Change “$defaults = array( ‘response’ => 500 );”
    To “$defaults = array( ‘response’ => 200 );”

    boutros

    Thank you very much.. You also helped me..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTTP 500 Internal Server Error in IE8 only’ is closed to new replies.