Advertisement:

Author Topic: Converting from YaBB 2.2  (Read 152850 times)

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Converting from YaBB 2.2
« Reply #60 on: June 26, 2008, 12:17:59 PM »
Change
Code: [Select]
'smileysEnabled' => empty($message[9]),
to
Code: [Select]
'smileysEnabled' => empty($message[9]) ? '0' : '1',
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #61 on: June 27, 2008, 03:28:00 AM »
Sleepy, after leaving it running for like 13 hours it's still going and the step amount doesn't look right ...

Code: [Select]
http://XXXXXXXXXXXX/convert.php?step=1&substep=1342750&cstep=11&start=0
Notice the substep amount... and we've only got 920k posts or there abouts...

UPDATE:

I let it run still, and have just checked it now and it seems to of died...

Code: [Select]
http://XXXXXXXXXXXX/convert.php?step=1&substep=1346750&cstep=11&start=0
The status bar is saying "Done" and nothing is happening at all, also the screen layout is different...

This is all it says ...

Code: [Select]
Converting...
Converting posts (part 2)...

Stew
« Last Edit: June 27, 2008, 07:33:20 AM by Gilrod »

Offline Conservationist

  • Semi-Newbie
  • *
  • Posts: 23
Re: Converting from YaBB 2.2
« Reply #62 on: June 27, 2008, 09:56:12 AM »
The status bar is saying "Done" and nothing is happening at all, also the screen layout is different...

This is all it says ...

Code: [Select]
Converting...
Converting posts (part 2)...

I've gotten a few of those, but even more -- totally blank screens.

I am unsure whether this is the ISP killing the process, or it simply crashing, as it has done several times.

People here are very helpful, but this process seems mystifyingly complex. Without SleePy, I'd be back on the drink.

I have had FAR better luck converting forums that were always YaBB 2/2.1 than those which were converted at any time from YaBB 1.4.

I may attempt to convert, in one case, from the original 1.4 forum using the generic YaBB converter, even though initial advice was NOT to go that route. I will post anything I learn here.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Converting from YaBB 2.2
« Reply #63 on: June 27, 2008, 10:11:44 AM »
If I have some time tonight I'll try and take a look into this issue.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #64 on: June 27, 2008, 10:57:48 AM »
Well since Sleepy and I were messing with the script and "continuing" instead of restarting the process I've decided to do a reboot as it were and have started from scratch, it's been running since my last post and has just started the posts...

I'll let you know how it goes...

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Converting from YaBB 2.2
« Reply #65 on: June 27, 2008, 11:01:52 AM »
Ok so keep us updated.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #66 on: June 28, 2008, 02:28:58 AM »
Something is definitely wrong with step 11...

Code: [Select]
http://*************/convert.php?step=1&substep=2522500&cstep=11&start=0
Remember we only have ~940k posts

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,781
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Converting from YaBB 2.2
« Reply #67 on: June 28, 2008, 03:02:56 AM »
Odd

Go to the SMF database and then into the smf_messages table.

Search for any ID_MSG that is equal to 0.
Do you get any?

That query there is just looping through the messages table correcting any incorrect ids. It should stop when it stop affecting rows (by its updates)..

How many are you converting at once (Since I know you edited that)?
Did you make sure to change it in all places?
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #68 on: June 28, 2008, 12:50:34 PM »
Right, there are none that are zero (0).

Also there are 912260 entries, Am assuming that is 1 per post? if so the total number of posts actually is 940523.

Also I upp'd the steps to 500, so not a MASSIVE lift from 150.

Stew


Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,781
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Converting from YaBB 2.2
« Reply #69 on: June 28, 2008, 01:26:24 PM »
Ok.. Well maybe its possibly looping due to the -1 past time it gets..

Find (We already changed this once):
Code: [Select]
            if ($_GET['substep'] != 0)
Replace:
Code: [Select]
            if ($_GET['substep'] > 0)
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #70 on: June 29, 2008, 03:57:15 PM »
Balls...

FAIL....

Are all these changes just to make the convert be strict compliant?

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,781
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Converting from YaBB 2.2
« Reply #71 on: June 29, 2008, 05:08:49 PM »
Yes and no..
That last one was a bug I think as it shouldn't catch itself in a loop.
It may have something to do with the fact it is yabb 2.2 with the yabb 2.1 converter as well, but I really hope not.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #72 on: July 01, 2008, 06:11:44 PM »
There is no file fix for YaBB 2.1 to 2.2 so that shouldn't be an issue.

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #73 on: July 03, 2008, 10:57:41 AM »
Well, after getting sleepy' work file for the converter I've been running it ever since and it's STILL on Posts (Part2) with the following URL ...

http://**************/convert.php?step=1&substep=2039400&cstep=11&start=0

Notice the substep is over 2m, again we only have ~900k posts.

When I spoke to Sleepy last he said that if this latest didn't work then he suspects that Jay would have to look at it.

Jay when we first spoke you suggested I provided you with a copy of the data, I've RAR it all up into a 106MB file, where do I stick it?

Stew

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Converting from YaBB 2.2
« Reply #74 on: July 03, 2008, 11:20:57 AM »
You can upload it to your site and PM me the link to the file.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,781
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Converting from YaBB 2.2
« Reply #75 on: July 03, 2008, 12:55:48 PM »
Jay would you understand why its getting caught in the loop there on the second stage of converting posts? Thats step 11.
I was thinking it was the while loop there and the timeout protection was kicking in to early or when it was forced to -1 for the timeout that it caused it to reloop again.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #76 on: July 03, 2008, 02:19:49 PM »
Uploading now, will be in touch soon.

Offline Gilrod

  • Semi-Newbie
  • *
  • Posts: 81
Re: Converting from YaBB 2.2
« Reply #77 on: July 05, 2008, 03:53:47 PM »
Jay,  did you manage to download the data from that link I MSN'd you?

Offline baycrew

  • Semi-Newbie
  • *
  • Posts: 14
Re: Converting from YaBB 2.2
« Reply #78 on: July 08, 2008, 11:04:06 PM »
Hey there SleePy, I was using the Yabb 2.1 converter for my Yab 2.2.2 forum and I managed to get everything going up until the point where it wanted to import the Poll information.

See here:



And it also says that it imported the posts, but when I went to the forum they weren't there.

Any suggestions?

I am willing to let you log onto my site if you would like to test.

Let me know... I will also hit you up via AIM as well...

Thanks!

MG

Offline SleePy

  • Let there be light!
  • Site Team Lead
  • SMF Master
  • *
  • Posts: 30,781
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: Converting from YaBB 2.2
« Reply #79 on: July 08, 2008, 11:41:21 PM »
Try this attached file.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub