WordPress Error 500 – Internal server error on Empty Comment

2017/05/17
By
Modified: 2017/04/30

Problem – Embarrassing Error 500

I am running latest Word Press 3.0.1 on IIS 7.0.  If visitor tries to leave an empty comment or forgets to enter name or email, an ugly 500 – Internal server error will appear on the screen.  This is extremely embarrassing for the host and for the site.

I approximately know that I have three ways to approach this problem:

– Disable error 500 on IIS side to allow WordPress to handle it;

– Lower level of error generated in WordPress code (IIS will not catch it then) or

– Write a local JavaScript to prevent user from posting with empty fields.

Solution – One click in IIS 7

[2010-10-12 TU 09:02]

This is only a problem on IIS 7.0 on Windows 2008 Server.  This is not a problem on Windows 7 and IIS 7.5 and not a problem in Windows XP and IIS 5.1.  And the solution is extremely simple, and doesn’t require changing WordPress Code.  You need to disable custom errors on your IIS 7.0

On your W2K8 Server, go to IIS Manager, open your site, double click on Error Pages.  You should see a list of all error status codes.

Click on Edit Feature Settings…. and change Error Responses to Detailed errors.  Click OK and you are done.  Now your visitor’s errors will be handled gracefully.

Tags: , , , , , , ,


One Response to WordPress Error 500 – Internal server error on Empty Comment

  1. jearneUnamb
    2011/01/08 at 09:59

    thanks

Add Your Comment Ваш Комментарий

Your email address will not be published. Required fields are marked *

* Ваше Имя *
* Ваш Email (не будет показан на сайте)*

*