Twice as Nice

by john on January 30, 2003

Now that I’m home I’ve had the chance to look into a problem I noticed beginning to happen this week. Two times a couple of different people had entered the same comments twice, which sometimes means they got impatient for the script to return and just posted again. So I entered a comment myself and was surprised to see a 500 Server Error returned after awhile. However, the comment was actually created.

The apache error.log showed the following error:

... malformed header from script. Bad header=retrying in 1 seconds...: mt-comments.cgi, ...

I also noticed that my email notifications were not firing. After Googling for a little bit I started to think the problem may be related to the issue I’ve been having since I added MTGoogleSearch, namely that my links were no longer displaying Ask Bjorn Hansen or Tantek Celik correctly.

Eventually I found myself looking at mt.cfg and the setting that appears to have fixed both problems:

# By default Movable Type uses the Perl module HTML::Entities to encode
# characters into HTML entities, provided that you have this Perl module.
# However, in some circumstances, even if you have this module, you may
# not wish to use it for encoding; for example, if you are using a language
# that uses a different character encoding (Polish, Russian, etc). In that
# case, you should set the value of NoHTMLEntities to 1.
#
NoHTMLEntities 1

Order restored for now.

{ 3 comments }

john February 14, 2003 at 12:18 am

Drats – hosed up again in 2.6

Andy Gray January 21, 2004 at 11:35 am

I am posting a comment to see if your form is working. I’m having the same problem you described (comments form is posting, but I get an internal server error). I don’t know why the fix you mentioned should work for me, but I’ll try it and let you know. Anyway, first I want to see if your form is working before I take your advice. 🙂

Tom Shields June 14, 2004 at 6:56 pm

I’m having the same problem, and your fix didn’t work for me. Any more ideas?

-ts-

Previous post:

Next post: