Don't Back Down

Posted by Chad Everett on March 25, 2008

Upgrading Movable Type Comments to 4.1 »

When Six Apart released Movable Type 4.1, with it they released an entirely new commenting architecture. And technically, the foundation was laid with MT4 - but let's face it, until 4.1 came out, MT4 was a bit lacking. So I'm sticking with 4.1 for this example. Sorry.

In any case, if you install Movable Type 4.1 for the first time, you'll probably be set - because you'll be starting from scratch. But if you take an existing installation and try to upgrade your site - specifically your comment process - so that it will work in 4.1, you might have some issues. Luckily, it's a really easy fix. It's just not particularly apparent how you should make the fix, which leads to a very frustrating process to get them working again, and that in turn leads to a whole mess of time wasted. Hopefully this entry will help you get things on the right track again.

The most noticeable result of this problem is that your comment form disappears. That's right - it's just gone.

There are two causes for this. One is that the MTIfCommentsActive tag suddenly seems to stop working. In fact, I thought perhaps someone removed it from the package and didn't tell me. I actually looked through the code - something I try to stop doing. I rebuilt, rebuilt and rebuilt again, yet the code wasn't even in the output of the pages. I even refreshed the templates - something that I never do. I had no idea what was happening. So I removed the template tags, which led to the second problem.

If I looked really hard, it seemed that the comment form was there, but it was disappearing. This made me think that it was a problem with the (Site) JavaScript file. As you may know, this template has to do with making sure that the code is running correctly for authentication - which up until recently, has meant TypeKey. So I rebuilt it. A few times. I looked at the code, and I noticed that the login block there was empty. I checked the TypeKey code. It was there.

I even logged into TypeKey and checked the values for the domain - something I hadn't done for a long time. I removed and re-added the code in the preferences, I checked the comment flags, and I couldn't get the stupid comment form to stay on the page. Finally, I started clicking around and noticed the Registration page, under the Blog Settings menu. Of course I knew it was there, I just hadn't thought of it. Once on the page, I even got to see the helpful message about having authentication enabled, but not having anything turned on.

Checking a number of boxes, I saved it, and then re-published the site, and guess what? It worked!

In other words, if you are upgrading, make sure you go to the registration page and check the little boxes. The problem is really a simple one.

The JavaScript file hides your comment form if you're not logged in. And, since I couldn't log in, I couldn't see the form, and since I didn't have any registration options set up (since they weren't checked), I couldn't even get signed in to see the form. Ah, the joys of upgrading.

Now, is this Six Apart's fault? Not entirely. It is quite possible that I removed something (or added something) to a template which stuck me in this never-ending loop of upgrade limbo. But it would certainly help if the message telling me that I needed to check the boxes fell on a screen other than the registration screen - say, the web services screen (where you set up TypeKey), the comment screen (where you enable commenting for the blog), or even on the entry screen (where you can also enable commenting). Generally I'm not a fan of such over-zealous warning messages, but in this case, the needed options were not standing out, and it would have been nice to have a pointer, you know?

Related Entries

Comments (4)

Hey Chad, I was wondering what you are using to get the star rating in MT?

thanks!
\\scott\\

Thanks Chad this helped a million. For weeks I could not figure this problem out. I disabled comments due to spam for a few weeks, then when I decided to accept comments, my form would not appear. My web host could not help find the problem, and you solved it. I visited a couple of your Google sponsors ;)!

Hi Scott -

The current star rater is from Outbrain. I put together a simple plugin to make it even easier to install.

Hi Pat -

Glad it helped! I am never sure if I'm alone in some of these issues (a victim of my own meddling) or if it's going to help someone else. But in this case, I'm glad that it was able to be of use to someone!

Post a comment