SW:Rebellion NetworkHosted by the SW:Rebellion Network
Welcome to Evaders Squadron Coding [ESC]
Did you know that... you can get the latest file changes to the Nuke Patched Core by using the CVS!
Home Forums Nuke Patched Core Coding Services Webmaster Services Personal
  Login/Create an Account    

Forums
· Forums FAQ
· Search
· Usergroups
· Profile
· Private Messages

Support Us
This site runs with your support. Please donate:

User Info/Login
Welcome, Anonymous
Nickname
Password
Security Code: Security Code
Type Security Code

(Register)
Membership:
Latest: melvin
New Today: 0
New Yesterday: 0
Overall: 9108

People Online:
Visitors: 15
Members: 0
Total: 15

Link to Us

Affliates
RPG Boards Hosting

Evaders Squadron Coding [ESC] :: View topic - phpBB2phpNuke
phpBB2phpNuke
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Coding Services
View previous topic :: View next topic  
Author Message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Sun Nov 19, 2006 8:59 pm    Post subject: Reply with quote

"import data from old board"
- if by that, you mean moving your old phpBB tables into the same database, yes. Smile
The script should do the rest. If not, please post the error messages as you did above Smile
_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
ShotoKan
Newbie
Newbie


Joined: Sep 20, 2006
Posts: 13

PostPosted: Wed Nov 22, 2006 11:23 pm    Post subject: Reply with quote

Hey Evaders

I've run the script a few times now and every time i run i got that weird problem about dupkey. I end up finding that those records on the table are not really duplicated since they have something that is different.

The whole issue is with only one table the search_bbworlist and let me try to explain that. Let's say that for are reason i two words like that on the table "jose" and another "josé" the mysql Db does not complain about that but when i run the script I got dupkey and the script stops.

the problem is that since now i am trying to convert the entire phpbb DB I am getting lots of those dupkeys and i was wondering if there was a way to change the code to every time i got this error make it ignore and keep going.
Back to top
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Wed Nov 22, 2006 11:59 pm    Post subject: Reply with quote

Hmm well, instead of using "INSERT" you could use "INSERT IGNORE"
May or may not work correctly

Can you give me the exact duplicate key error message?
_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
ShotoKan
Newbie
Newbie


Joined: Sep 20, 2006
Posts: 13

PostPosted: Thu Nov 23, 2006 1:04 am    Post subject: Reply with quote

Rightnow would be difficult because i would have to first load my phpBB tables and then run your script but like i said the error only happens at the search_worldlist table and with values that are almost identical and the difference most of the times are because of a CAPS in one of the letters.

The error is like i mentioned before ig gives me a "can not insert record due to a dupkey" and then is shows the value like "corporal" and when i select this on the phpBB DB i find "corporal" and "corpôral" so when i delete one of those it passes until it reaches onother one.

EDIT: I was able to load and runthe script again. Here the exact error
Code:
Error inserting data from phpbb_search_wordlist to nuke_bbsearch_wordlist - Duplicate entry 'kïçk' for key 1


If i select this on the DB right now i will find only one instance with the exact match but if i select like "ki*k" it will show two records

1. 'kïçk'
2. 'kick'

and beliave me it will give those as dupkeys so when i delete either one the script goes fine until reaches another one.

EDIT-2:

I deleted the 'kick' and run it again
Now i got this other one
Code:
Error inserting data from phpbb_search_wordlist to nuke_bbsearch_wordlist - Duplicate entry 'cybercafé' for key 1


Select the table and i have these records:

1. 'cybercafé'
2. 'cybercafe'

and it keeps going like that.
Back to top
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Thu Nov 23, 2006 9:33 pm    Post subject: Reply with quote

This may or may not work. At most, it could stop the search from functioning or could be very slow searching

In phpMyAdmin, run
Code:

ALTER TABLE nuke_bbsearch_wordlist DROP PRIMARY INDEX;

_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
ShotoKan
Newbie
Newbie


Joined: Sep 20, 2006
Posts: 13

PostPosted: Fri Nov 24, 2006 11:19 am    Post subject: Reply with quote

Do you think the "INSERT IGNORE" would not work for these cases? I am just a little bit woried about removing the primary key and stop the search from working.
Back to top
View user's profile Send private message
FragInc
Newbie
Newbie


Joined: Nov 12, 2006
Posts: 2

PostPosted: Sat Nov 25, 2006 5:12 pm    Post subject: Reply with quote

I am getting this error upon attempting to run phpbb2phpnuke.php:

"Cannot connect to phpNuke's bbconfig table. Please check your phpNuke prefix settings in phpbb2phpnuke_config.php"

I have merged the phpBB and phpNuke databases and modified the phpbb2phpnuke_config.php file as noted below and yet I am
getting that error. Not sure what I have done incorrectly.

Thanks!

My original phpBB config.php:

$dbms = 'mysql4';
$dbhost = 'localhost';
$dbname = 'fraginco_phpbb1';
$dbuser = 'fraginco_phpb1';
$dbpasswd = '**********';
$table_prefix = 'phpbb_';
define('PHPBB_INSTALLED', true);


My original phpNuke config.php:

$dbhost = "localhost";
$dbuname = "fraginco_nuke1";
$dbpass = "**********";
$dbname = "fraginco_nuke1";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "**********";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$tipath = "images/topics/";
$nuke_editor = 1;
$display_errors = false;


My phpbb2phpnuke_config.php:

$dbhost = "localhost";
$dbuname = "fraginco_phpb1";
$dbpass = "**********";
$dbname = "fraginco_phpbb1";
$nuke_prefix = "nuke";
$user_prefix = "nuke";
$phpbb_prefix = "phpbb";
Back to top
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Mon Nov 27, 2006 1:16 am    Post subject: Reply with quote

Quote:

Do you think the "INSERT IGNORE" would not work for these cases?


You could try it and let me know. I'm not entirely sure either method would work exactly.


FragInc, it is trying to read the database "fraginco_phpb1"
So both your Nuke and phpBB tables must be in that database.
Better if you use "fraginco_nuke1" in phpbb2phpnuke_config.php and then copy the phpBB tables into there
_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
FragInc
Newbie
Newbie


Joined: Nov 12, 2006
Posts: 2

PostPosted: Thu Dec 07, 2006 6:55 pm    Post subject: Reply with quote

I apologize for taking so long to respond. Thank you for the help also.

I was able to get the db migration completed. Did find some errors with the login list though. Seems
that names that include ASCII symbols do not transfer well. A few member names were garble after
migration and required manual editing.

Still working on a few other things too. I did have a question about avatars. Is there a simple way of
migrating the old avatars to phpNuke forums or do they have to be individually uploaded again.

Thanks again for your help. It is most appreciated!
Back to top
View user's profile Send private message
mads
Newbie
Newbie


Joined: Nov 19, 2006
Posts: 12

PostPosted: Thu Dec 07, 2006 7:28 pm    Post subject: Reply with quote

Evaders99 wrote:
I think you are missing some fields. It did not transfer some stuff correctly.

phpNuke 7.9 comes with BBToNuke 2.0.17. That means you will need to run and install sequentially BBToNuke 2.0.18 to 2.0.21.


do you mean BBToNuke 2.0.7 and not 2.0.17 ?

just installed php-nuke v7.9 and gone into the forums and it says its v2.0.7 (http://www.tidesignz.co.uk/bikerscafe/modules.php?name=Forums)

so do i need to go from v2.0.7a to v2.0.21 ?
Back to top
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Thu Dec 07, 2006 9:02 pm    Post subject: Reply with quote

Quote:
Is there a simple way of
migrating the old avatars to phpNuke forums or do they have to be individually uploaded again.


Gotta individual upload them, sorry.




mads wrote:

do you mean BBToNuke 2.0.7 and not 2.0.17 ?


No I do mean 2.0.17. The only correct version is in your Forums admin panel, the one that reads "Powered by phpBB 2.x.x"
Any other version written is erroneously hard-coded into your template
_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
mads
Newbie
Newbie


Joined: Nov 19, 2006
Posts: 12

PostPosted: Fri Dec 08, 2006 2:52 pm    Post subject: Reply with quote

right, done that. ran your script and got the following error:


Code:
Dumping previous phpNuke users data


Inserting phpBB users data into phpNuke
Error inserting data from nuke_users to phpbb_users - Duplicate entry '1' for key 1


Updating phpNuke users user_level


Updating phpNuke users user_regdate


Dumping previous forums data


Reseting phpNuke bad banlist table structure (Not critical, don't worry if errors)


Reseting phpNuke bad ranks table structure (Not critical, don't worry if errors)


Inserting phpBB forums data into phpNuke
Error inserting data from phpbb_search_wordlist to nuke_bbsearch_wordlist - Duplicate entry 'café' for key 1


Reseting phpNuke default_style


Reseting phpNuke smilies path


Reseting phpNuke anonymous posts


Reseting gzip compress settings


Emptying phpNuke session data



i try to login on the new forum using my username/password from previous board and get the following error:

Code:
Error in obtaining userdata

DEBUG MODE

SQL Error : 1054 Unknown column 'user_login_tries' in 'field list'

SELECT user_id, username, user_password, user_active, user_level, user_login_tries, user_last_login_try FROM nuke_users WHERE username = 'mads'

Line : 69
File : login.php


also tried the test user we used on old board and that doesnt log in either.


any ideas?
Back to top
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Fri Dec 08, 2006 3:08 pm    Post subject: Reply with quote

Seems like you are missing an update
Run this in phpMyAdmin

Code:

ALTER TABLE nuke_users ADD COLUMN user_login_tries smallint(5) UNSIGNED DEFAULT '0' NOT NULL;


Generally you'll want to login through the Your_Account module
Did any of your users transfer correctly? If not, let me know.
_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
mads
Newbie
Newbie


Joined: Nov 19, 2006
Posts: 12

PostPosted: Fri Dec 08, 2006 3:14 pm    Post subject: Reply with quote

just looked at table and no users were transferred. i did as you said...

installed phpnuke v7.9
upgraded BB2Nuke incremently through the stages and then imported the data from old board. ran your script.

should i still run what you suggested through phpmyadmin?
Back to top
View user's profile Send private message
Evaders99



Joined: Jan 11, 2002
Posts: 3063
Location: USA

PostPosted: Fri Dec 08, 2006 3:15 pm    Post subject: Reply with quote

Yes run what I suggested in phpMyAdmin please, and try again
_________________
Evaders99
SW:Rebellion Fans! Webmaster
Star Wars roleplaying community! Administrator

Fighting is terrible, but not as terrible as losing the will to fight.
- SW:Rebellion Network - Evaders Squadron Coding -

The cake is a lie.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Evaders Squadron Coding [ESC] Forum Index -> Coding Services All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 5 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

^Top
Home Your Account Forums Downloads F.A.Q. Submit News Hosting Contact Us

© 2005 - 2007 by Evaders99. All Rights Reserved.
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters.
You can syndicate our news using the file backend.php
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL.
PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.20 Seconds