Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Movable Type Import 0.4
> If this is so, you might inquire as to getting a dump of your mysql database (then reimport it locally and go from there). Otherwise you could use the export feature of MT and then reimport it on a local MT installation.
Good point! I have shell access, so I can do this on my own. I just need to read up on the SQL commands to do this, I guess. Thanks for the idea.
Offline
Re: Movable Type Import 0.4
You can make a dump right from the phpmyadmin interface at your host. You don’t need to learn mysql commands for that, though they do come in handy! :)
Let me know if you need help with the dump – since I use the same host you do :) I can help with that!
Offline
Re: Movable Type Import 0.4
The script worked fine for me with the SQL modification given earlier in this thread to get categories (well, the first one, which is good enough). Some quirks because of my normal ascii syntax, in particular my habit of not separating pseudo em-dashes with spaces, which has resulted in quite a bit of “strikeout” text…
Dammit Jim, I’m a poet, not a programmer…
Joined the TXP Obsessed 2/25/04: http://www.chrislott.org/
Offline
#34 2004-03-12 01:08:29
- zoe
- New Member
- Registered: 2004-03-10
- Posts: 5
Re: Movable Type Import 0.4
Having trouble with these scripts. I’d like to import my MT. Using Dean’s method, I receive the error:
Duplicate entry ‘1’ for key 1
So, I tried pix’s method. I verified the mt.txt exported file isn’t all one line, it looks as it should I think. I uploaded both the mt.txt and mt2tp.cgi file to a directory. Filled in the details, and received this error:
Connected to destine_textpattern sucessfully
Importing files from mt.txt?
error, file not right?
And, that’s it. Anyone know what I’m doing wrong?
-z
Offline
#35 2004-03-16 12:08:57
- mapu
- Member

- From: Munich, Germany
- Registered: 2004-03-16
- Posts: 141
Re: Movable Type Import 0.4
Hi,
I am new to TXP and I consider to migrate from MT to TXP. I tried out Dean’s migration-script and all the entries (incl. comments) from one blog of my MT-installation transferred well to the TXP-database.
So far so good. But there are two points, where I am not sure if I did something wrong or the script is still buggy.
1. all comments of the imported entries are closed?
2. all categories (from all MT-blogs) were imported – not only those from one blog_id, but no entry was assigned to its category. So I have now a plenty (actually too many!) of categories, but no entries in those categories.
Any hints? Thanks in advance and sorry for my eventually bad English ;-)
Offline
Re: Movable Type Import 0.4
In the interest of facilitating even more migration from Movabletype to Textpattern, I put together a (very ugly) script to generate a list of .htaccess redirects that will send all requests for individual MT entries to the corresponding Textpattern entry. At first I thought this could be done very mechanically, but there’s not necessarily a one-to-one correspondence between MT entries and imported Textpattern entries (because of deleted entries or multiple MT weblogs). I’ve used Pix’s import script, but I don’t think there’s any reason this won’t work after using Dean’s importer, because this dumb thing just matches by title.
It’s ugly but it seems to have worked for me.
Caveats: 1) It only works with archives of the format “/archives/000001.html” — that fancy search-engine-friendly filename won’t work; 2) it will generate duplicate redirects if you have more than one match per title, so watch out for those; 3) I’m a social scientist, not a programmer.
The script and a couple more notes are available here. I’d be interested to hear if this is useful to anybody else!
Last edited by schussat (2004-03-17 01:18:54)
-Alan
Offline
#37 2004-03-17 03:19:55
- zoe
- New Member
- Registered: 2004-03-10
- Posts: 5
Re: Movable Type Import 0.4
pix,
Thanks for the offer, but I got it worked out. I didn’t have alot of entries, so I just manually converted them.
Z
Offline
Re: Movable Type Import 0.4
I get this error when I run the MT import script:
Warning: Wrong parameter count for mysql_connect() in /home/mearso/public_html/newblog/textpattern/txp_mt_import_04.php on line 35 mt database values don
Offline
Re: Movable Type Import 0.4
Yes, this needs to be addressed.
text*
Offline
Re: Movable Type Import 0.4
I tried this (I SOOOOO want to switch to txp SOON!!!) but….
I didn’t get any error messages at all.
It only imported SOME entries, skipped a fewm, imported totally at random
Screwed up the dates for the entries it DID import
Imported the comments nicely, even comments for the posts that it didn’t import (?) – the comments made for posts that didn’t get imported had a little “post deleted” thingie next to them
All this leaves me basically sitting here and going “huh?” – any ideas??
Offline
Re: Movable Type Import 0.4
Oh – after looking at schussat’s post i realized that it’s the same problem for me
All of the entries that were NOT imported had image code in them – for me that’s a LOT of posts…
I thought of trying pix’s script but… it’s gone?
Offline
Re: Movable Type Import 0.4
> spyke wrote:
> I thought of trying pix’s script but… it’s gone?
I have a copy of Pix’s script v2.0. I can send you a copy. (I assume/hope Pix wouldn’t mind… I doublechecked, and he released it under a creative commons license that allows for it.) I guess that if Pix has really disappeared, I could host the script, too.
-Alan
Offline
Re: Movable Type Import 0.4
Thanks for the offer – this will give me a chance to see if this is what i need at least… (until the php script is fixed ;) )
sent you an email with my contact details.
Offline