Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

  New Posts New Posts RSS Feed - Migrating From Snitz - LETS WORK THIS OUT
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Windows Web Hosting 30 Day Free Trial

Windows Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For moreĀ informationĀ see our Windows Hosting 30 Day Free Trial page.

Migrating From Snitz - LETS WORK THIS OUT

 Post Reply Post Reply Page  123 12>
Author
Sumea View Drop Down
Newbie
Newbie


Joined: 18 September 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sumea Quote  Post ReplyReply Direct Link To This Post Topic: Migrating From Snitz - LETS WORK THIS OUT
    Posted: 22 September 2006 at 8:33am
Hi there. Ok this will be my final post on migrating from Snitz to WWF v8, hopefully it will help others coming from Snitz from writing about my experience. My transition is complete, and it's working fine (with a tiny modification required - see the link at the end of this post)

Ignore the previous post. Those files don't need to be updated. Basically, when you convert the database over to WWF, the members passwords are still encrypted with Snitz's way of encryption. So for members to log in with their snitz passwords, those files help out in decrypting it everytime they log in.

So rather than providing them this for them, just make them reset their password by get them to click the forgotten password link and enter their username and email, and a new password will be sent to them. Easy.

So for me to migrate from Snitz to WWF v8 required that I download MortiOli's script (see above),  and a fresh v7 database ( http://download.webwiz.co.uk/webwizforums/ww7migrator.zip ). You do the adjustments required *exactly* in the readme text from MortiOli's script, and all should go fine.

However, if like me you had "archived" posts in your snitz forum, things become a bit more difficult. When you archive posts in snitz, the topics and threads get put into an archived topic and archived thread table, and they're slightly different to the original tables they came from.

What you need to do is remove all the relationships in the snitz forum (so no more database integrity checks), remove all the primary keys / autonumbering etc details in the table designs, adjust those "archived" tables to the same format as the normal ones, and then move all the records across.

When you run MortiOli's script again, you might run into a few errors. These are likely to be database integrity errors. Maybe you have duplicate entries, or posts made by a user but he's no longer in the memberlist etc. You have to hunt them down. How did you get these? Well, here's what happened when I archived posts on my Snitz forum from what I remember. It was a dodgy process. It didn't move all posts across, so I had duplicate entries. Sometimes when there are too many posts to move across, the script will timeout because it takes too long, and then that you'd try it again and maybe it worked the second time. Behind the scenes however, it probably didn't happen so cleanly, leaving behind more duplicate entries.

You can easily make query's on the database tables to find duplicate entries and remove them yourself. To pinpoint where the problem exactly is, you can adjust MortiOli's script so that it displays the records it updates and then when an error occurs so you can see the last record that was updated. Examine the next record in the database for the exact problem (for me it was a missing member, but his posts were there).

Once this is done, the database conversion should be done. *However*, there are two more problems I found. Because I moved across archived topics and threads back to their original tables, the order was messed up.
 So when I ran MortiOli's script, it wasn't putting ordering my id's in an ascending order in the new database. So old posts were showing up with a higher id in the database. To fix these, I made some simple adjustments to MortiOli's script.

--- line 166  of convert.asp:

'make sure the autonumbers will be correct for forums
SQL = "SELECT FORUM_ID, F_SUBJECT, FORUM_FORUM.F_DESCRIPTION, FORUM_FORUM.F_TOPICS, FORUM_FORUM.F_COUNT, FORUM_FORUM.CAT_ID FROM FORUM_FORUM ORDER BY FORUM_ID ASC"

--- line 211 of convert.asp:

'make sure the autonumbers will be correct for topics '********note:added viewcount
SQL = "SELECT TOPIC_ID, FORUM_ID, FORUM_TOPICS.T_VIEW_COUNT, FORUM_TOPICS.T_SUBJECT FROM FORUM_TOPICS ORDER BY TOPIC_ID ASC"


Ok, there's a comment there that I added the viewcount information to the sql query. What MortiOli's script misses is that it doesn't add the number of views every post gets to the new database. So we do that here.

--- line 229

'we must also check for missing sequence numbers.. hence the IF
do until rs.EOF
     If(IDvalue = rs("TOPIC_ID")) Then
     rsIns.AddNew
     rsIns.Fields("Subject") = rs("T_SUBJECT")
     rsIns.Fields("Forum_ID") = rs("FORUM_ID")
     rsIns.Fields("No_of_views") = rs("T_VIEW_COUNT")  '********note:added viewcount
     rsIns.Update
     rs.MoveNext
     IDValue = IDValue + 1

Ok, now once your Snitz database is converted to WWF (v7), download and run the  7.x to 8.x Upgrade Tool found on the webwiz site and all should be fine! Except for two more problems. Members will have to reset their passwords themselves, and all the posts in the forum will look wrong.

The first one is no problem really, and I've posted a solution to the latter problem at:

http://forums.webwiz.co.uk/forum_posts.asp?TID=21361


Edited by Sumea - 26 September 2006 at 11:07pm
Back to Top
Sumea View Drop Down
Newbie
Newbie


Joined: 18 September 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sumea Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2006 at 5:40pm
login_user.asp
register.asp
includes/inc_sha256.asp

