Converting from IPB 3.4

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
LookedPath
Registered User
Posts: 10
Joined: Mon Jan 22, 2018 2:00 pm

Re: Converting from IPB 3.4

Post by LookedPath » Tue Jan 23, 2018 8:57 pm

JoshyPHP wrote:
Tue Jan 23, 2018 8:02 pm
If you didn't run the reparser in command line, it takes a while to convert everything in the background. It works in reverse chronological order so the most recent posts should get reparsed first.
I ran the reparser from the CLI so I know for sure that it completed its work.

User avatar
JoshyPHP
Code Contributor
Posts: 972
Joined: Mon Jul 11, 2011 12:28 am

Re: Converting from IPB 3.4

Post by JoshyPHP » Tue Jan 23, 2018 9:18 pm

If you're using the reparser from CLI, you may try applying this change to your install before reparsing.
I wrote the thing that does BBCodes in 3.2.

LookedPath
Registered User
Posts: 10
Joined: Mon Jan 22, 2018 2:00 pm

Re: Converting from IPB 3.4

Post by LookedPath » Tue Jan 23, 2018 10:51 pm

JoshyPHP wrote:
Tue Jan 23, 2018 9:18 pm
If you're using the reparser from CLI, you may try applying this change to your install before reparsing.
This seems to have resolved my problem :o
Thank you very much to bot you and Ger for helping me on resolving the problem but can you explain me the logic behind those modifications please?

User avatar
aeolustw
Registered User
Posts: 12
Joined: Thu Apr 05, 2012 6:04 am
Location: Taiwan

Re: Converting from IPB 3.4

Post by aeolustw » Tue Oct 09, 2018 5:14 am

Hi,Ger
Thanks for your sharing code.
I download the ZIP file.

My phpbb forum's environment:
OS: Debian 7.x (Linux 3.2.0-4-amd64)
MySQL: 5.5.44
PHP:PHP 5.4.41

phpBB: 3.2.2
IPB: 3.4.6

After fresh installed phpBB 3.2.2 and your convertor to convert IPB 3.4.6, I got two error during the process.

1.
: 28932 Message parser error:
You may only use fonts up to size 200.
In /var/www/phpbb322a/install/convertors/functions_ipb34.php on line 1046
Step 14 of 26

2.
Error while processing INSERT query.
In /var/www/phpbb322a/install/convert/convertor.php on line 778
SQL: INSERT IGNORE INTO phpbb_users (user_id,...etc)
...
...
etc

And i check the SQL Data :
phpbb_users => It had only 52 , nobody converted from IPB database.
phpbb_posts > post_text => the Chinese character shown not correctly > ––°å¹´åˆ°å“©,,,新版的論壇程式,,冬晨沉浸了將近一個月
phpbb_posts > post_subject => these [!!!...........^_^!!!...] convrt to [#33;!!...........^_^!!!...]

What can i do? Please give me a hint.
Thanks.

User avatar
Ger
Recognised Extension Developer
Posts: 1792
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: Converting from IPB 3.4

Post by Ger » Tue Oct 09, 2018 9:56 am

aeolustw wrote:
Tue Oct 09, 2018 5:14 am
After fresh installed phpBB 3.2.2 and your convertor to convert IPB 3.4.6
This is the first issue. The convertor I used as a base was intended for phpBB 3.0.12. So you need to install 3.0.12 and then convert and afterwards update your board to 3.2
This is the more expanded version of the steps to follow.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

User avatar
aeolustw
Registered User
Posts: 12
Joined: Thu Apr 05, 2012 6:04 am
Location: Taiwan

Re: Converting from IPB 3.4

Post by aeolustw » Wed Oct 10, 2018 9:39 am

Hi,Ger:
Thanks foy your reply.
I tried what you said and this too.

After converting IPB 3.4.6 to phpBB 3.0.12 , i got one error:
Installation error
functions_ipb34.php [ 1007 ]:
Post ID: Message parser error:
You may only use fonts up to size 200.
Step 15 of 29
And the phpbb_users only have 780 converted from IPB 3.4.6 ibf_members that have 1724.

Thanks.

User avatar
Ger
Recognised Extension Developer
Posts: 1792
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: Converting from IPB 3.4

Post by Ger » Wed Oct 10, 2018 11:50 am

To fix the size error, you should add the following code after this line:

Code: Select all

$size = ($size > 200) ? 200 : $size;
About the Chinese characters: IIRC I've hardcoded the convertor to migrate from ISO-8859 to UTF-8 since that way I could skip a lot of sniffing, gaining performance for my board. You can search the convertor code to look for utf8_encode and replace that with phpbb_set_encoding, I think that would solve some issues.


Please note: I've only shared my code as an inspiration to others. It's tailored to my specific situation to convert a very big Dutch board with some specific issues. I've cut several corners to speed up the process. No one should expect it to work without proper investigation to their specific situation.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

User avatar
aeolustw
Registered User
Posts: 12
Joined: Thu Apr 05, 2012 6:04 am
Location: Taiwan

Re: Converting from IPB 3.4

Post by aeolustw » Wed Oct 10, 2018 1:47 pm

Ger wrote:
Wed Oct 10, 2018 11:50 am
To fix the size error, you should add the following code after this line:

Code: Select all

$size = ($size > 200) ? 200 : $size;
About the Chinese characters: IIRC I've hardcoded the convertor to migrate from ISO-8859 to UTF-8 since that way I could skip a lot of sniffing, gaining performance for my board. You can search the convertor code to look for utf8_encode and replace that with phpbb_set_encoding, I think that would solve some issues.


Please note: I've only shared my code as an inspiration to others. It's tailored to my specific situation to convert a very big Dutch board with some specific issues. I've cut several corners to speed up the process. No one should expect it to work without proper investigation to their specific situation.
After add the code , it fixed the size error.
I used these zip files to convert, the Chinese characters are ok now.
The codes are all phpbb_set_encoding not utf8_encode.

My remaining issue is:
The phpbb_users only have 780 converted from IPB 3.4.6 ibf_members that have 1724.
Not whole ipb members convert to phpBB users.
Thanks.

User avatar
Ger
Recognised Extension Developer
Posts: 1792
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: Converting from IPB 3.4

Post by Ger » Wed Oct 10, 2018 2:48 pm

aeolustw wrote:
Wed Oct 10, 2018 1:47 pm
My remaining issue is:
The phpbb_users only have 780 converted from IPB 3.4.6 ibf_members that have 1724.
Not whole ipb members convert to phpBB users.
That's probably due to the function remove_invalid_users() in ./includes/functions_convert.php that's called after the users have been converted.
It basically removes any user that has an empty username_clean. That value is generated after encoding the original IPB username to UTF8, stripping any special characters, lowercasing them, etc. It might be that with Chinese characters, a problem arises.

Since I have no experience with such character and I'm also not very specialised in encoding stuff, you'd better open up a specific support topic to get the attention of more knowledgeable people on this manner. Feel free to refer to this topic and poke me if you need my insight.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

User avatar
aeolustw
Registered User
Posts: 12
Joined: Thu Apr 05, 2012 6:04 am
Location: Taiwan

Re: Converting from IPB 3.4

Post by aeolustw » Thu Oct 11, 2018 3:37 am

Thanks anyway.
I post a new topic here.

Post Reply

Return to “[3.2.x] Convertors”

Who is online

Users browsing this forum: No registered users and 6 guests