Import Posts from B2 Evolution  

Post Categories   Post Time 3 years, 7 months ago

When moving from an older blog system to a new one, it is usually the case that you want to import all the posts and categories from the old blog into the new one. The purpose of this tutorial is to show how to import posts etc from a b2evolution system, to your new Wordpress installation.

I have modified a script originally written by Farook, and I take no credit for the work on this. I have simply altered it to work with the release of B2Evo I was working with. If it doesn’t work for you, please contact me with any error message you recieve and I’ll do my best to help.

Ensure your current B2Evolution installation is working correctly, and then upload the script to your wordpress directory. Run the script, and follow the instructions which Farook placed in there, and go ahead to import the data.

Please Note: Do not create the same categories you did in your B2Evo install before running the script, because the script will try to create them again, and fail with an error message

Download Script

Post Tags , ,



31 Responses to “Import Posts from B2 Evolution”

  1. Giles Says:

    Yeh I tried it … and I got an error about an unknown field ..

    No posts seem to have been imported nor do any users (but i am the only user really)

    any help would be appreciated.

  2. Cara Says:

    I just run the script. Imported from b2evolution ‘Paris’ version into WordPress 1.5. It worked.
    I have multiblogs in b2evo, but it seems like the script will just import all posts in the database regardless of which blog you have choosed.
    That’s okay for me. I’m new to WordPress and need sometimes to explore WordPress’s functions to see if it suits me.

    Thank you for providing the script.

    Cheers

  3. Giles Says:

    good to know cara … i was doing from copenhagen .. i’ll upgrade to paris .. and see what happens ;)

  4. Giles Says:

    nope i still get the same error .. i don’t get that i upgraded to Paris and it still doesn’t work :(

  5. Cara Says:

    Giles, after i run the php script, this was what i get:-

    All right sparky, this is where the actual import takes place! Do you feel lucky today? :p
    Importing User records …
    0 User record(s) imported!
    Importing Category records …
    18 Category record(s) imported!
    Importing Entry records …
    INSERT INTO `wp_posts` (`post_author`,`post_date`,`post_content`,`post_title`,`post_category`)
    VALUES [whatever my posts] then done.

    I’m the only user for my b2evo blogs also, but i have created another user name but both in Administrator status.

    As from the error, it shows that the script is trying to import user data. Are you sure you have no other user deatils in your database? (My case is ‘0 User record(s) imported!’ since i have no other user in other user groups except Administrator).
    Either that or the unknown column in your database’s tables causes the error.

    Sorry i can’t help.

  6. David Appleyard Says:

    Anyone who can’t get this to work, try this new script here:

    http://www.khubla.com/b2evo2wp.php.txt

    You might have more luck

  7. Giles Says:

    wicked that new one worked a whole bunch better !!

  8. .rp Says:

    hi. when i convert it works fine, but russian characters bocome:
    ????? ????? ????? ??? ??? ? ? ?? ????
    what can i do to fix it?
    thnx

  9. David Appleyard Says:

    Sorry - I really have no idea!

  10. La Bouilloire Magique » Blog Archive » Pourquoi ? Oui pourquoi ? Says:

    […] 217;un vers l’autre sans tout casser. Merci donc ‡ Farook et David Appleyard pour ce script qui marche du feu de Dieu. Je ne reviendrai pas sur l’installation de Wordpress qui ne m&#821 […]

  11. O.F. Jay Says:

    Thank you for this script, it looks really promising however slap me silly for this “first things first” question, I do have to have wordpress installed and running first *before* I even attempt this, ya? I mean, it looks like it skims the info off the DB instead of a text file a la blogger/mt import.

  12. Michael Rodriguez-Torrent Says:

    Yes, you need to have WP installed first. I am currently doing rewrites on the script, including proper checking for a WP install. I hope to have it finished and posted by the end of the day.

  13. Michael Rodriguez-Torrent Says:

    Okay, I’ve finished hacking the updated khubla.com version of the script and have made the following changes:
    - Now checks for WordPress install and loads DB info automatically: no more step 2!
    - Inserts post_name data so that permalinks on imported posts will work.
    - Cleaned up coding style and switched to WP functions wherever possible (i.e. for string sanitizing and db operations).
    - Trimmed out about 100 lines of code.

    http://themikecam.com/downloads/import-b2evolution.php.txt (rename to .php, of course)
    Simply upload to your wp-admin folder and run.

    I’ve tested it on my own b2evo blog, but I’d welcome further testing and would be willing to fix any bugs that arise.

    Here’s the unified diff if anyone’s interested: http://themikecam.com/downloads/import-b2evolution.diff.txt

  14. Mackster Says:

    Michael, your script ran well except that the comments portion did not get imported in although it said that it had imported it. Any ideas how to go about it? I looked at the wp_comments table and its empty. How should I import it?

  15. Diether Says:

    buy phentermine online

  16. John Says:

    Invalid query: Unknown column ‘dateYMDhour’ in ‘field list’

    I got this error - so i looked at the wp_users table and did not see a this field. Any ideas?

    Thanks!

  17. Michael Rodriguez-Torrent Says:

    Someone else has made some changes/updates to the script, but I think it should be stable and working at the moment, and I should hopefully always have the latest version on my site so please try that if you previously experienced any problems. Also, I don’t really check this post at all, so please e-mail me or contact me through my site if you have a question/comment.

    Michael

  18. All Event Seats Theater Tickets Says:

    I really enjoyed reading your blog.

  19. kredieten Says:

    Hi, I think you are totally right. Great! - :) Susan.

  20. Adobe Acrabat Says:

    Hello and congratulations! I’m impressed by this blog. I was searching the web and found your entry “Import Posts from B2 Evolution “. I am looking to publish a comprehensive site reviewing many different articles and blogs. Feel free to visit my Adobe Acrabat sit and add anything your want.

  21. geldlening Says:

    Hi, Do you think I could get such a blog? Susan.

  22. Leander Kahney Says:

    Does your script require users to install Wordpress in the same database as B2Evolution — like this other import script:

    http://themikecam.com/downloads/import-b2evolution.php.txt

  23. dating married women maryland delaware Says:

    dating married women maryland delawaredating married women maryland delaware

  24. melle Says:

    Hey David,
    Your script works fine up until step 2. At that point I receive the following error:

    ———————————-
    Importing User records …
    Invalid query:
    SQL : SELECT DISTINCT evo_users.* FROM evo_users, evo_posts WHERE evo_users.`ID`=`post_author` AND `user_login`’admin’
    ———————————-

    Do you - maybe - know what this error means and how we can resolve it? that would be GREAT! :)
    Hoping to hear from you,

    Cheers,
    Melle.

  25. sergio lima Says:

    Hi

    I try use the script anda ui receive:

    Importing User records …
    Invalid query:
    SQL : SELECT DISTINCT evo_users.* FROM evo_users, evo_posts WHERE evo_users.`ID`=`post_author` AND `user_login`’admin’

    Do you - maybe - know what this error means and how we can resolve it? that would be GREAT! :)
    Hoping to hear from you,

    thanks

    Sergio Lima

  26. Fetish Web Cam Says:

    Fetish Web CamFetish chat greenish fetish chat fetish web cam muscle-shaping fetish web cam free fetish chat isolationistic free fetish chat.

  27. girl indian photos Says:

    ute indian tribeanime demons stocking 01 dads rape girls

  28. Jens Geiregat Says:

    To all people getting the
    ——
    Invalid query:
    SQL : SELECT DISTINCT evo_users.* FROM evo_users, evo_posts WHERE evo_users.`ID`=`post_author` AND `user_login`’admin’
    ——
    errors, I adapted the script from this page to convert from b2evolution 1.8.6 to WordPress 2.1. Check out
    http://blog.realnitro.be/2007/02/21/convert-a-b2evolution-blog-to-wordpress/

  29. Tyler Merchant Says:

    Rose Pop trio Atomic Kitten will reform to play a concert in support of jailed Liverpool football fan Michael Shields.

  30. Gabriel Freund Says:

    Segura Social networking site MySpace is to block users from uploading copyrighted music to its pages.

  31. Gabriel Freund Says:

    Segura Social networking site MySpace is to block users from uploading copyrighted music to its pages.

Leave a Reply