A weblog authored by Carthik about the latest in the WordPress world.

Thursday, July 29, 2004

Importing large MovableType text files.

Filed under: — Carthik @ 12:38 pm

A fewof those who came over to WordPress from MovableType recently have faced problems with importing huge MT export files (we are talking about import.txt files the size of an mp3 file – approx 5MB). The problem is that the server runs out of memory allocated for php processes when processing so large a file. Server admins usually set the memory limit to a reasonably low value, especially on shared servers, to prevent resource hogging.

One solution for the problem where the MT importer times out before completing its task, is to break up your import.txt file into smaller files. Another is to use a custom template to export entries by the month, or year, and then import those files into WordPress.

This Library Planet article has tips, and MT templates to try both these methods.

For more help regarding moving from MT to WordPress, refer to the moving guide.


  1. Another possibility is to edit php.ini and change the max. memory setting. I had trouble with a 2Mb file, even when split in half. I changed the value for memory_limit (being drastic, went straight for 100Mb instead of the default memory_limit = 8M) and it worked fine. Put the limit back down when I was done.

    Comment by Steph — 7/30/2004 @ 5:29 pm

  2. Where do you find the php.ini file?

    Comment by lisanne — 6/28/2005 @ 4:48 pm

  3. The link to Library Planet article with tips on importing has moved to the following address http://www.libraryplanet.com/2004/05/16/imports

    Comment by Peter — 8/3/2007 @ 4:02 am

  4. By the way I think that the easiest way to import large number of posts into WP is to break manualy MT’s text file with exported blog.
    For some reason I was not able to import to WP file of size over 1Mb. So I edited the file cut around half of it and paste to new file. Than import those two separate files into WP.
    Thanks to that I did not have to use separate template in MT, rebuild the archives and so on.
    Quick, easy and it worked for me fine

    Comment by Peter — 8/3/2007 @ 4:28 am

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.


Powered by WordPress

eXTReMe Tracker