Movable Type -> S9Y Problem

Having trouble installing serendipity?
Post Reply
The Dom
Regular
Posts: 8
Joined: Fri Sep 23, 2005 3:22 pm

Movable Type -> S9Y Problem

Post by The Dom »

Hi,

I decided to switch from MT (2.661) to S9Y. But I have a problem with the import. The MT importer from S9Y only supports import from the data file. This data file is generated via the MT admin-interface. But I have a lot of entries (~800) and also ~1250 Comments so the export to the data file takes too long and the server stops the output. Because of that I never get a data file with all entries.

Is there any other way of importing the data from MT? Maybe directly from the database.

Thanks!
dma147
Regular
Posts: 132
Joined: Thu Sep 08, 2005 1:50 pm
Location: Berlin
Contact:

Post by dma147 »

if you have access to the php.ini, you can set the max_execution_time to something higher than the actual value.

I really don't know this importer so I don't know, if there is already a set_time_limit() function. If not you also can set the max_execution_time with this function to a higher value than the one in your php.ini, instead of modifying the php.ini.

The second solution only works if this function is allowed through the php-configuration.
Alexander Mieland, dma147
http://blog.linux-stats.org
The Dom
Regular
Posts: 8
Joined: Fri Sep 23, 2005 3:22 pm

Post by The Dom »

Thanks for the suggestion but MT is a perl script (and also I have no access to the php.ini).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Dom,

there is no DB import for Moveable Type, since the DB format variies too much in their versions.

You can, however, just split up your MT data file into multiple smaller chunks. Their data file is a plaintext format, so you can cut it up with your favourite editor. Just make sure that you cut the file only *BEFORE* a new entry, and not within the comments. If you cut a file within the comment area, the comments in the new file cannot be associated to the entry of the other file.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
The Dom
Regular
Posts: 8
Joined: Fri Sep 23, 2005 3:22 pm

Post by The Dom »

Thanks but I think you misunderstood my problem. I _don't_ have problems with the import because my data file is too large. My problem is that I don't get a full data file because MT stops exporting after some time (I only get ~15% of all entries).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Argh, sorry, I really misunderstood you.

You'll need to ask on the MT support forums then, I'm sorry.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
The Dom
Regular
Posts: 8
Joined: Fri Sep 23, 2005 3:22 pm

Post by The Dom »

I did but nobody responded so I wanted to ask here if anybody had the same problem as I have. But I guess I have to write my own small import script.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

If you know some PHP, that would be the easiest. You could have a look at our existimg importers like the phpbb importer or wordpress importer; they're not so hard to adapt.

I'm really sorry to hear that MT has such a bad support; sadly I myself don't do Perl applications, so I don't know how to bypass their limits...

If you come to build a MT DB importer, maybe you'd like to contribute your code so we can put it into our distribution?

Good luck,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
The Dom
Regular
Posts: 8
Joined: Fri Sep 23, 2005 3:22 pm

Post by The Dom »

I am currently writing one but it is too specific (only one author, applied to my categories,...) so it would not make much sense to add it to your distribution. And I am not interessted to write a "good" one because nobody has requested it yet...
The Dom
Regular
Posts: 8
Joined: Fri Sep 23, 2005 3:22 pm

Post by The Dom »

Ok, I have finished it :) Thanks for that great piece of software!

If anybody has the same problem as I had and is really in the need of a converter: Mail Me - thedom [at] thedom [dot] de
Post Reply