if you put it in the same folder as the import-mt.php script, that is, in the wp-admin folder, making that line
define(‘MTEXPORT’, ‘import.txt’);
that is, remove the / , that should work.
/ would mean that u are placing the file at the base folder. wp-admin is definitely not the base folder. as carthik said dont use any path and save the mt export file in the same folder as the import file.
also, make sure u exported mt file in a browser other than IE. IE has a bug with the default export.
Thread Starter
prince
(@prince)
Thanks for your reply!
Yes, I tried before
with / and then put it simply in the same folder
without /,
I WAS LOOKING HERE IN THE FILE import-mt.php
…
Look for the line that says:
define('MTEXPORT', 'import.txt');
and change it todefine('MTEXPORT', 'import.txt');
You have to do this manually for security reasons.
If you’ve done that and you’re all ready, let’s go!
…
that’s all I changed,
BUT IT WAS RIGHT IN THE VERY VERY FIRST LINE: inside this (‘MTEXPORT’,”)
<?php define(‘MTEXPORT’, ”); if (!file_exists(‘../wp-config.php’)) die(“There doesn’t seem to be a wp-config.php file.
….
THAT NEEDED TO BE CHANGED TOO :
<?php define(‘MTEXPORT’, ‘import.txt’);
if (!file_exists(‘../wp-config.php’)) die(“There doesn’t seem to be a wp-config.php file.
…
that made it work soooo EASY to get all my MT entries into WordPress!
Thanks again!
Thread Starter
prince
(@prince)
Yes, and I used Mozilla (Netscape) and used MT’s menu: import/export,
and copied the whole page into notepad and saved it as: import.txt
The rest is history -see above!
Hmm, probably the import-mt.php page could be more descriptive, but when I used it, it was pretty intuitive to add the file name/path where you said you added it. But yes, I can see how it could be confusing.
Thread Starter
prince
(@prince)
While the importing succeeded, I notice,
wherever I used a quotation mark like “word”
this shows up in WordPress as /”word/”,
and can/’t and don/’t, and what/’s today/’s date…the rest is fine.
What can I do to correct this and then re-import my MT file?
Thank you!
It’s the magic quotes problem I guess. The solution in this thread should work.
π
Thread Starter
prince
(@prince)
Now if this is the answer for importing,
what is the answer when this occurs when I type new text on my even NEWER weblog:
what\βs this? \”word\β? ?
Yes, I’ve installed another NEW weblog using a different prefix (‘b2_’)
but I have nothing imported nor will I …
Thread Starter
prince
(@prince)
Now do I have to uninstall both my wordpress blogs I have???
clean out mysql and so on?
both blogs show the same / with all the ‘s and the “word”
and in all url’s that came with the imported file…
I’ve checked in a new version of import-mt.php that should address these problems.
Thread Starter
prince
(@prince)
I have cleaned out mysql including MT and my two blogs of WordPress;
then I uploaded and re-installed wordpress into an empty mysql
but then I have used or better
re-used the notpad file of my MT import.txt…
(originally exported via Netscape from MT)
and it brought back all these slahes //
and then typing into WordPress brought them back too…
is this file ‘import.txt’ corrupted? and should not be used again?
Now I have cleaned out once more mysql and removed all wordpress files and
will now also remove them from my computer
and will download a fresh copy of WordPress and re-install it.
Can anyone tell me where the problem is
and if I can use that ‘import.txt’ after a fresh install ?
Thread Starter
prince
(@prince)
Fresh download, fresh install into an empty mysql
and guess what?
the slashes /”word/” what/’s etc/’s are still there…
now what?
uninstall and get the latest version of MT and forget about WordPress?
Thread Starter
prince
(@prince)
can I fix magic quotes myself via phpMyAdmin access?
Thread Starter
prince
(@prince)
“Here you can configure the most common settings of PHP such as register_globals and magic_quotes. You can also select a version of php for your site from the installed versions on the server.”
magic_quotes_runtime OFF
magic_quotes_gpc: ON
register_globals: ON
I changed ONLY the top to OFF
I hope this is right-
I uploaded yet another fresh copy and the slashes are gone !!!
I’m a little confused, is this working for you or not?