Replacing these 3 files (from MortiOli's snitz --> WWF zip file attached previously) are the final steps in getting your Snitz -> WWF forum to work, however the first two files only work for v7 of WWF and I don't have the expertise in updating it to v8, unfortunately :(

However, if they were updated, there'd be another problem when the WWF gets updated and the login_user.asp, register.asp files could possibly need adjustments with every update. The most ideal solution would be for someone to make a script to batch convert all the member's Snitz passwords in the database to WWF's way of storing passwords. Once that's done, there'd be no need for those modified login files or a check for Snitz passwords ever again.

Would anyone be up to doing this? *hopes* If not, would anyone care to  update the previously mentioned files for WWF 8 for us migrating from Snitz forums???


Edited by Sumea - 19 September 2006 at 5:42pm
Back to Top
Sumea View Drop Down
Newbie
Newbie


Joined: 18 September 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sumea Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2006 at 3:22pm
Ok, another update :)

  I've successfully migrated the database. The problem above was due to a member missing from the member list, but his posts were still in replies and topics. Pretty odd. Anyway, I've removed his posts, and it all went well. I used the tools to update the database to v8, and the forum appears to work so far (the forum categories are a bit messed up, but that can be fixed with a bit of forum administering).

Now, I've come onto a new problem. When I try to log in, I get this error:

Error Type:
Microsoft VBScript runtime (0x800A01F4)
Variable is undefined: 'blnLongSecurityCode'
forum/login_user.asp, line 119

Now, I'm sure this is due to the login_user.asp that I had to replace with MortiOli's version of
login_user.asp which only works on V7, but I'm on V8. So I have to either try and update it myself, or hopefully someone can look into it :(
Back to Top
Sumea View Drop Down
Newbie
Newbie


Joined: 18 September 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sumea Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2006 at 12:01pm
Ok, for anyone migrating from Snitz to WWF using the Snitz to WWF script above, you HAVE to use version 7 of the WWF database, not the current 8, or else you will get the problem I have above.. You can find a copy of a fresh v7 database at : http://forums.webwiz.co.uk/forum_posts.asp?TID=21338

Anyway, I've come up to another point :

Moving all the users...
Moved all the users...
Moving Categorķes...
Moved all Categorķes...
Moving all Forums...
Moved all Forums...
Moving all Topics...
Moved all Topics...
Moving all Posts...

Microsoft JET Database Engine error '80040e21'

You cannot add or change a record because a related record is required in table 'tblAuthor'.

database/convert.asp, line 268

I've re-read the past posts on this particular problem (page 4 of this thread), and it seems to come from not removing the two records in the author table and then compacting which should reset the id's in there back to 0. This is what I have done already, so at this point I am stuck again. :( Any help would be greatly appreciated.

Back to Top
Sumea View Drop Down
Newbie
Newbie


Joined: 18 September 2006
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sumea Quote  Post ReplyReply Direct Link To This Post Posted: 18 September 2006 at 5:10pm
Hi all,
 I am also a recent convert to WWF from Snitz. I've used the script above and have hit a major hitch.

Moving all the users...
Moved all the users...
Moving Categorķes...
Moved all Categorķes...
Moving all Forums...
Moved all Forums...
Moving all Topics...

Microsoft JET Database Engine error '80004005'

The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.

database/convert.asp, line 219

I've made a query to make sure there were no duplicates in the forum_topics table (the snitz table which is getting converted to tblTopic).  After running the script, I had a look to see which record the tblTopic stopped at, and it only shows one record, so it didn't get very far. I even removed all the records from forum_topics except for one, and it still has the same problem. I've removed all the relationships between the tables just to see if it will work, but it didn't. I'm all out of ideas, and I need some help :(

I do think there may be a possible problem with the database which I'm using (v8 of WWF, whereas the script only works with a v7.x database? Anyone know? If that's the case, is there any place I can download a v7.x database???)

Any suggestions would be *greatly* appreciated. My site's forum is on hiatus and it's not a good feeling when your thousands of users are wondering when the forum is going to get back up :(

Back to Top
MortiOli View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 May 2002
Location: United Kingdom
Status: Offline
Points: 514
Post Options Post Options   Thanks (0) Thanks(0)   Quote MortiOli Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2006 at 11:18am
For all those who are after the script, please find it below;

Snitz To WWF

This has only been tested on WWF version 7.x
Back to Top
benbramz View Drop Down
Newbie
Newbie
Avatar

Joined: 16 March 2006
Location: United Kingdom
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote benbramz Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2006 at 4:54pm
i think we should look at building an import tool to push the wwf into 8.x

then we can cut these bugs out...and get the forums right into the versiopns properly....
Back to Top
giangi View Drop Down
Newbie
Newbie


Joined: 07 April 2006
Location: Italy
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote giangi Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2006 at 9:41pm

Hi,

we have try to test sha256 encryption and it seems to work! Try it : http://forum.sysadmin.it/test.asp

But however i  have a problem to login into wwwf with the old user imported from sntiz 3.5.7 with a convert.asp tool; the problem is that the security GIF code not displayed ...

You can see this error at :

http://forum.sysadmin.it/login_user.asp

The problem is that files security_image.asp not exist in the 7.9.7 version it's right ?  You have make a migration from snitz to which version of WWF ?
Seems that this files is only in the WWF 7.5 it' s right ? If yes where i download this version ?

Thanks.
Back to Top
 Post Reply Post Reply Page  123 12>
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Find us on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved