<?php 


include("../../../../../site-common/common-functions.php");


set_title("February 11, 2005 : Jeremiah Oeltjen's Blog");

page_start();
?>
<div class="breadcrumb">
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/" itemprop="url"><span itemprop="title">Home</span></a> &#x203a; 
</div>

<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/blog/" itemprop="url"><span itemprop="title">Blog</span></a> &#x203a; 
</div>


<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/blog/archives/2005/" itemprop="url"><span itemprop="title">2005</span></a> &#x203a; 
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="/blog/archives/2005/02/" itemprop="url"><span itemprop="title">February</span></a> &#x203a; 
</div>
<div class="this-node">
<span class="title">11</span>
</div>


</div>

<div class="blog">

<div id="menu">

<a href="https://jeremiah.oeltjen.us/blog/archives/2005/02/10/">&laquo; February 10, 2005</a> &#x2039;

<a href="https://jeremiah.oeltjen.us/blog/">Main</a>

&#x203a; <a href="https://jeremiah.oeltjen.us/blog/archives/2005/02/18/">February 18, 2005 &raquo;</a>

</div>

</div>

<div class="blog">




<h2 class="date">February 11, 2005</h2>


<div class="blogbody">
<a name="000075"></a>
<h3 class="title">MT Comments Back</h3>

<p>For the longest time the comments on my blog haven't been working.</p>

<p>I noticed a couple of months ago when I tried to add a comment to a post to test the <a href="http://www.movabletype.org/news/2005/01/movable_type_nofollow_p.shtml"  title="Moveable Type &quot;nofollow&quot; plugin">nofollow plugin</a> and I received an interesting message:</p>
<blockquote><p>An error occured:</p>
<p><tt>no entry_id</tt></p>
</blockquote>
<p>So I started messing around with it. I figured out that if I changed the form method to GET in the <acronym title="Movable Type">MT</acronym> template for the individual archives I could get a comment to go through, but I really wanted POST.</p>

<p>I don't know how long I spent on it, but I had to let it go.</p>

<p>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:</p>
<pre>
"GET /mt/mt-comments.cgi HTTP/1.1"
</pre>
<p>Huh?</p>

<p>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.</p>

<p>I quickly realized that the value of the &lt;$MTCGIPath$&gt; 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.</p>

<p>Morals of the story: 
<ol>
<li>If you can help it, <a title="Hypertext Style: Cool URIs don't change" href="http://www.w3.org/Provider/Style/URI.html">never move your blog to a new address</a>.</li>
<li>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.</li>
</ol>
</p>



<div class="posted">
Posted by <a href="http://jeremiah.oeltjen.us/" rel="author">Jeremiah Oeltjen</a> at <a href="https://jeremiah.oeltjen.us/blog/archives/2005/02/11/mt-comments-bac-1"><time datetime="2005-02-11T06:35:58-06:00"> 6:35 AM</time></a>


</div>

</div>


</div>
<?php
page_end();
?>
