• Welcome to Simple Machines Community Forum. Please login or sign up.
January 16, 2022, 05:42:59 PM

News:

Join the Facebook Fan Page.


[WIP - Converter] IPB 3.2/3.3/3.4

Started by emanuele, May 17, 2012, 03:44:15 PM

Previous topic - Next topic

Ventic

June 06, 2012, 09:33:21 AM #40 Last Edit: June 06, 2012, 09:53:57 AM by Ventic
Notice: Undefined index: convert_script in /home/gamingp1/public_html/gp/convert.php on line 969

Warning: Invalid argument supplied for foreach() in /home/gamingp1/public_html/gp/convert.php on line 972

Notice: Undefined index: convert_script in /home/gamingp1/public_html/gp/convert.php on line 984
Successful.
Recalculating forum statistics...
Notice: Undefined variable: result in /home/gamingp1/public_html/gp/convert.php on line 2491

Notice: Undefined variable: result in /home/gamingp1/public_html/gp/convert.php on line 2492

Notice: Undefined index: db_fetch_assoc in /home/gamingp1/public_html/gp/convert.php on line 1383

Fatal error: Function name must be a string in /home/gamingp1/public_html/gp/convert.php on line 1383


?

edit:fixed

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Ventic

yes but why it takes many time in topics and after 5 minutes it stuck?

emanuele

Well, the converter doesn't take *everything* in one go and do the conversion, it goes step by step with few topics/messages/PMs at a time and convert those.

I'm not sure: did you finish successfully the conversion or are you stuck somewhere? (and if so, where?)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Ventic

while converting topics,it get stucked


emanuele

Is there any error? (Those you reported above should be from the last step, the recounting of the totals)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Ventic

Quote from: emanuele on June 06, 2012, 04:49:15 PM
Is there any error? (Those you reported above should be from the last step, the recounting of the totals)
those errors plus a DUPLICATE SQL ERROR

Abdel

Hello,
my converter stops at post:
hxxp:smf.forum.mage.pl/convert.php?step=1&substep=9&start=18400 [nonactive]
without any error.

Any clues for solve?

emanuele

Quote from: Ventic on June 06, 2012, 04:24:21 PM
while converting topics,it get stucked
That seems to be a server load problem...I got it around topic 2500, I had to skip few substeps by hand. For now I incresed the timeout and is going on...let's wait.

Quote from: Abdel on June 07, 2012, 08:08:59 AM
Hello,
my converter stops at post:
http://smf.forum.mage.pl/convert.php?step=1&substep=9&start=18400
without any error.

Any clues for solve?
Honestly no idea, but the moment I clicked on the link you provided the process completed recalculating all the statistics.
Check if the forum is fine, could be a curious bug in upgrade.php


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Adrek

Quote from: Abdel on June 07, 2012, 08:08:59 AM
Hello,
my converter stops at post:

I had this couple times, and what I remember this is problem on big boards, converter needs more time to move posts from old to new db.
I think that somewhere in this board as solution was given increasing execution time for php scripts
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Abdel

Quote from: Abdel on June 07, 2012, 08:08:59 AM
Hello,
my converter stops at post:
hxxp:smf.forum.mage.pl/convert.php?step=1&substep=9&start=18400 [nonactive]
without any error.

Any clues for solve?
Honestly no idea, but the moment I clicked on the link you provided the process completed recalculating all the statistics.
Check if the forum is fine, could be a curious bug in upgrade.php
[/quote]

Unluckily many post were not converted. I tried it secound time and got stuck in the same place. Also what is quite weird no topics are avaliable on any board after conversion.

Quote
I think that somewhere in this board as solution was given increasing execution time for scripts
I am on VPS with max execution time 300 secdounds and 300 MB RAM. Did many conversion before and never execution time was problem.

emanuele

Update for  Ventic: there is a basic problem with your host that from time to time hangs due to server load.
I tried lower the number of topics conversion per step down to 1 but still it presents this issue. Now I'm downloading a dump of your database and I'll try the conversion on my machine, if successful I'll upload the converted database.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Ventic


Ventic

Converting members...Field 'buddy_list' doesn't have a default value

my problem while trying to convert it in localhost

Adrek

just to be sure, does it convert all child boards correctly (with structure from IPB)?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

emanuele

If (there is still a glitch sometime) it end correctly without error the recount of the statistics it should convert everything correctly, including the sub-boards structure.

For the "glitch" the workaround could be to change:
// If we have $convert_script then set it to the session.
if (!empty($convert_script))
$_SESSION['convert_script'] = $convert_script;
if (isset($_SESSION['convert_script']) && file_exists(dirname(__FILE__) . '/' . $_SESSION['convert_script']) && preg_match('~_to_smf\.(php|sql)$~', $_SESSION['convert_script']) != 0)
{
if (substr($_SESSION['convert_script'], -4) == '.php')
preparse_php(dirname(__FILE__) . '/' . $_SESSION['convert_script']);
else
preparse_sql(dirname(__FILE__) . '/' . $_SESSION['convert_script']);
}
else
unset($_SESSION['convert_script']);


to
// If we have $convert_script then set it to the session.
if (!empty($convert_script))
$_SESSION['convert_script'] = $convert_script;
if (isset($_SESSION['convert_script']) && file_exists(dirname(__FILE__) . '/' . $_SESSION['convert_script']) && preg_match('~_to_smf\.(php|sql)$~', $_SESSION['convert_script']) != 0)
{
if (substr($_SESSION['convert_script'], -4) == '.php')
preparse_php(dirname(__FILE__) . '/' . $_SESSION['convert_script']);
else
preparse_sql(dirname(__FILE__) . '/' . $_SESSION['convert_script']);
}
else
findConvertScripts();


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Adrek

June 10, 2012, 05:00:36 AM #56 Last Edit: June 10, 2012, 06:32:09 AM by phantomm
still only few child boards are in structure, others are moved to 'general category' as regular boards :|
anyway, forum with more than 300 000 post is converted successfully (IPB 3.3.0 => SMF 2.0.2) :)

//edit:

I noticed that some of 'child child boards' are converted, but normal 'child boards' are not
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

emanuele

On the forum I used for test the result seemed to be exactly as expected, but honestly I'm not 100% sure...


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Luc-i

Does it works for 3.2.3 also?

I tried but always get the error


...the database connection information used in the specifed installation of smf cannot access the installation of IPB 3.2
this may either mean that the installation doesnt exist or that the database account used does not have permission to access it.
"SELECT COMMAND DENIED TO USER "xxxyyyy" for table members.


i have installed the SMF on subdomain using another SQL database with same database password like the mysql ipb password.

Maybe someone could gimme a hint.

Thank you.

Adrek

It was written for 3.2.x series.
You have to use the same user and password in db from IPB and SMF.
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Advertisement: