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?
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 anIf
tag with atag
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:
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.