Title: import-mt.php hangs
Last modified: August 18, 2016

---

# import-mt.php hangs

 *  [codeprole](https://wordpress.org/support/users/codeprole/)
 * (@codeprole)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/)
 * Okay, I successfully installed WordPress 1.5 (strayhorn), and everything looks
   good. I exported the entries from my MT installation to a TXT file. I used the
   iconv command on Mac OS X to change the encoding to UTF-8 from ISO-8859-1. I 
   editted the import-mt.php file and added the file to import (“import.txt”) and
   saved the file. Finally I load …/wp-admin/import-mt.php and click on the “Let’s
   go” link.
 * And… nothing happens.
 * In Camino and Firefox the busy gear spins for a moment or two and then stops.
   In Safari I get a sheet that says: “Safari can’t open the page. Safari can’t 
   open the page “[http://localhost/~mark/public_html/wordpress/wp-admin/import.php?step=1&#8221](http://localhost/~mark/public_html/wordpress/wp-admin/import.php?step=1&#8221);
   
   because it could not load any data from this location.”
 * Help! What’d I screw up?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [codeprole](https://wordpress.org/support/users/codeprole/)
 * (@codeprole)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280735)
 * Editting the import.txt file so that it contains just a single entry allows the
   import to complete successfully. Sending the import.txt file through with two
   entries also works. Three… good. Four… fails.
 * Is the memory requirement for this so tight that I can only import 4 entries 
   at a time? How do I increase the memory allocated? I’ve got well over 600 entries
   to convert. I am not looking forward to running import-mt.php 600+ times.
 * TIA,
    codeProle
 *  Thread Starter [codeprole](https://wordpress.org/support/users/codeprole/)
 * (@codeprole)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280747)
 * The plot thickens…
 * I put together a quick “all posts” RSS template on my MT site. Something like
   this:
 * `
    
   <?xml version="1.0" encoding="iso-8859-1"?>
    <items> <MTEntries lastn="1000"
   sort_order="ascend"> <item about="<$MTEntryLink$>"> <title><$MTEntryTitle encode_xml
   ="1"$></title> <description><$MTEntryBody encode_xml="1"$></description> <link
   ><$MTEntryLink$></link> <subject><$MTEntryCategory encode_xml="1"$></subject>
   <creator><$MTEntryAuthor encode_xml="1"$></creator> <date><$MTEntryDate format
   ="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></date> </item> </MTEntries> </items>
 * Allowing MT to rebuild that page generated a RSS format of all my entries. I 
   tried putting the output file from this feed into the import-rss.php and still
   no luck.
 * I even ran iconv against the RSS output file and changed the encoding parameter
   at the top to be UTF-8.
 * I guess I’m going to have to import my entries by hand.
 *  Thread Starter [codeprole](https://wordpress.org/support/users/codeprole/)
 * (@codeprole)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280851)
 * Hmm. Over two days since I posted my question, and detailed the trials and errors
   I was having and not a single response.
 * WordPress is not impressing me at all right now. If you guys want to take business
   away from Movable Type then you need to have a clear, clean, easy import mechanism
   that ACTUALLY WORKS.
 *  [shyland101](https://wordpress.org/support/users/shyland101/)
 * (@shyland101)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280858)
 * I’m having the same problem. Could it be related to the use of PHP 5?
 *  Thread Starter [codeprole](https://wordpress.org/support/users/codeprole/)
 * (@codeprole)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280861)
 * The machine I am working on has PHP 4.3.11 installed, so no it isn’t a PHP 5 
   issue.
 * What would be nice is an import script that produced output so you could see 
   what it was doing. Individual entries work, but the whole file doesn’t. Some 
   kind of debugging output would be VERY helpful.
 * I suppose my only alternative is to upgrade to a MySQL version of Movable Type,
   and try a database to database script to get to Word Press.
 *  [da1](https://wordpress.org/support/users/da1/)
 * (@da1)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280871)
 * In import-mt.php, comment out the line 117:
    users_form($j);
 * I don’t know if this is appropriate, but if you don’t have multiple users in 
   MT, it’s probably ok.
 *  Thread Starter [codeprole](https://wordpress.org/support/users/codeprole/)
 * (@codeprole)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280875)
 * Okay. I commented out the line that read:
 * users_form($j);
 * and re-ran the import-mt.php script. This time I get a new page that lists the
   two authors in this blog (one has never posted anything) and I clicked on the“
   submit” button presented. After a short pause I get the following message:
 * Safari can’t open the page.
    Safari can’t open the page “[http://localhost/~mark/public_html/wordpress/wp-admin/import-php?step=2&#8221](http://localhost/~mark/public_html/wordpress/wp-admin/import-php?step=2&#8221);
   because it could not load any data from this location.”
 * Nuts.
 * Got any more lines of code I can comment out?
 * thx
 *  [da1](https://wordpress.org/support/users/da1/)
 * (@da1)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280876)
 * I only had one author (which is me) and got no error. Why don’t you delete the
   author that has never posted in MT then export, and try again?
 *  Thread Starter [codeprole](https://wordpress.org/support/users/codeprole/)
 * (@codeprole)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280878)
 * Even with just one author I get the same “can’t open the page” error.
 * Is there an open source debugging tool for PHP that would allow me to run the
   import-mt.php process and watch it to see where it is breaking down? I’m doing
   this all locally so I should be able to step through the code as it is running
   provided I have a decent IDE. Is there an eclipse plugin for PHP?
 * cp

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘import-mt.php hangs’ is closed to new replies.

## Tags

 * [Failed](https://wordpress.org/support/topic-tag/failed/)
 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [mt](https://wordpress.org/support/topic-tag/mt/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [codeprole](https://wordpress.org/support/users/codeprole/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/import-mtphp-hangs/#post-280878)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
