Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorMinisweeper
    • CommentTimeDec 13th 2005 edited
     # 251
    I'm a massive fan of the 'try it and see' methodology. I havent examined the db changes but they seemed mainly to do with roles so chances are at the least the vast majority of it would still work. Roles might just have a bit of funny behaviour.

    after checking, the only chances to the DB occur on the lum_role table (which i dont touch) and the user table but thats only changing the field type of a column i also dont use (settings)
    • CommentAuthorakb
    • CommentTimeJan 9th 2006
     # 252
    Hi there,

    I used your migrator and it worked like a charme. The only problem is that I (me, myself, blah ;) ) made a mistake. Since I had to change something in the script, I had to execute it twice. The first time was not completed successfully, but the second did. The result is that I have a great number of "double postings" in my forum. There are many postings added twice by the migrator where the commentid is not the same, but the content/body is.

    Anyone got an idea how to fix this? I'd like to use phpmyadmin to simply delete the double entries, but I dont know why. Especially since there are no double commentids, but double contents...
    • CommentAuthorbezoard
    • CommentTimeJan 12th 2006
     # 253
    hi, i have decided to 'vanilla' my phpbb and i use the 'migrator' .. but i have many problems as :

    Parse error: parse error, unexpected '>' in /home/bezoard/www/vanilla/migrator/discussions.php on line 85

    Parse error: parse error, unexpected '>' in /home/bezoard/www/vanilla/migrator/comments.php on line 92

    whereas it is working well for 'users', do you know why, how could i fixed it ?

    thanks
  1.  # 254
    This is really wierd. Can anyone with more of a clue than me look at the code (which hasnt changed for quite some time) and explain why it works 'fine' for some people and breaks for others?

    bezoard - just to double check it wasnt a transfer error somewhere, try re-downloading and uploading the migrator. If that doesnt help i'll try thinking deeper.

    akb - if you ran the script twice it's natural it would have doubled some stuff up. All i can suggest is to flush and start over. Sorry it took a while to reply - i'm sure i responded once but it turns out i must have been dreaming.
    • CommentAuthorMads
    • CommentTimeJan 15th 2006
     # 255
    i have the same problems as bezoard, but also in categories :-/
  2.  # 256
    Right. I think i might know why. Can you guys grab the latest copy (0.4S) from my server and run through it and see what you get. I'm pretty sure you'll get data transfer errors but you shouldnt get code execution errors.
    • CommentAuthorakb
    • CommentTimeJan 29th 2006
     # 257
    hi minisweeper,

    well, the problem is that its a great community site which needs to save its topics. its much, very much... but we dont want to lose it. i still got the old (phpbb) backup here, but there are enough new entries that i dont want to lose too... and i dont think i can filter them out and merge it later... bit of a problem i think :-/

    i know this has to work somehow with mysql directly... but i am not that killer in mysql...
  3.  # 258
    Hmm. Well you could make a script which ran through the entire database and checked if there was a post with the same phpBBid value and deleted one if so (which would take a fair bit of time)
    What might be easier is to wipe everything which *has* a phpBBid value (your new comments shouldnt do) and then run the migrator again on the old set of data. I think that should be easier and less resource intensive. Though whether you can wipe all the phpBB stuff with a single command i'm not sure.

    Before you do anything, though, backup your current stuff :)
    • CommentAuthorakb
    • CommentTimeJan 29th 2006
     # 259
    ah... your last idea sounds interesting. never thought of that, but in theory this should help :-) now i only need some time to do this :D
    • CommentAuthorakb
    • CommentTimeFeb 9th 2006 edited
     # 260
    i got something for these parse errors. theres one line few lines above with an syntax error. in case of comments.php this error is at line 74. the line says:

    echo "<br> ERROR ROW ".$count.";

    but has to be

    echo "<br> ERROR ROW ".$count;

    since the last added quote "comments" all the following out.

    edit: btw... minisweeper, it worked :-) i killed all phpbbpostid != 0, exported the entries that were not killed (the new ones after migration), emptied the table and imported again. now i got no double postings any more :-)
    • CommentAuthorMinisweeper
    • CommentTimeFeb 9th 2006 edited
     # 261
    awesome :)
    and yeah, i keep meaning to fix that
    *does it now*

    //seems i already did. you must have had an older version. glad it worked for you anyway
    • CommentAuthorbobert
    • CommentTimeFeb 10th 2006
     # 262
    here are the problems basicly nothing is working. my version of
    phpbb is 2.0.11

    when i click on users i do get errors, and when i click on "Click here
    to go back" it says "Users (264 rows migrated in 0.823520seconds)"
    but when i check the database (via phpmyadmin) no users have been
    migrateed
    -----------

    when i click on discussions i get the following error for every row of
    discussions

    run: 0

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
    result resource in
    /home/meloun00/domains/melounge.net/public_html/forum/migrator/discussions.php
    on line 37

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
    result resource in
    /home/meloun00/domains/melounge.net/public_html/forum/migrator/discussions.php
    on line 45

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
    result resource in
    /home/meloun00/domains/melounge.net/public_html/forum/migrator/discussions.php
    on line 49

    ERROR ROW 0

    -----------

    and when i click on comments i get the following for every row in the
    comments table

    run: 0
    0,
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
    result resource in
    /home/meloun00/domains/melounge.net/public_html/forum/migrator/comments.php
    on line 36

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
    result resource in
    /home/meloun00/domains/melounge.net/public_html/forum/migrator/comments.php
    on line 56

    ERROR ROW 01,
  4.  # 263
    Ok. Can you run the following queries on your phpBB database for me and report the errors.
    SELECT user_id,username,user_password,user_email,user_viewemail,user_avatar,user_posts,user_regdate,user_lastvisit FROM phpbb_users ORDER BY user_id ASC

    SELECT forum_id,forum_name,forum_desc,forum_order FROM phpbb_forums ORDER BY forum_id ASC

    SELECT topic_id,forum_id,topic_title,topic_poster,topic_time,topic_replies,topic_first_post_id,topic_last_post_id FROM phpbb_topics ORDER BY topic_id ASC

    SELECT post_id,topic_id,poster_id,post_time,poster_ip,post_edit_time FROM phpbb_posts ORDER BY post_id ASC
    • CommentAuthorbobert
    • CommentTimeFeb 11th 2006 edited
     # 264
    sorry but i'm an idiot i just remembered that my forum was hacked by yusuf kara. apparently he ownz my shit. rather than unhacking it i just i decided to migrate to vanilla. not sure if that is going to cause a problem with the migration script. you can see the results of maladjusted 13 yr olds with too much time on their hands at http://www.melounge.net/forum_old

    that aside
    no errors on SELECT user_id,username.........
    no errors on SELECT forum_id,forum_name.....
    no errors on SELECT topic_id,forum_id,topic_title....
    no errros on SELECT post_id,topic_id,poster_id.....
    • CommentAuthorbobert
    • CommentTimeFeb 11th 2006
     # 265
    never mind.
    unhacked the forum (had to delete the forum comments for a topic)
    and the migrator is still a no go
  5.  # 266
    You get no errors? Wtf? Remind me to look at this in the morning, sorry.
    • CommentAuthorcoastertux
    • CommentTimeFeb 12th 2006
     # 267
    I can not download the file from minisweeper's site to convert phpBB to Vanilla. Where else can I get it?
    • CommentAuthorbobert
    • CommentTimeFeb 12th 2006
     # 268
    • CommentAuthorakb
    • CommentTimeFeb 13th 2006
     # 269
    minisweeper: i could not download the file to reimport (as described above) too, so i thought i'd have the latest version... since i did this thingy just few weeks before. but good to know you already fixed that :-) and glad to see you still maintain it :-) good work hunny
  6.  # 270
    No probs. Bobert - can you add in an
    echo $phpBBcommentquery;
    into comments.php just after $phpBBcommentquery is defined (and do similar to the rest of the files) then run through it again and check that the queries it's running arent messed up in some way. If you then put *those* queries through your phpMyAdmin and see what results it gets i'd appreciated it.
    • CommentAuthorbobert
    • CommentTimeFeb 13th 2006
     # 271
    having server issues
    wil post update shortly
    • CommentAuthorbobert
    • CommentTimeFeb 13th 2006
     # 272
    so phpcommentary was defined only in comments.php
    as $phpBBcommentquery = mysql_query("SELECT post_id,topic_id,poster_id,post_time,poster_ip,post_edit_time FROM $phpbb_posts ORDER BY post_id ASC LIMIT $count,$limit");

    i then inserted afterwards
    echo $phpBBcommentquery;

    and i did not see anything. honestly i am confused as to what i could have a seen as i thought that $var = mysqlselect("sql statement") would only store a resource. and i could not use that resource in phpmyadmin
    • CommentAuthorbobert
    • CommentTimeFeb 13th 2006
     # 273
    btw
    SELECT post_id,topic_id,poster_id,post_time,poster_ip,post_edit_time FROM phpbb_posts ORDER BY post_id ASC

    does work within phpmyadmin
  7.  # 274
    Well naturally in the rest of the files the variables were named phpBBtopicquery, phpBBforumsquery and phpBBuserquery. It is however my mistake that echoing it wouldnt have shown the query it was running, though it should atleast have said Resource ID #N. Did it do that or not?
    • CommentAuthorbobert
    • CommentTimeFeb 14th 2006
     # 275
    sorry. i didnt mean to come across as a dick i'm just generally confused at me being the only one to have a problem.

    you were right thought. it displayed resouce #n. so its running. thats also proven that the mysql_total_rows prodcues a valid number

    you can check out the results at http://www.melounge.net/forum/migrator/
    i put the echo in h1 tags so that it would be obvious. as always let me know what i can do to be of assitance to get this thing working
  8.  # 276
    I didnt realise you had come across as a dick so no worries :)

    Grab the latest version from my site (0.5) HERE and run that through. It'l chuck out all the queries it's using so hopefully we can see if it's going wrong atall anywhere just to satisfy me.
    If it's not the queries *then* i'm getting confused.
    • CommentAuthorbobert
    • CommentTimeFeb 21st 2006
     # 277
    sorry for the late reply but the Sql pulling the rows from phpbb is fine, yet the migrator is still not working
    • CommentAuthorbobert
    • CommentTimeFeb 21st 2006
     # 278
    so i edited the users file to view the error produced by each insertion of a user into the vanilla db

    (because there HAS to be one) by outputting mysql_error. however when i store the resource id of the

    query and do mysql_error($result) i get
    Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource

    also i'm not sure if
    mysql_query("ALTER TABLE `$LUM_User` ADD `phpBBuserid` INT( 10 ) NOT NULL AFTER `UserID`");
    works

    when i do
    $result = mysql_query("ALTER TABLE `$LUM_User` ADD `phpBBuserid` INT( 10 ) NOT NULL AFTER `UserID`");
    and then do echo $result, i do not get a valid resource


    //--------------------------------------
    $result = mysql_query("
    INSERT INTO `$LUM_User` (`phpBBuserid` , `RoleID` , `FirstName` , `LastName` , `Name` , `Password` ,

    `Email` , `UtilizeEmail` , `ShowName` , `Icon` , `CountVisit` , `CountDiscussions` , `CountComments` ,

    `DateFirstVisit` , `DateLastActive` , `LastDiscussionPost` , `LastCommentPost` )
    VALUES (
    '$phpBBuserid' , '$RoleID' , 'phpbb' , 'user' , '$Name' , '$Password' , '$Email' , '$UtilizeEmail' ,

    '0' , '$Icon' , '$CountVisit' , '$CountDiscussions' , '$CountComments' , '$DateFirstVisit' ,

    '$DateLastVisit' , '$LastDiscussionPost' , '$LastCommentPost'
    )
    ");
    echo "result: $result";
    echo mysql_error($result);
    • CommentAuthormetacode
    • CommentTimeFeb 21st 2006
     # 279
    Whats the biggest phpBB forum someone has moved with this? Its not huge but I've got over 500 users and 40,000 posts (pruning is done regularly). I'd love to switch and help with this conversion app however I can.
    • CommentAuthorchris
    • CommentTimeFeb 22nd 2006
     # 280
    i have a bloated vb db that will be getting ported soon too, i was planning on hacking this script apart to do it. any advice? :)
    • CommentAuthorbobert
    • CommentTimeFeb 22nd 2006
     # 281
    i have 250 users and 13,500 posts and i am having heck of a problem
    • CommentAuthorchris
    • CommentTimeFeb 22nd 2006
     # 282
    yes, i have 12k members, roughly 120k posts, and am expecting it to be properly un-plain sailing. of course, i'd be happy to whittle these numbers down slightly before porting, but not that much, heh.
    •  
      CommentAuthorMallmus
    • CommentTimeFeb 22nd 2006
     # 283
    I'm having a few problems migrating my forum, almost all of the phpBB tags are appearing with some strange numbers/letters, like so:- [b:a5ab13a41c]Adventures[/b:a5ab13a41c] -- A couple of pages back this was discussed, but I couldn't make out any conclusion? -- I'm not very code-leiterate.

    phpBB uses two types of quote, I've noticed that type where you specify the user your quoting from doesn't migrate successfully:- [quote="Ao"]This is the quote from Ao[/quote] -- where, [quote]This is the quote[/quote] does.

    Lists also don't migrate; in the phpBB they are generally formatted like this:
    [list][*]Point One
    [*]Point Two
    [*]Point Three[/list]
    If its too complex to migrate this feature, would it be possible that the tags be completely removed from the message body?

    Thats all the problems i've come across so far, apart from that guy this is great!
    •  
      CommentAuthorMallmus
    • CommentTimeFeb 24th 2006
     # 284
    Does anybody know how I can remove the strange numbers/letters (the post uid), would it be possible for someone who programs PHP to make a script like those included in the migrator, something like phpedi_remove.php, which i could upload and execute?

    This would be so much help, and I'd be able to get Vanilla running for my project...
    • CommentAuthorSirNot
    • CommentTimeFeb 24th 2006
     # 285
    Something like:
    $str = preg_replace("/\[(\/?)(.+?):[\dabcdef]+?\]/", '[\\1\\2]', $str);
    should work.
    •  
      CommentAuthorMallmus
    • CommentTimeFeb 25th 2006
     # 286
    Sorry if i missed it, where does this line of code go?
    • CommentAuthorSirNot
    • CommentTimeFeb 25th 2006 edited
     # 287
    Well, haven't actually tried anything, but what I'd do is put it in line 54 of comments.php, replacing $body = $body['post_text']; with $body = preg_replace("/\[(\/?)(.+?):[\dabcdef]+?\]/", '[\\1\\2]', $body['post_text']);
    Although I'm still not 100% that preg_replace()'ll work...
    • CommentAuthorMinisweeper
    • CommentTimeFeb 25th 2006 edited
     # 288
    Cheers for looking after the dudes (better than i could have done, infact) in my absense, sirnot.
    chris: i *believe* the latest version should actually handle that size of database. I'm pretty sure the changes i made to the comments migrator in particular encouraged it to handle any number you could throw at it - users might cause more of a probem because i assumed there would be very few cases where an enormous number of users would need to be moved so i didnt bother making similar changes to the script. I do believe, however, it should handle about 30k no probs (i've had it do that many comments on the old method, and theres a lot less work involved migrating users); though that depends on the server.

    bobert - sorry if i've missed it; i've tried reading the forum but catching up with a weeks hyperactive posting while uber tired (i've been up since half 3am (it's half 5pm now)) and travelling a few k miles has left me a little weary so it's quite likely i've missed stuff. - anyway, did you grab the latest version and run the queries the script echo'd with all the variables evaluated and such to see what happened in phpmyadmin?

    everyone else complaing about the bbcode bit - through my own admission i suck at regex (and infact coding in general, i really built this thing as a bit of fun practice to try and help out those who needed it) - try implementing sirnot's changes and see what happens. Come back with results and hopefully between us we can work something out for you.
    • CommentAuthorakb
    • CommentTimeFeb 25th 2006
     # 289
    my forum was about 200-300 users and 45,000 postings... and it worked quite well (after fixing this little problems i mentioned above)
    • CommentAuthorDigitaLink
    • CommentTimeFeb 27th 2006
     # 290
    Hmmmm ... might have to try this out. Got just over 800 users and 4000 posts. At least I have the luxury of time to see if it'll work for me! :)
    • CommentAuthorbobert
    • CommentTimeFeb 27th 2006
     # 291
    minisweeper the
    Sql pulling the rows from phpbb is fine, yet the migrator is still not working
    so i edited the users file to view the error produced by each insertion of a user into the vanilla db

    (because there HAS to be one) by outputting mysql_error. however when i store the resource id of the

    query and do mysql_error($result) i get
    Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource

    you can see more detailed info in the post above
    • CommentAuthorDigitaLink
    • CommentTimeFeb 27th 2006
     # 292
    All seems to work for me but the categories.php. Get a mysql error every time. Everything else seems to work just fine.
  9.  # 293
    Um. Hold on. Can i just check now that you actually have the full vanilla tableset installed? You need that before you use the migrator and it needs to be in the same database as your phpBB tableset.
    • CommentAuthorbobert
    • CommentTimeMar 5th 2006
     # 294
    if that question was for me, the vanilla installtion went just fine. is there a query i should run for you to verify
    • CommentAuthorMinisweeper
    • CommentTimeMar 5th 2006 edited
     # 295
    Ok. Try grabbing the latest version 0.5e here and see what insert queries it's echoing.
    • CommentAuthorbobert
    • CommentTimeMar 12th 2006
     # 296
    that link doesnt work. went to http://www.int0rw3b.com/migrator.php and just got a 404 error
  10.  # 297
    touche. Fixed.
    • CommentAuthorditchx
    • CommentTimeMar 15th 2006
     # 298
    Hi there!

    I followed your link to the migrator... you a little error on your
    categories.php file...

    at around line 36:

    $insert = mysql_query($inserquery);

    the argument the mysql_query should be $insertquery.. just a missing "t".

    By the way, nice work on the migrator. But phpBB posts using BBcode will not be translated into its equivalent form.
  11.  # 299
    Thanks for the heads up. Changed that on the download.

    And yeah, i know, regex and such arent my strong point. If you could implement the code to translate the stuff correctly i'd be more than happy to put it in the download copy :)
    •  
      CommentAuthorBergamot
    • CommentTimeMar 16th 2006
     # 300
    I think the half-dozen or so regexes in the BBCode plugin should be able to handle that; just run them after import.