Not a developer? Go to MovableType.com

Ask an Expert

reader comment is not showing

Asked by erica brady
Posted October 28, 2013.

I approved a reader comment, but it is not showing as a comment on the blog. When I tried to republish the blog, I got the following error message:

An error occurred publishing category '9784': Publish error in template 'Category Archive': Error in <mtSetVarBlock> tag: Error in <mtIf> tag: Invalid tag "CategoryDescription specified.

How do I make the comment show and what does that error message mean?

Back

1 Answer

Charlie Gorichanaz

Charlie Gorichanaz on October 28, 2013, 1:06 p.m. Reply

Hi Erica,

Errors like this can be thrown in Movable Type 4.

As the message shows, you have a template called “Category Archive” that contains a SetVarBlock block tag that contains an If tag with a tag parameter. Likely there is an extra quote there, perhaps from an attempt to copy and paste “CategoryDescription”.

For instance, I can generate the same error with the code:

<mt:SetVarBlock name="VAR_NAME">
  <mt:If tag='"CategoryDescription'>
    …
  </mt:If>
</mt:SetVarBlock>

Note the extra double quote before the tag name.

For the curious, this error comes from ContextHandlers.pm, though this code was refactored in MT 5.

Charlie Gorichanaz

Charlie joined Six Apart as a Japan based product manager for Movable Type in February 2014 after spending two years as a developer for 601am. Previously he was the web director of The Badger Herald while studying biochemistry at the University of Wisconsin-Madison.

Website: http://votecharlie.com/
Twitter: @CNG

Ask An Expert