Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Movable Type Import 0.4
So far so good.
Compare:
SunHELP: http://www.sunhelp.org (still MT-based)
to
test site: http://txp.mrbill.net
Works good enough for me. You might want to look at having a script that will import from MT’s text-file-export format as well, for people who arent using MySQL with MT.
Offline
Re: Movable Type Import 0.4
Awesome! Dean, as the kids like to say these days, you rule.
As others have reported, it didn’t catch my categories (though it did get a couple of scattered entries, oddly enough), and a few characters came across as a bit wonky. But my txp blog doesn’t look all empty anymore!
After taking a longer tour through the converted entries, I’ve noticed that a handful of my MT entries simply weren’t converted. Two of them were full of images, but another was just text. I’m not sure if there’s any rhyme or reason behind it. Three of the non-converted entries are here, here, and here, just in case anybody is curious. Without a complete survey of my MT blog, it doesn’t look like any entries with images were converted successfully.
Out of curiosity: If a newer version of txp_mt_import does correct the current conversion glitches, am I just out of luck, or can I run it again without creating all sorts of unwanted outcomes? (Perhaps after mass-deleting the original batch of converted entries? I imagine there is sql magic that would help me do that.)
Last edited by schussat (2004-03-01 00:27:07)
-Alan
Offline
Re: Movable Type Import 0.4
Oh, man. Try contacting your host to see if they have a backup. I’ve done stuff like that – it sucks.
Offline
Re: Movable Type Import 0.4
text*
Offline
Re: Movable Type Import 0.4
Just testing the 0.4 version of the nifty import script on my local machine which also has a couple MT test blogs on it… and I’m just recording a couple observations here. Happy to test this repeatedly if it’s any help. Otherwise I can wait. :-)
It quite happily imported the first 174 entries, but then spat the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in /Users/alan/Sites/txp/textpattern/lib/classTextile.php on line 769
Also, all the imported postings arrived with Comments “off” by default, even though I have both “Accept Comments” and “On by Default” checked to “Yes” in txp prefs.
Alan Macdougall — http://halfpie.net/
Offline
Re: Movable Type Import 0.4
I got the same “maximum execution time” error and worked around it as follows:
1. Export MT database into .sql text file
2. Create brand new database called “mtdump”
3. Import .sql text file into database
4. Run import script using “mtdump” as source DB
5. Run into “maximum execution time” error, somewhere in the middle of importing entries
6. Delete all rows from mt_entry table in “mtdump” database up to the point where the error occurred. I did this by hand, checking the boxes in phpMyAdmin. The import script does not import in ID order! sorting by ID won’t help!
7. Run import script again.
I got all the way through it the second time, but you perceive that you can loop through steps 5-7 as needed.
——Ne omnes errabundi perditi sunt.——
Offline
Re: Movable Type Import 0.4
Fatal error: Maximum execution time of 30 seconds exceeded in /Users/alan/Sites/txp/textpattern/lib/classTextile.php on line 769
You can extend the maximum runtime of the script by a call to
set_time_limit(<new time in seconds>);
For example, adding set_time_limit(300); to allow the script to run for 5 minutes without timing out. The option can also be set globally in php.ini as max_execution_time.
Last edited by froehle (2004-03-03 03:10:24)
Offline
Re: Movable Type Import 0.4
Any way this script could be modified to support the import of a hosted MT database into a private (local) database? I tried this script on a couple of machines but keep getting a permissions error because the script is trying to login as “login@my_isp-appended_domain_name”, instead of just “login”, which is what I have entered in the script variable.
Offline
Re: Movable Type Import 0.4
> rpg wrote:
> Any way this script could be modified to support the import of a hosted MT database into a private (local) database? I tried this script on a couple of machines but keep getting a permissions error because the script is trying to login as “login@my_isp-appended_domain_name”, instead of just “login”, which is what I have entered in the script variable.
You’re probably getting a permission denied error because you can’t login remotely to your ISP’s database. MySQL allows for control over which hosts can login, in addition to the users. When it gives you an error it displays it in user@host format though.
For example if I go to the command prompt and type
$mysql -u mt
ERROR 1045: Access denied for user: ‘mt@localhost’ (Using password: NO)
It’s clear that the error message is of the form user@host.
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 luck!
Offline