WordPress to b2evolution import script
Here's my import script which I used to convert this blog from WordPress 2.3 to b2evolution 2.0.1-alpha. The attached file has instructions on how to convert your blog. I strong recommend that you peruse the README file before using it. This works only with WordPress 2.3 and not versions below it. If you have an older WordPress blog, please upgrade first to 2.3 before importing.
I have enjoyed using b2evolution so far as it's much more configurable than WordPress (in the admin interface) and it's more like a CMS than a blog. However, you can check for yourself. This importer does not touch your existing WordPress installation, so there is no harm in testing it out.
You can ask questions and provide your feedback here! I would appreciate it.
Download link: wp_2_b2evolution.zip (6.6 kB)
27 comments
Say, my question is. how does b2ev differs from WordPress MU? I would like to be bale to have Multi Blog but was having problem with subdomins and wordpress MU.
Thanks again for the script!
I'm sure you can set up multi-blogging with subdomains in b2evolution as well but I haven't tried it myself.
Any feedback would be appreciated. Thanks
It's also not got the most configurable backend. A lot of WP features are hidden in PHP template code. It's not the cleanest blogging system around.
Only one issue I have with it (and maybe you can help me solve it).
I run a blog in Wordpress that has a lot of Romania characters (such as ăîâţş). The converter did not convert these characters (are replaced with "?"). Any idea what can I do to import the romanian characters/ Should I change something in the database?
Thanks
Search for the script in forums.b2evolution.net
This issue can only be resolved permanently if the b2evo developers make UTF-8 the default charset and connection settings.
It worked well with the info on b2evolution forum on how to change to utf-8 (I only had to edit a php file, the database was already converted tu utf-8).
Now, I tried several time to convert a blog from WP and it works fine up to comments - it cannot convert the comments, for some reasons. It converts about 10 comments and it stops. Any idea? What kind of info do you need?
By the way how many comments do you have? Is the script getting timed out on your server? Do you get any other error messages?
There are about 1,100 comments; I wouldn't think it gets timed out, it takes less than other scripts I might run (restoring a database let's say) - it takes about, say, 10 seconds.
Reading: La métaphysique du moi
Notice: Undefined offset: 0 in /inc/tools/wpimport.ctrl.php on line 293
Posts and post categories imported successfully!
Trying to import comments
Comment importing failed. Please check your b2evolution installation.
Line 293 is the one after " // query to insert the posts into the b2evolution table"
Try this: take a back up of your WP database. Then just delete the single comment at which you are getting this error and try again. You said your were about to import about 10 comments before the problem occured. You might be able to find out exactly what in that comment causes the issue.
Otherwise I don't know. I need the data to debug the problem and help you resolve the problem.
Thanks again
If you find any particular character in the comment record which has interfered with the query, let me know. I think you should have imported the data first before converting to b2evolution to Unicode. Also what is your version of MySQL and PHP?
(on phpMyAdmin i have this message, though, Your PHP MySQL library version 5.0.32 differs from your MySQL server version 4.1.11. This may cause unpredictable behavior, but I don't have other problems)
The data base is already UTF-8
The posts were all imported, with the correct characters (after doing the changes suggested here http://forums.b2evolution.net/viewtopic.php?t=10992
See if it is related to MySQL. By the way, did you get it working?
I am running the blogs on my university's server (I am a student, and we have some webspace alloted), so I cannot test it somewhere else.
I'll try again as soon as possible and let you know.
Then again, the b2evolution database might also have changed.