News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[SMF Converter] PHP-Fusion 6.x

Started by SleePy, June 04, 2008, 11:57:39 PM

Previous topic - Next topic

ixas

#40
Hi, when i try to convert my phpf 6 to smf 4 i get this:


When i open my web page it looks like all is converted, but when i click to view member profile or open some topic i get this error:


How could i fix it?

ThorstenE

#41
there are two bugs in convert.php:
Bug1:
find
if (!isset($indexes['ipIndex']))

replace with:
if (!isset($indexes['ip_index']))

Bug2:
find:
if (!isset($indexes['showPosts']))
$smcFunc['db_add_index']($to_prefix . 'messages', array(
'type' => 'INDEX', // no key
'name' => 'show_posts',
'columns' => array('id_member', 'id_member')),

            
replace with:
if (!isset($indexes['show_posts']))
$smcFunc['db_add_index']($to_prefix . 'messages', array(
'type' => 'INDEX', // no key
'name' => 'show_posts',
'columns' => array('id_member', 'id_board')),

ixas

First problem is fixed.

But the second one not fixed
When i open my web page it looks like all is converted, but when i click to view member profile or open some topic i get this error:


How could i fix it?

ThorstenE

can you login to the admin panel and check the smf error log? there should be at least one error related to the database.

ixas

i fixed that error by my self, thats because of skype integration mod...

but now i cant login, i tried the phpfusion login fix, but it doesnt work

ThorstenE

AFAIK the php-fusion passwords are doubled md5();, so you don't need the login fix (SMF 2.0 can read these type of passwords by default). Maybe there was a typo? Both username and password are case sensitive.
I accidentally deleted my admin account, what do I do?

ixas

i dont get how to repair login bug, i have an 800 members, but they cant login

the link that you gave me is not useful

ThorstenE

To be honest I have no clue about the reason. Is it 2.0 RC4 or an earlier version of SMF 2.0? there was a bug related to the login in pre RC4 versions.

Edit: http://dev.simplemachines.org/mantis/view.php?id=4365

ixas

what if i would try the previous smf version? for example rc2 or rc3?
the bug is still exists?

where shuold i put the converted_boards.patch file?

ThorstenE

Quote from: ixas on December 02, 2010, 02:47:12 PM
what if i would try the previous smf version? for example rc2 or rc3?
the bug is in RC2 and RC3 and all former versions but should be fixed in RC4.
the diff can be applied with a special software like windiff or "diff" on a linux shell, you can't install it via package manager.
you could manually modify the file Sources/LogInOut.php
find:
updateMemberData($user_settings['id_member'], array('passwd' => $user_settings['passwd'], 'password_salt' => $user_settings['password_salt']));
replace it with:
updateMemberData($user_settings['id_member'], array('passwd' => $user_settings['passwd'], 'password_salt' => $user_settings['password_salt'], 'passwd_flood' => ''));
maybe php-fusion changed their password encryption?!?! can you create a test user in php-fusion with a password "test", then go to phpmyadmin (table users from your php-fusion installation) and verify the password from column: user_password

it should exactly match to: fb469d7ef430b0baf0cab6c436e70375   ==> ( md5(md5('test'));

ixas

i created an acount with name test and password testtest

and i get: ddf63c1a8f2492aa4e41b34e93a9d54e

ThorstenE

yep, this is exactly md5(md5('testtest'));

this is a code fragment from Sources/LogInOut.php
// Some common md5 ones.
$other_passwords[] = md5($user_settings['password_salt'] . $_POST['passwrd']);
$other_passwords[] = md5($_POST['passwrd'] . $user_settings['password_salt']);
$other_passwords[] = md5($_POST['passwrd']);
$other_passwords[] = md5(md5($_POST['passwrd']));

threrefore your SMF should read the old passwords..  Can you please try it with a different browser?

Adrek

Quote from: SleePy on June 04, 2008, 11:57:39 PM
Password Support
To be able to login again after you complete the conversion, You will simply need to apply the phpfusion6_login_fix.tgz modification (attached below) via Package Manager.


i got a question about that
What if i got PHP-Fusion converted to SMF RC3, all works, and now i want to upgrade to RC4 - i need to again install this fix ?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

ThorstenE

password support for php-fusion is IMO build-in in SMF 2.0 series..

Adrek

#54
so, i tried to convert PHP-Fusion v6.01.6 to SMF RC4, but i get this error:


Thjere is:
QuoteConverting members... Successful.
Converting categories... Successful.
Converting boards... Successful.
Converting topics... Successful.
Converting posts (this may take some time)... Successful.

but topics, posts and users are not converted...
any solution ?

I downloaded converter from http://download.simplemachines.org/?converters;software=phpfusion
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

ThorstenE

adi1166,
in phpfusion6_to_smf.sql find:
TRUNCATE {$to_prefix}moderators;

---* {$to_prefix}moderators 25
---{
$no_add = true;

add after:
$ignore = true;

then restart the converter.

Adrek

#56
still the same error

and i got the same problem like ixas - can't login using data from PHP-Fusion site...
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

ThorstenE

ok, you're right..
moderators:
I'd simply remove the entire moderators block from the converter:

/******************************************************************************/
--- Converting moderators...
/******************************************************************************/

TRUNCATE {$to_prefix}moderators;

---* {$to_prefix}moderators 25
---{
$no_add = true;
$keys = array('id_board', 'id_member');

// All moderators are held in a period seperated array.
$moderators = explode('.', $row['forum_moderators']);

// Do a loop and get them corrected for inserting
foreach ($moderators AS $mod)
$row[] = "{$row['id_board']}, {$mod}";
---}
SELECT forum_id AS id_board, forum_moderators
FROM {$from_prefix}forums;
---*

IMO this part is useless because in php-fusion moderators are membergroups whereas in SMF they are unique members.

the passwords bug: there is a bug in Sources/LogInOut.php (made a bug report a few minutes ago)
in Sources/LogInOut.php find:
elseif (strlen($user_settings['passwd']) == 32)
replace it with:
if (strlen($user_settings['passwd']) == 32)
after changing this line old passwords should work..

thomasdk81

I have made a conversion from PHP-fusion 6 to SMF 2 RC4
I removed the moderator part, as mentioned earlier in this thread.
The attachments reported successful, but there are no attachments in SMF.
Avatars couldn't be shown, but I just moved the folder from Fusion to SMF and they are working now.

Attachment aren't even showing, avatars were but just not moved.

Any ideas?
The attachments of the Fusion is not raw files, dont know what they are.
File names in the attacment folder are  "1_0a90b45f8ecf25d674fb55c4f3b8cde22a1d42cf" but the paths are "/forum/attachments/c1.jpg"

PHP-Fusion: hxxp:jacoer.blomberg.it/fusion [nonactive]
SMF: hxxp:jacoer.dk [nonactive]

ThorstenE

thomasdk81,
please try the attached version....

Advertisement: