• Some users [including yours truly] have been wondering how to import old Greymatter entries into WP.
    Careful readers will note that WP 0.72 Gold has gm-2-b2.php back in the mix.
    *IF* you have the guts and patience to do it right, here’s how to go about it:
    Grab a copy of b2 and install it.
    Run gm-2-b2.php in b2.
    Run an ALTER TABLE session with the five b2 tables, renaming them to wp_$tablename before starting. [e.g. ALTER TABLE b2categeories RENAME wp_categories;] The b2-2-wp.php upgrade script is not currently noticing and renaming those tables properly, but if you go in and make that change yourself, it’ll be happy.
    Grab a copy of WP 0.72 and install it.
    Run the b2-2-wp.php conversion script.
    Delete b2, as you simply used it as a stepping stone.
    Last step to make you happier [although this is really only applicable for one-poster logs]: run UPDATE wp_posts SET post_author=1 to change all posts to your admin account. You can then delete any users that b2’s GM-conversion script had created, as this has consolidated everything into one account for you. If you have multiple loggers that you’re trying to get, you probably want to go in and run something like:
    UPDATE wp_posts SET post_author=M WHERE post_author=N
    … where M is the old GM author and N is the desired author’s number. [If you have more than one GM log to import, you’ll want to do this.]
    This all seems like a long process, but from grabbing b2 to clearing running UPDATE wp_posts … last night, I spent all of 25 minutes importing 990 GM posts. Worth it to me!

Viewing 12 replies - 16 through 27 (of 27 total)
  • Maybe nothing. Do you see any problem with the way your blog is working? If not, maybe it was a spurious error.

    BTW, the redirects were 301 not 302.

    This may seem like a really stupid question, but I’m a complete newbie to all this. In the instructions it says if I want to convert my old GM author to the new WP author, I need to run “UPDATE wp_posts SET post_author=1” – where do I run this? Obviously not start/run ??
    Thanks in advance,
    Andr??

    I have run the import feature from WP 1.2 the file is named “import-greymatter.php”.
    After running this import, I get the following report:
    =================
    The importer is running…
    importing users…
    user skebrown… Done
    Done
    importing posts, comments, and karma…
    Done
    Completed GM 2 b2 import !
    =======================
    However, the import does not seem to have worked because there are no entries in the DB.
    Could it be that I have tried this import after I have been using the WP install for a while? What I mean is, I did not do an immediate import after the initial install of WP. I have been using WP for about a year now and suddenly decided that the new version of WP (1.2) makes it easier to do an import, so I tried it. But this may be why it is not importing entries? The report says everything was imported?
    What could the problem be?
    Any help on this would be greatly appreciated.

    skebrown, if you are still working on this, are you sure that you followed all the steps? Did you try to run the whole process again, starting from scratch?

    I have tried several times to get it to work even using nightly builds just to make sure it wasn’t something funky with a version that I had.
    I have checked my server to make sure that I can run cgi scripts outside of the cgi-bin (yes I can), thinking that this may be the problem (not sure if it even matters?). The script still gives me the message that everything works and was imported, but it isn’t there.
    I thought I would wait for the next release and try again. However, not sure if that really matters either since I have been trying different builds of the “import-greymatter.php” file — which is probably going to be included in the next release without further modification, but who know’s.

    z

    Ok, so I imported all of my Greymatter entries… about 107 of them and almost every ” or . has been changed to a ?. Any ideas on how to fix that?
    Thanks.
    – jason

    if i import my greymatter files to wordpress and have already designed a template for my wordpress page, will it restart me with the beginning template or not change my template at all?

    thanks.

    The import will put just your data (= posts and comments) into the database; it will not affect your design/theme.

    thank you, thank you!

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Greymatter Import’ is closed to new replies.