Page 1 of 120

[BETA] SMF 1.1 to phpBB3 Convertor

Posted: Tue Nov 06, 2007 4:05 pm
by A_Jelly_Doughnut
Hi Everyone,

I'm pleased to release this beta of the convertor from SMF 1.1 to phpBB3. It should convert almost everything from your SMF forum to your new phpBB forum.

The download should be unzipped into the phpBB root directory, so the auth_smf.php file will end up in the /includes/auth directory (this must be done to allow you to log in following the conversion).

Download - No longer available.
See for the latest version

For my sanity, I ask that you post all problems with this convertor in this topic. Thank you.

Updated to beta two on Nov. 8, 07
- to beta three on Dec 3, 07
- to beta four on Jan 16, 08
- to beta five on May 22, 08
- to beta five-c on March 24, 09

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Tue Nov 06, 2007 4:36 pm
by rhuk
Well done Jelly! Just want to thank Dicky, Nils, and Jelly for making this happen. It's been a real pleasure testing/debugging this with you guys.

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Tue Nov 06, 2007 8:18 pm
by xyzulu
Great work everyone!

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Tue Nov 06, 2007 10:05 pm
by gsbe
I'll be experimenting with this shortly. Are there any forseeable problems with using this converter for SMF 1.0.12 or even 1.1.4? Thanks for your work here!

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Tue Nov 06, 2007 10:35 pm
by A_Jelly_Doughnut
Andy and Brad: Thanks :)

gsbe: It should work with 1.1.4, no guarantees with 1.0.12. My suspicion, without trying anything, is that it works for both.

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Wed Nov 07, 2007 4:17 am
by D¡cky
gsbe wrote:I'll be experimenting with this shortly. Are there any forseeable problems with using this converter for SMF 1.0.12 or even 1.1.4? Thanks for your work here!
I was not aware that there was a version 1.0.12, but I can safely say that this convertor will NOT work with SMF versions 1.0.x. The databases are different. You should upgrade your SMF to the latest version before converting or you could use the SMF 1.0.x to phpBB2 convertor, then convert to phpBB3.

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Wed Nov 07, 2007 4:25 am
by A_Jelly_Doughnut
D¡cky wrote:but I can safely say that this convertor will NOT work with SMF versions 1.0.x.
Good to know, thanks :geek:

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Wed Nov 07, 2007 10:43 am
by vtx666
Thanks for this converter!

While converting (after step 1 of 17), i get:

[phpBB Debug] PHP Notice: in file /install/convertors/functions_smf11.php on line 1226: strpos() [function.strpos]: Empty delimiter.
[phpBB Debug] PHP Notice: in file /install/index.php on line 437: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2899)
[phpBB Debug] PHP Notice: in file /install/index.php on line 438: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2899)
[phpBB Debug] PHP Notice: in file /install/index.php on line 439: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2899)
[phpBB Debug] PHP Notice: in file /install/index.php on line 440: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2899)

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Wed Nov 07, 2007 1:31 pm
by A_Jelly_Doughnut
the PHP Manual wrote: int strpos ( string $haystack, mixed $needle [, int $offset] )
AJD's Mind wrote: int strpos ( string $needle, mixed $haystack )
The fix for this: Find in /install/convertors/functions_smf11.php

Code: Select all

// takes SMF rank image, and removes everything before and including the sharp.
function smf_rank_image($rank_image)
{
	return substr($rank_image, (strpos('#', $rank_image) + 1));
}
Replace with

Code: Select all

// takes SMF rank image, and removes everything before and including the sharp.
function smf_rank_image($rank_image)
{
	return substr($rank_image, (strpos($rank_image, '#') + 1));
}
Sorry for the dumb mistake. I'll update the package probably tomorrow or Friday. I'm hoping to get another bug report or two :)

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Wed Nov 07, 2007 2:42 pm
by vtx666
Ok, that fixed the problem. The converter is now continuing.

Will report back when ready

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Wed Nov 07, 2007 3:53 pm
by vtx666
The conversion of topics is very slow, its running for about half an hour now and there are 323 of the 5.093 topics converted. No problem, I'll just leave it running and report back when it's fully ready. I hope post conversion is a bit faster as there are over 300.000 in smf.

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Thu Nov 08, 2007 4:05 am
by oojacoboo
F!ck, I had a nice long response prepared and of course the session expires!

Basically, what I was saying is this thing is buggy as all get out... Firstly, it didn't import my personal username along with a couple others, which is quite strange. I couldn't pinpoint the exact issue for it, but I believe it to be strange characters in the signature. However, it could have been that my username has an ID of "1" in SMF and phpBB assigns the ID "1" to Anonymous. However, that wouldn't explain the other accounts that didn't get imported as well for no apparent reason.

Also, I can't seem to figure out how the admin account gets transferred over. And, none of the users get "activated". Additionally, none of the admins or mods maintain their status. I can't even login to the admin section of the site at the moment, b/c I can't login with the admin user. I tried used the toolkit to change the settings for the user and can't do so. For some reason the toolkit won't write to the db despite the db user having appropriate permissions to do so.

I know all of this isn't much help in diagnosing the issues. However, if you can direct me some questions I can surely answer them to help get these sorted. Thanks...

**Command + A... Command + C... Command + C... Command + C **

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Thu Nov 08, 2007 4:17 am
by A_Jelly_Doughnut
I certainly wouldn't have released a version to the public if I was experiencing any of those problems.

All user accounts should be converted. User #1 becomes #2, 2 becomes 3, and so forth. All permissions should be transfered.

So, it would be helpful to know:
1) What version of SMF you are running (exactly, please)
2) What "toolkit" are you talking about?
3) Whether or not you get any errors during the conversion

Thanks :)

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Thu Nov 08, 2007 4:55 am
by oojacoboo
I hear ya, I figured its just something unique to my situation... So, to address the questions.

1. The very latest, 3.0 RC7
2. http://www.phpbb.com/community/viewtopic.php?t=232010 - not that this really matters at all, its just a toolkit.
3. No errors that I could tell. Everything appeared to go smoothly.

To clear up some things I reported. I changed the ID on my personal username on the forum to #3, still no import.
I still cannot login with the admin username for the life of me. It is suppose to be user_type = 1, correct? All my imported accounts are user_type = 0. user_permissions are all [BLOB - 0 B]. As for the accounts that aren't importing, I don't have the slightest why some aren't importing and most are...

Re: [BETA] SMF 1.1 to phpBB3 Convertor

Posted: Thu Nov 08, 2007 5:28 am
by A_Jelly_Doughnut
A_Jelly_Doughnut wrote:1) What version of SMF you are running (exactly, please)
You gave me the phpBB version, I need to know the SMF version.
2. viewtopic.php?t=232010 - not that this really matters at all, its just a toolkit.
That script is for phpBB2, so that explains why it didn't get you any results on phpBB3.
To clear up some things I reported. I changed the ID on my personal username on the forum to #3, still no import.
I still cannot login with the admin username for the life of me. It is suppose to be user_type = 1, correct? All my imported accounts are user_type = 0. user_permissions are all [BLOB - 0 B]. As for the accounts that aren't importing, I don't have the slightest why some aren't importing and most are...
user_permissions will be filled upon the user logging in for the first time. This is intended :)

user_type = 0 is for everybody but administrators. For an admin, user_type should be 3.

Do you have any additional administrators on the SMF board to check if they were converted or not?