The Movable Type Knowledge Base

MTCategoryArchiveLink Can Be Used Only If You Have Enabled Category Archives.

Question

When rebuilding my site or saving an entry, I get the following error:

Build error in template 'Main Index': Error in <MTSubCategories> tag: <$MTCategoryArchiveLink$> can be used only if you have enabled Category archives.

Answer

You will need to either enable Category Archives on your weblog; or remove the code which is causing the error from your Main Index Template.

Enable Category Archives

Navigate to Settings > Publishing : Archive Mapping1 and check the box next to Category. Click Save Changes and then Rebuild Site.

Remove the Template Code

If you don't wish to enable Category Archives, you can remove the code causing the error from the template.

Navigate to the Templates Listing and click on the Main Index Template to edit it. In the Template Body text area, look for the code which starts with the <MTSubCategories> tag and ends with the </MTSubCategories> tag. Select this section of code and press your Delete key to remove it.

Click Save to preserve your changes, and then Rebuild Site.

1 In versions prior to 3.2, navigate to Weblog Configuration > Archive Files.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or questions. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Yahoo! Small Business web hosting services

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.