- Posts: 6
- Thank you received: 0
Kunena 6.1.3.2 Released
The Kunena team has announce the arrival of Kunena 6.1.3.2 [K 6.1.3] which is now available for download as a native Joomla extension for J! 4.2.x/4.3.x. This version addresses most of the issues that were discovered in K 6.1.0 and issues discovered during the last development stages of K 6.1
It is important to note that the Kunena team does not have a standard, recommended or supported protocol for these ideas and that posting questions in this category may not receive advice from team members.
Question [Solved] Migration phpbb3 to Kunena 5.0.14
I am trying to update a site by Joomla and the forum is based on phpBB3. I would like to use Kunena to be directly integrated with Joomla, but despite many searches on the internet and on this forum, I do not manage.
I would like to migrate the database from phpBB3 to Kunena 5.0.14 (or less if necessary) and when I find the script that needs to be used and I throw it in toad, I have huge errors that appear.
I also tried to install Kunena 2.0 but once installed it does not work.
I also read that Kunena imported phpBB easily. Is that true? Did I miss a simpler program?
Do you know a solution?
Thank you in advance.
Please Log in or Create an account to join the conversation.
I used this conversion script: github.com/mixerp/phpbb-to-kunena
I modified this script to add some smilies corrections. With this script userids for Joomla will change to phpBB userid.
Please Log in or Create an account to join the conversation.
From the first line, I get errors. I also have smiley errors but I don't think this is the most important.
How I proceed:
1-I downloaded the database from phpBB.
2-I installed a new Joomla with Kunena 5.1 with its language pack
3-I install and I open toad
4-I edit the script with the recommendations :
- Find and replace the token "phpbb_database_name" according to your setup. (the old phpbb)
- Find and replace the token "joomla_database_name" according to your setup. (the new joomla)
- Find and replace the token "jos_" to whatever prefix you have in your joomla installation. (the new extension of the new joomla)
4-I connect to my phpBB database
5-I open script and this is a copy of my mistakes (in red) :
...
...
SET alias = REPLACE(REPLACE(LCASE(REPLACE(CONVERT(TRIM(str) USING ascii), '?', '')),' ','-'), '&','and');
...
...
...
#quotation mark
IF INSTR( x , '"' )
THEN SET TextString = REPLACE(TextString, '"','"') ;
END IF ;
#period
IF INSTR( x , '.' )
THEN SET TextString = REPLACE(TextString, '.','.') ;
END IF ;
...
...
...
IF(p_id <> 0) THEN
SELECT
concat(alias, '-', teamno10forum.get_alias(teamno10forum.HTML_UnEncode(forum_name)))
...
...
...
BEGIN
DECLARE str text;
set str = message;
set str = replace(str, '<a class="postlink" href="', '[url=');
set str = replace(str, '">', ']');
set str = replace(str, '</a>', '[/url]');
...
...
SET tag_pos = INSTR(str, CONCAT('', tag_name));
SET pos = LOCATE(']', str, tag_pos);
SET str = REPLACE(str, pattern, CONCAT(pattern, ' post="', post_id, '"'));
...
...
...
IF(msg LIKE '%<a%>%</a>%') THEN
SET msg = teamno10forum.fix_url(msg);
END IF;
IF(msg LIKE '%[code%') THEN
SET msg = teamno10forum.fix_tag(msg, 'code');
END IF;
IF(msg LIKE '%[b%') THEN
SET msg = teamno10forum.fix_tag(msg, 'b');
END IF;
IF(msg LIKE '%[img%') THEN
SET msg = teamno10forum.fix_tag(msg, 'img');
END IF;
IF(msg LIKE '%[quote%') THEN
SET msg = teamno10forum.fix_tag(msg, 'quote');
END IF;
SET @sql = concat('ALTER TABLE ', schemaname, '.', tablename, ' ADD ', columnname, ' ', datatype, ';');
PREPARE stmt FROM @sql;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
...
...
...
CALL teamno10forum.create_missing_columns('teamno10forum', 'phpbb_users', 'user_from', 'varchar(256)');
...
...
...
DELETE FROM test_kunena.qb9ug_kunena_messages_text;
DELETE FROM test_kunena.qb9ug_kunena_messages;
DELETE FROM test_kunena.qb9ug_kunena_topics;
DELETE FROM test_kunena.qb9ug_kunena_aliases;
DELETE FROM test_kunena.qb9ug_kunena_categories;
DELETE FROM test_kunena.qb9ug_kunena_attachments;
DELETE FROM test_kunena.qb9ug_kunena_users;
DELETE FROM test_kunena.qb9ug_kunena_ranks;
DELETE FROM test_kunena.qb9ug_user_usergroup_map;
DELETE FROM test_kunena.qb9ug_users;
INSERT INTO test_kunena.qb9ug_users(name, username,password,params) VALUES ('Admin', 'mixerp','d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199', '');
INSERT INTO test_kunena.qb9ug_user_usergroup_map(user_id, group_id) VALUES (LAST_INSERT_ID(),'8');
...
...
SELECT
forum_id,
parent_id,
REPLACE(forum_name, '&', '&'),
teamno10forum.get_forum_alias(forum_id) AS alias,
1 AS icon_id,
0 AS locked,
'test_kunena.level' AS accesstype,
1 AS access,
1 AS pub_access,
1 AS pub_recurse,
8 AS admin_access,
1 AS admin_recurse,
left_id AS ordering,
1 AS published,
0 AS checked_out,
'0000-00-00 00:00:00' AS checked_out_time,
0 AS review,
0 AS allow_anonymous,
0 AS post_anonymous,
0 AS hits,
forum_desc,
'' AS headerdesc,
'' AS class_sfx,
1 AS allow_polls,
'lastpost' AS topic_ordering,
forum_topics AS forum_topics,
forum_posts AS forum_posts,
teamno10forum.get_topic_id(forum_last_post_id) AS last_topic_id,
forum_last_post_id,
forum_last_post_time,
'{}' AS params
FROM teamno10forum.phpbb_forums
ORDER BY forum_id;
INSERT INTO test_kunena.qb9ug_kunena_aliases(alias, type, item, state)
SELECT alias, 'catid', id, 0
FROM test_kunena.qb9ug_kunena_categories;
...
...
...
SELECT
attach_id AS id,
post_msg_id AS mesid,
poster_id AS userid,
md5(physical_filename) AS hash,
filesize AS size,
'media/kunena/attachments/migrated' AS folder,
mimetype AS filetype,
CONCAT(physical_filename, '.jpg') AS filename
FROM teamno10forum.phpbb_attachments;
/*
The user_id->1 means "Anonymous" user in default phpBB installation.
Kunena, on the other hand, wants user_id->0 for Guest posts.
*/
UPDATE test_kunena.qb9ug_kunena_messages SET userid=0 WHERE userid=1;
UPDATE test_kunena.qb9ug_kunena_messages
INNER JOIN teamno10forum.phpbb_posts
ON teamno10forum.phpbb_posts.post_id = test_kunena.qb9ug_kunena_messages.id
SET test_kunena.qb9ug_kunena_messages.name = teamno10forum.phpbb_posts.post_username;
/*********************************************
Data migration is complete.
**********************************************/
UPDATE test_kunena.qb9ug_kunena_categories
SET numTopics = test_kunena.count_topics(id);
UPDATE test_kunena.qb9ug_kunena_categories
SET numPosts = test_kunena.count_category_posts(id);
UPDATE test_kunena.qb9ug_kunena_topics
SET test_kunena.qb9ug_kunena_topics.posts = test_kunena.count_posts(id);
/*********************************************
Statistics recounted.
**********************************************/
UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- m -->', '');
/*********************************************
Convert Emoticons to Kunena
**********************************************/
UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- s:-) --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="


UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt="


...
...
...
I cut a lot of passage and errors and I did not put any errors that appear otherwise there would be several pages. Sorry if that didn't understand.
It's normal to have too many errors.
Yet even working locally, I should not have so many mistakes.
Should I also import the old Joomla? Yet Joomla EET phpBB was not bridged.
Is there a tutorial to correct errors?
For smileys, I change the names, the path, the abbreviations but I always have errors...
I do not see what to change because I am a novice in this area...
Please Log in or Create an account to join the conversation.
mixerp.org/forums/category/phpbb-to-kunena-migration-forum
Please Log in or Create an account to join the conversation.
I think that my database is corrupted...

Please Log in or Create an account to join the conversation.
www.a2hosting.com/kb/cpanel/cpanel-datab...ases-with-phpmyadmin
Please Log in or Create an account to join the conversation.
Downloading the database, I was missing 10 tables including the users table...
Now, I can run the script and I want to migrate the database. But there's still 2 errors (I didn't realize the Red system errors):
line 984: Lookup Error - MySQL Database Error: Unknown column 'msn' in 'field list'
line 1140: Lookup Error - MySQL Database Error: Duplicate entry 'web-media' for key 'aliases'
Once migrated, I go to the site to test. The statistics appear, but not the topics or messages. I want to go in the administration of joomla, my IDs and passwords no longer work.
Look in the users table, all users are present, but most Super Admin, or Admin, mixerp which was to create...
I think I'll put the creation command to to Amin, mixerp at the end...
Please Log in or Create an account to join the conversation.
Note: log in in administration with username: mixerp and password secret.
When in admin you can change back to your nomal superuser.
Please Log in or Create an account to join the conversation.
Copy your attachments from phpBB to:
media/kunena/attachments/migrated/
They have no image extension, so from a command window in that folder make the command:
ren *.* *.jpg
Then they all become jpg-files.
Copy avatars from phpBB3 to
media/kunena/gallery
I copied members personal avatars to:
media/kunena/gallery/members
I did that as avatars settings are lost in the conversion and personal avatars, must be possible to choose for members.
Then copy your rank images from phpBB3 to Kunena.
media/kunena/ranks
Then copy smilies from phpBB3 to Kunena:
media/kunena/emoticons
In Kunena administration check ranks and smilies. If you are going to use phpBB 3 smilies you have to add them in smilies administration.
Please Log in or Create an account to join the conversation.
I finally managed to migrate my database and enter the back office of my site.
I also reactivate the categories that were hidden. They appear now. More than a few tweaks to do.
After the migration, all visible posts are written in raw HTML and we see the code. Even by changing the Joomla editor, nothing changes. I think it comes from migration. All the codes appear instead of loading the format.
Please Log in or Create an account to join the conversation.