The Movable Type Knowledge Base

Can't Load Error Template

Question

When first trying to view the Movable Type application using the mt.cgi program, I receive a long error that starts Can't load error template, got error 'Loading template 'error.tmpl' failed and continues from there.

Answer

This indicates that Movable Type can't find the files in your tmpl directory.

First check to ensure that the directory tmpl is in the same directory as mt.cgi; that inside tmpl there is a directory called cms; and that inside cms there are a number of files with the extension .tmpl.

In addition, make sure that the case on the directories is correct; they are case sensitive, so if your FTP program changes the name of the directory to Cms, for example, this will not work.

If all of the files are in the location they should be, the issue may be that your webserver runs CGI scripts with a different current working directory than the directory in which the CGI scripts actually live.

To fix this, open mt-config.cgi1 in a text editor, and add the following line:

TemplatePath /full/path/to/tmpl/

where /full/path/to/tmpl/ is the full server path to your tmpl directory.

Save mt-config.cgi, then try to run mt.cgi again. (Note you may need to refresh your browser to see the latest results.)

1 In versions prior to 3.2, the configuration file is named mt.cfg.

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.