For the longest time the comments on my blog haven't been working.
I noticed a couple of months ago when I tried to add a comment to a post to test the nofollow plugin and I received an interesting message:
An error occured:
no entry_id
So I started messing around with it. I figured out that if I changed the form method to GET in the MT template for the individual archives I could get a comment to go through, but I really wanted POST.
I don't know how long I spent on it, but I had to let it go.
Finally, this evening I revisited the issue. I tried to post a comment. No luck. I upgraded MT. Still nothing. Finally I checked the error and access logs on my web server. Here's what I found:
"GET /mt/mt-comments.cgi HTTP/1.1"
Huh?
I opened up the View Page Info dialog in Firefox and looked at the Forms tab. What I saw bugged me. The form method was set to POST, but the action was http://kb0off.sheddwellers.org/mt/mt-comments.cgi. This is a former address of my web site. The name still points to my server, but I have a RedirectMatch direective that sends all of the traffic from that domain to jeremiah.oeltjen.us.
I quickly realized that the value of the <$MTCGIPath$> variable is set in mt.cfg, not through the MT configuration dialogs. (The blog path setting is there for a specific blog.) That's why it wasn't working. Everytime a comment was posted it went to the old address which got redirected to the new address and converted to a GET request with no parameters.
Morals of the story:
- If you can help it, never move your blog to a new address.
- If you must migrate to a new domain name (not necessarily a new server), grep through ALL of your configuration files for your old name.

