Convert from Yabb 2.6

Started by Larian, June 26, 2020, 04:36:49 PM

Previous topic - Next topic

Larian

Hello,

I'm using a new server and now my Yabb 2.6 doesn't work. So i found Simple Machine an tried to convert. But i only find converters from yabb 1 to yabb 2.2. With the yab 2.2 converter i get the error "Unable to find the settings for YaBB 2.2."
If i rename my hxxp:paths.pm [nonactive] to hxxp:paths.pl [nonactive] it seems to work, but i see only:

"Successful.
Converting membergroups... Successful.
Converting members..."

- and nothing more

The error-log says:
[Fri Jun 26 22:28:47.252180 2020] [proxy_fcgi:error] [pid 17277:tid 139640652621568] AH01071: Got error 'PHP message: PHP Warning:  file(/var/www/vhosts/domain/httpdocs/forum26/Variables/Settings.pl): failed to open stream: No such file or directory in /var/www/vhosts/domain/httpdocs/forum/yabb22_to_smf.php on line 87\nPHP message: PHP Warning:  Invalid argument supplied for foreach() in /var/www/vhosts/domain/httpdocs/forum/yabb22_to_smf.php on line 88\n', referer: domain/forum/convert.php?step=1

[Fri Jun 26 22:28:47.252339 2020] [proxy_fcgi:error] [pid 17277:tid 139640652621568] AH01071: Got error 'PHP message: PHP Warning:  file(/var/www/vhosts/domain/httpdocs/forum26/Variables/membergroups.txt): failed to open stream: No such file or directory in /var/www/vhosts/domain/httpdocs/forum/yabb22_to_smf.php on line 139\nPHP message: PHP Warning:  Invalid argument supplied for foreach() in /var/www/vhosts/domain/httpdocs/forum/yabb22_to_smf.php on line 140\n', referer: domain/forum/convert.php?step=1

[Fri Jun 26 22:28:47.253214 2020] [proxy_fcgi:error] [pid 17277:tid 139640652621568] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function mysql_fetch_assoc() in /var/www/vhosts/domain/httpdocs/forum/yabb22_to_smf.php:202\nStack trace:\n#0 /var/www/vhosts/domain/httpdocs/forum/convert.php(1361): convertStep3()\n#1 /var/www/vhosts/domain/httpdocs/forum/convert.php(988): run_php_converter()\n#2 /var/www/vhosts/domain/httpdocs/forum/convert.php(51): doStep1()\n#3 {main}\n  thrown in /var/www/vhosts/domain/httpdocs/forum/yabb22_to_smf.php on line 202\n', referer: domain/forum/convert.php?step=1

I'm using php 7.1 and SMF 2.0.17

I would say the converter doesn't work with php 7 and with yabb 2.6

Has anyone an working converter for yabb 2.6?

Thank You
MArcus

vbgamer45

Do those files exist var/www/vhosts/domain/httpdocs/forum26/Variables/Settings.pl
/var/www/vhosts/domain/httpdocs/forum26/Variables/membergroups.txt

Or are they named something else in the directory

yabb22_to_smf.php  for sure does not work PHP 7 probably will need to downgrade to PHP 5.5
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Larian

The problem with hxxp:settings.pl [nonactive] i found, it's renamed to hxxp:settings.pm [nonactive] too (like the hxxp:paths.pl/.pm [nonactive])
But the membergroups.txt soesn't exist at yabb 2.6 it's integrated in hxxp:settings.pm [nonactive] now.

My new server doesn't support php 5.x anymore but i will try to convert yabb to smf at my old server now :)

Larian

Ok, found the solution and converted my old yabb 2.6.11:

1. installed smf 1.1.14 with php 5.5 (on my old server)
2. renamed hxxp:paths.pm [nonactive] to hxxp:paths.pl [nonactive] and hxxp:settings.pm [nonactive] to hxxp:settings.pl [nonactive]
3. used the converter from this post: https://www.simplemachines.org/community/index.php?topic=240334.msg4002547#msg4002547
4. converter worked, except for membergroups (other problems: some membernames with special German letters were empty, some board-categories were missing (alle boards were in General board))
5. removed problems (added categories and moved boards, added missing displaynames)
6. added membergroups
7. update to smf 2.0.17
8. changed php to 7.1
9. ready

justinbowser

Maybe this should be a new thread, if so mods please detach.

My YaBB 2.6 forum is on it's last legs and I have installed SMF 2.0.17.  It seems all of the instructions I find convert to an earlier version of SMF.  My questions is can I run these conversion scripts with SMF 2.x?

Please be gentle! :o

Justin B.

vbgamer45

I don't believe so I found the instructions above
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

justinbowser

So, I need to "downgrade" the SMF installation in order for the converters to work?  My host's control panel only has one version of SMF as a choice is there a link on how to download and install an earlier version?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

justinbowser

Thanks.

I did a fresh install of 1.1.14 into it's own directory and ran the yabb24_to_smf.php script.  It seemed to run OK the first time except it finished in a second or two.  No errors were reported and of course nothing was converted.  I tried it again and things seems to be going OK.  It is in the converting attachment phase and the only thing that changes is the "substep" counter which is incrementing slowly by 100.  It is currently on 1800 and as long as this number keeps changing I am taking it as a good sign.




justinbowser

After running for a couple of hours the conversion finished, claimed it was successful, but the "new" forum has no posts.  It looks like the members were converted, dub-boards appear to be there, my messages/PMs are there, and I have a huge attachment directory under SMF but no posts.

I also have 11 pages of the following error in the forum error log:

https://bmwr65.org/smf/V1.1.14/index.php

8192: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
File: /home/bmwrorg/public_html/smf/V1.1.14/Sources/Load.php(198) : runtime-created function
Line: 3

Do I need to run the conversion again or is there something elsi I need to check?

Thanks...

vbgamer45

How many rows are in the smf_topics and  smf_messages database tables. If it has content i would try to upgrade to SMF 2.0
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

justinbowser

More weirdness - If I go into my profile and click on "Show Posts" it appears my posts are there and I can see threads.  Some attachments are in the posts but most are not.

It is bed time for this old fart...

I am assuming that the tables you want me to check are in the mysql database?  Not sure how to look at that as YaBB didn't use such things.

vbgamer45

Yeah with a tool such as phpmyadmin etc. Or you can try to do 2.0 upgrade and see what happens.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

justinbowser

smf_topics = 10417
smf_messages = 105117

vbgamer45

Looks good try the SMF 2.0 upgrade
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

justinbowser

Upgrade appears to be hung on backing up database.  I uploaded the upgrade package, extracted it, set php version back to 7.4, and atarted upgrade.  It is at 4% and has been so for over 15 minutes and the elapsed time only increments when I refresh the page.  Attached is a screen-shot...

vbgamer45

You can skip that part the backup portion. Or you can just export the tables manually first.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

justinbowser

It hung on the first step.  Apparently my database is hosed so I'm going to wipe everything out and start from scratch...

justinbowser

I wiped out the SMF installations and the database and started over installing 1X first, then the YaBB conversion.  My first attempt was installing 2X, downgrade to 1X, conversion, then attempt to go back to 2X. 

Things are definitely running differently now as I am almost 6 hours into the data conversion with no end in sight - we have a crap-load of attachments, pictures mostly!  I checked my server stats and I have maxed out my 1 GB memory allotment since conversion started and now my 2.4 MB/S I/O usage is also maxed out.  Hopefully this will finish by morning as I'd hate to get a nasty-gram from my host...

justinbowser

I'm getting a bit concerned.  The conversion has been running almost 22 hours and my    bmwrorg_smf_attachments table is up to over 122,000 lines.  I did an ls | wc -l on the YaBB attachments directory and it counts only 8388 files!  I do ls | wc -l on the smf/attachments directory and get over 122000 files!

Something is not right...

Advertisement: