News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[Converter] XenForo 1.2 --> SMF 2.0.x

Started by margarett, October 06, 2013, 05:09:45 PM

Previous topic - Next topic

margarett

Hi and welcome to SMF ;)

Don't you just love converters? :P I assume you have no posts with IDs between 2351 and 2400 because I can't reproduce that in my test board... Can you try to increase the number of $max_queries?

(note to self: this needs to be verified and fixed, of course)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs

Thanks for your help Margarett and i love converters. Perhaps it will be the first time that i'll have to use only one converter  !

So i've increase the $max_queries (trying many value 100 - 200) and it's the same. It stops at the same post ... but i don't see anything special in the next post ... I've tried to increase value in php.ini but nothing (With the same settings, i've convert a forum with more than 100.000 posts without any issues but it was from phpbb to xf).

margarett

Actually I think I was reading it wrong, that shouldn't be the issue.

I think that you might have some posts without username (deleted members, maybe?)
On the converter, you can find this:

// echo '<pre>';
// print_r ($data_array);
// echo '</pre>';

$smcFunc['db_insert']('insert',
$prefix_smf . 'messages',
array(

Can you uncomment the 3 first lines and repeat?
Please note that this will dump a big amount of information. Then please let me check the result of the last few operation(s).
Thanks
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs

Quote from: margarett on March 18, 2014, 03:08:12 PM
Actually I think I was reading it wrong, that shouldn't be the issue.

I think that you might have some posts without username (deleted members, maybe?)
On the converter, you can find this:

[b][color=red]// echo '<pre>';
// print_r ($data_array);
// echo '</pre>';[/color][/b]

$smcFunc['db_insert']('insert',
$prefix_smf . 'messages',
array(

Can you uncomment the 3 first lines and repeat?
Please note that this will dump a big amount of information. Then please let me check the result of the last few operation(s).
Thanks

There are still uncomment ... (The red ones)

margarett

No, I mean, uncomment them. Like:
echo '<pre>';
print_r ($data_array);
echo '</pre>';

$smcFunc['db_insert']('insert',
$prefix_smf . 'messages',
array(

And try again.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs

#45
See attached file

marg edit: attachment removed for privacy ;)

badabugs

#46
Hum ... if you open the file in browser there're problems with some links ... the closed code </a> seems to have disappear (during a migration, i think)... Should it be the problem ?

[EDIT]Links repaired, same issue  :-\

margarett

Yeah, I think this is the issue:

    [197] => Array
        (
            [id_msg] => 6489
            [id_topic] => 6489
            [id_board] => _removed_
            [poster_time] => _removed_
            [id_member] => 236
            [id_msg_modified] => _removed_
            [subject] => _removed_
            [poster_name] =>
            [poster_email] =>
            [poster_ip] =>
            [smileys_enabled] => 1
            [modified_time] => 0
            [modified_name] =>
            [body] => _removed_
            [icon] => xx
            [approved] => 1
        )

This has no user/email and those are mandatory fields in SMF ;) I'll update the converter to add some dummy values in those fields if they are empty.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

margarett

Should be fixed ;)
Please re-download and try again.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs

it seems to work but i had an issue on the fifht step (iti seems to be a php one)

This is the fifth step of the conversion. We will now convert Conversations(XF)/PMs(SMF)

First, let's trash the actual contents of SMF "personal_messages" and "pm_recipents" tables....
PMs cleared from SMF tables. Next step, count what's there to move?? 467 PMs were found in XF.
Now retrieving messages 1 to 100...

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0
Now retrieving messages 101 to 200...
Now retrieving messages 201 to 300...
Now retrieving messages 301 to 400...

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\www\xf2smf.php on line 1054
Call Stack
# Time Memory Function Location
1 0.0018 797128 {main}( ) ..\xf2smf.php:0
Now retrieving messages 401 to 467...


Conversations seems to be have been imported ...

margarett

Did everything convert already? Welcome to SMF ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs

It seems to be OK. Thanks Margarett. I just have to find a way to made custom BBCODE and restore my permissions.  ;)

margarett

Yeah, the permission is really something I can't handle, mostly due to my "non-experience" with XF.

What custom BBC are you using, that SMF doesn't know about?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs

Yes, the permissions are really differents from xf to smf, but it should be great feature if you could add the groups in the converter (without permissions).

I've BBCODE for videos like [media="youtube"]dfdf1d22sd1[/media] or [media="dailymotion"]dfdf1d22sd1[/media] and [ATTACH=full][/ATTACH] for attached files that don't work.

I've tried aeva mods but it doesn't work.

For the attach bbcode, it's particular, attached files have a number who is incremented, it doesn't use the link of the file but this number. it shouldn't be easy to make it works without modify posts ...

Also, i've a small issue perhaps, you'll be able to help me : the WYSIWYG editor is missing. I've the default template and others : same issue.

margarett

I might be able to help you on the media BBC, but please open a new topic for it in Coding board. With some search and replace and one of the automatic embeder MODs that exist here, we might fix it for you ;)

The groups... Aren't they converted? :o
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs


margarett

I have to check. Thank you for using the converter and reporting issues ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs

I can send you my SQL files if you want.

Another suggest : converting smilies ;)

Thanks for your help and your quick answers !

margarett

Quick answers: phone power ;D

I'm not sure if I can convert smileys, the original ones are probably copyrighted...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

badabugs

Quote from: margarett on March 19, 2014, 09:47:54 AM
I'm not sure if I can convert smileys, the original ones are probably copyrighted...

It was mostly for custom ones that i add ;)

Advertisement: