You can finally comment again

| Blogs etc. | 1 Comment

After more than a year of struggling and searching around, I have finally found why the comments on my blog were not working any more.

So the good news for all my readers is this: You can finally comment again!

Since the time I upgraded from MT 4.x to 5.x, the following error message started appearing whenever one attempted to submit comments:

Your comment submission failed for the following reasons: Invalid request.

As it turns out the problem was trivial but extremely difficult to pinpoint. Here's how I figured it out.

I loaded an entry page, activated Firebug, entered some text in the comments field, and hit the submit button. In the Firebug console, there was a javascript error, namely the following:

mtCommentOnSubmit is not defined.

This must mean that mt.js wasn't being loaded in that page. Indeed, upon inspecting the source code, this file was not present. At the same time, another anomaly caught my eye, namely that the file utils.js was being loaded twice.

In addition to the standard "JavaScript" template which outputs the mt.js file, I had created my own user-defined template called "JavaScript Utils" which outputs the utils.js file.

So far so good you might think. Well, it turns out that the following template tag, which I have defined in the "Header" template, doesn't always render the same output:

<script type="text/javascript" src="<$mt:Link template="javascript"$>"></script>

For some strange reason it normally renders mt.js, but in the entry page it incorrectly renders utils.js instead. That's why it was appearing twice, once because of <$mt:Link template="javascript"$> and then again because of <$mt:Link template="JavaScript Utils"$>.

The solution is to rename the template="JavaScript Utils" to template="Javascript-Utils" and the problem is solved.

Now I expect many new comments to appear as the droves of my visitors are unleashed to share their many ideas with me.

Try it out yourself and see if it works.

1 Comment

Random entries

Here are some random entries that you might be interested in:

Recent Assets

  • 2023-09-24-jong-tegen-oud-1.jpg
  • 2023-09-24-jong-tegen-oud-2.jpg
  • just-call-me-fred.png
  • foggy-morning.png
  • oma-2023-07-27.jpg
  • i-almost-died.png
  • chipping-from-twenty-meters.png
  • de-koepel.png
  • IMG-20230423-WA0000.jpg
  • me-and-my-radio-paradise-hat.png

Recent Comments

Golf Handicap


This personal weblog was started way back on July 21, 2001 which means that it is 7-21-2001 old.

So far this blog contains no less than 2498 entries and as many as 1877 comments.

Important events

Graduated from Stanford 6-5-1979 ago.

Kiffin Rockwell was shot down and killed 9-23-1916 ago.

Believe it or not but I am 10-11-1957 young.

First met Thea in Balestrand, Norway 6-14-1980 ago.

Began well-balanced and healthy life style 1-8-2013 ago.

My father passed away 10-20-2000 ago.

My mother passed away 3-27-2018 ago.

Started Gishtech 04-25-2016 ago.