Importing from b2?
-
All right; I’ve read the readme file and am still unsure of how to import my b2 archives. I currently have b2 installed in its own database and in the root directory of my domain. I’d like my wordpress files to also reside in the root directory; will that cause any problems with importing b2? And is there something I need to know about that databases? I’m fine with installing the script itself; it’s just this importing that I’m unsure about. Any help would be greatly appreciated.
-
One way to do this would be to start with WordPress in a directory of it’s own.
Do the import, get everything looking just fine, then move it to root.
You could double post to each blog for the short time it took if you wanted, and you have the advantage of keeping any ‘issues’ away from the public view π1. I’ve backed up my database (my entire site, actually).
2. I’ve editied my b2 template quite a bit.
3. There’s one hack installed – a comment plugger. In order to get that working, I uploaded an additional PHP file and editied b2header.php and b2-include/b2menutop.php, both which I can easily remove and revert back to their original state.
—
I’ve uploaded b2 to its separate directory as you suggested and ran the import just to test it out, and got a huge string of errors on the third step: (it didn’t work π – but my b2 files seem to be intact)
Database error: [Duplicate column name ‘post_excerpt’]
ALTER TABLE wp_posts ADD COLUMN post_excerpt text NOT NULL;
Database error: [Duplicate column name ‘post_status’]
ALTER TABLE wp_posts ADD post_status ENUM(‘publish’,’draft’,’private’) NOT NULL, ADD comment_status ENUM(‘open’,’closed’) NOT NULL, ADD ping_status ENUM(‘open’,’closed’) NOT NULL, ADD post_password varchar(20) NOT NULL;
That went well! Now let’s clean up the b2 database structure a bit…
Database error: [Can’t DROP ‘ID’. Check that column/key exists]
ALTER TABLE wp_posts DROP INDEX ID
One down, two to go…
Database error: [Table ‘thoughtf_word.wp_settings’ doesn’t exist]
ALTER TABLE wp_settings DROP INDEX ID
So far so good.
Database error: [Can’t DROP ‘post_karma’. Check that column/key exists]
ALTER TABLE wp_posts DROP post_karma
Almost there…
Database error: [Can’t DROP ‘ID’. Check that column/key exists]
ALTER TABLE wp_users DROP INDEX IDI’m getting a similar issue trying to import files from b2 to WordPress. I’ve got things set up properly after running install.php, such that I’ve got a usable, albeit separate, instance of WordPress from my b2 data and document root. Running the import-b2.php script, step 1 seems to work, but step 2 has numerous errors. My existing site is available at http://blog.netho.net/ for anyone who wishes to give it a look. Thanks.
[output from step 2 below]
First weΓ’β¬β’re going to add excerpt, post, and password functionality…
Database error: [Duplicate column name ‘post_excerpt’]
ALTER TABLE wp_posts ADD COLUMN post_excerpt text NOT NULL;
Database error: [Duplicate column name ‘post_status’]
ALTER TABLE wp_posts ADD post_status ENUM(‘publish’,’draft’,’private’) NOT NULL, ADD comment_status ENUM(‘open’,’closed’) NOT NULL, ADD ping_status ENUM(‘open’,’closed’) NOT NULL, ADD post_password varchar(20) NOT NULL;
That went well! Now let’s clean up the b2 database structure a bit…
Database error: [Can’t DROP ‘ID’. Check that column/key exists]
ALTER TABLE wp_posts DROP INDEX ID
One down, two to go…
Database error: [Table ‘b2.wp_settings’ doesn’t exist]
ALTER TABLE wp_settings DROP INDEX ID
So far so good.
Database error: [Can’t DROP ‘post_karma’. Check that column/key exists]
ALTER TABLE wp_posts DROP post_karma
Almost there…
Database error: [Can’t DROP ‘ID’. Check that column/key exists]
ALTER TABLE wp_users DROP INDEX IDThis link might help – http://www.wild-mind.net/index.php?p=51
I tried that link, and I’m still getting errors… I have no clue what I’m doing wrong because I followed the instructions π
BTW – I’m getting the same errors as Aredubya listed above.
I figured it out… if anyone else has problems, I could probably walk them through.
Babs, did you install WP into the same database as b2? Then run the SQL query in phpmyadmin? Then run the import-b2.php?
all, I think I’m running into similar problems importing B2… can anyone help? I have b2 and wordpress in separate databases. I run the import-b2.php file and it seems all good, gives me the same errors in step 2 which I was led to believe I can ignore, and gives me the “welcome to the family” link… I click on that, it takes me to my admin interface and there’s no sign of my posts having been migrated in.
I’m kind of new to this, but I’ve gone through this frontwards and backwards and can’t find the problem.
Thanks!
Could you try contacting Bubs (above) since he/she has offered to help? I will, if nothing else works out for you. Email me at carthik at gmail dot com. I am busy right now, but I could find some time, I guess.
thanks for the offer… i “figured it out” more or less.
cheers.
hi all, i have made script for converting b2 to WordPress (posts, categories, comments). Many of you here were having problems with original script, which wasnt working (and no respond from the creators of the WordPress of course), so this should solve your problem. You can download it at http://www.czhannes.com/b2_wordpress_import.rar . Upload it to folder /wp-admin/ on your server, open in browser and read the instructions…
Hannes
The topic ‘Importing from b2?’ is closed to new replies.