News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

vbulletin 3.8.1 to smf

Started by Am', April 27, 2010, 06:11:57 AM

Previous topic - Next topic

Am'

اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

ngoclanbaby86


convert from VBB3.8.4 to SMF 2.0RC3I used this one and sucssessful.
download files attack

Am'

اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

Yes, please. It was confirmed to work with vbulletin 3.8.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Am'

#5
Hi

the script converts well members, admins, forums but he jammed with the post table

the page will load almost 45 minutes (size of vbulletin table post : 150mo), after i have this :

QuoteConverting members... Successful.
Converting administrators... Successful.
Converting categories... Successful.
Converting boards... Successful.
Assigning boards to categories... Successful.
Converting topics...

and url :

http://localhost:82/smf2rc3/convert.php?step=1

why this problem? ie I did the conversion locally, if I'm online it goes fast? any idea please ? it's so important   :(
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

It depends how fast your server is, but typically if you're online it goes slower.

Is there anything else on the page? A screenshot may help.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Am'

Quote from: Norv on April 29, 2010, 08:12:08 AM
It depends how fast your server is, but typically if you're online it goes slower.

Is there anything else on the page? A screenshot may help.

no anything, juste this message :

Converting members... Successful.
Converting administrators... Successful.
Converting categories... Successful.
Converting boards... Successful.
Assigning boards to categories... Successful.
Converting topics...

:-[
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Am'

اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

Please try this :(keep a backup copy of your original file, and restore it after working on the conversion)
(Subs-Db-mysql.php)
Code (find) Select

// Here's where the variables are injected to the query.
$insertRows = array();
foreach ($data as $dataRow)
$insertRows[] = smf_db_quote($insertData, array_combine($indexed_columns, $dataRow), $connection);

Code (replace) Select

// Here's where the variables are injected to the query.
echo "indexed_columns:<br>";
var_dump($indexed_columns);
echo "<br>";
$insertRows = array();
foreach ($data as $dataRow) {
echo "dataRow: <br>";
var_dump($dataRow);
echo "<br>";
$insertRows[] = smf_db_quote($insertData, array_combine($indexed_columns, $dataRow), $connection);
}


Then, run the conversion again. Please post the entire messages on the page (copy paste, or attach a screenshot, or both).
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Am'

#11
ok, i will try

postindex/postparsed (90mo) is important in the convertion ? i can truncate before convertion?

Quote from: Norv on April 29, 2010, 08:48:53 AM
Please try this :(keep a backup copy of your original file, and restore it after working on the conversion)
(Subs-Db-mysql.php)
Code (find) Select

// Here's where the variables are injected to the query.
$insertRows = array();
foreach ($data as $dataRow)
$insertRows[] = smf_db_quote($insertData, array_combine($indexed_columns, $dataRow), $connection);

Code (replace) Select

// Here's where the variables are injected to the query.
echo "indexed_columns:<br>";
var_dump($indexed_columns);
echo "<br>";
$insertRows = array();
foreach ($data as $dataRow) {
echo "dataRow: <br>";
var_dump($dataRow);
echo "<br>";
$insertRows[] = smf_db_quote($insertData, array_combine($indexed_columns, $dataRow), $connection);
}


Then, run the conversion again. Please post the entire messages on the page (copy paste, or attach a screenshot, or both).
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Am'

#12
now i have this

QuoteConverting members... Successful.
Converting administrators... Successful.
Converting categories... Successful.
Converting boards... Successful.
Assigning boards to categories... Successful.
Converting topics... Successful.
Converting posts (this may take some time)...Got a packet bigger than 'max_allowed_packet' bytes


i am in this host : http://www.allo-heberge.com/ (and i can custom php.ini)

in phpmyadmin > variables i have this value :

max allowed packet     1 048 576

infos of my mysql :
    * Apache/2.2.15 (Unix)
    * Version du client MySQL: 5.0.90
    * Extension PHP: mysqli



please help   :'(
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

Please try:
(vbulletin37_to_smf.sql)
Code (find) Select

---* {$to_prefix}messages 200

Code (replace) Select

---* {$to_prefix}messages 100
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Am'

#14
now i have  this :

first screen

QuoteConverting members... Successful.
Converting administrators... Successful.
Converting categories... Successful.
Converting boards... Successful.
Assigning boards to categories... Successful.
Converting topics... Successful.
Converting posts (this may take some time)... Incomplete.

Not quite done yet!
This conversion has paused to avoid overloading your server, and hence not working properly.
Don't worry though, nothing's wrong - simply click the continue button below to start the converter from where it left off.

after, second screen

Quote
Converting posts (this may take some time)...
Got a packet bigger than 'max_allowed_packet' bytes

i tested ---* {$to_prefix}messages 50 but the same problem

url is :

convert.php?step=1&substep=9&start=34650
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

If you can (if you have access to your server's installation mysql), you could perhaps make higher the max allowed packet value.
Or, make the chunk even lower.

What happens as far as I can see, is that: your MySQL only accepts a maximum amount of data to process at a time, which is smaller than what the converter sends it. The converter sends it 50 posts at a time, if you set 50 on that line...
You *could* make it as low as you want, but conversion would take much longer then.

If you're on localhost still, you can access your mysql installation, and change the value of the variable which seems to be causing trouble right now:
http://forums.mysql.com/read.php?35,54533,56470#msg-56470
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Am'

it works

but after I get this error:

QuoteConverting polls... Successful.
Converting poll options... Successful.
Converting poll votes...Wrong value type sent to the database. Integer expected. (id_member)

what to do? It s one opportunity not to repeat from the beginning? the conversion of the table post took me 1 hour ...  :'(

thank you
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

You could remove the sections about topics and posts, (and members), from vbulletin37_to_smf sql file, but I must say it's untested.
If you want to try, you would need to delete from the file, everything from

--- Converting members...

(including this line),
to

--- Converting polls...

(excluding this line)
Please keep a copy of the file on your computer, just in case.

Then, about the error:
please try modifying (in the same file)
Code (find) Select

SELECT pollid AS id_poll, userid AS id_member, voteoption AS id_choice
FROM {$from_prefix}pollvote;

Code (replace) Select

SELECT pollid AS id_poll, IFNULL(userid, 0) AS id_member, voteoption AS id_choice
FROM {$from_prefix}pollvote;
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Am'

thx  ;) ;) ;) ;) ;) ;)

but he not convert avatar ?
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Norv

It should have converted avatars too, afaik. Didn't it?
Were there other errors/warnings?
Were the avatars moved in your SMF folder/attachments directory? (that's where they are supposed to be)
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: