The Movable Type Knowledge Base

Writing to 'filename.new' Failed

Question

When I save an entry or rebuild my site, I receive an error that says "Writing to filename.new failed".

Answer

End of the error message says No such file or directory

  • Make sure that you have created the folder where you want Movable Type to publish your blog files.

  • Make sure you have properly set your path(s) in Settings > Publishing1. In almost all cases, you should be using a full server path for Site Root ( and Archive Root, if enabled)2. (See How can I find my full server path? for more information.)

End of the error message says Permission denied

Check to see if the beginning of the message includes the word mkdir.

  • If it does, check your paths as noted above, because this means Movable Type is trying to create a folder which does not already exist at the specified location.

  • If it does not, make sure that you have correctly set the permissions on the folders where you want Movable Type to publish files. They should be set to 777 if you are not running under cgiwrap or suexec. See also Granting permissions on Windows, if applicable.

If you can't or do not want to set the permissions to 777, try enabling the NoTempFiles option in mt-config.cgi3.

No filename in the error message (i.e., /.new)

  • Make sure all of your Index Templates have been given an output file name.

  • Make sure you are not using an invalid Archive File Template (on the Settings > Publishing screen under Archive Mapping4), perhaps by using an incorrect tag for the specific archive type.

  • If you are using an Archive File Template which references the category name, make sure all of your entries have been assigned to categories.

1 In versions prior to 3.2, navigate to Weblog Configuration > Core Setup.

2 In versions prior to 3.2, these settings are named Local Site Path and Local Archive Path.

3 In versions prior to 3.2, enable this setting in mt.cfg.

4 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.