| View previous topic :: View next topic |
| Author |
Message |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Sun Nov 19, 2006 8:59 pm Post subject: |
|
|
"import data from old board"
- if by that, you mean moving your old phpBB tables into the same database, yes.
The script should do the rest. If not, please post the error messages as you did above  _________________ Evaders99
Webmaster
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 |
|
 |
ShotoKan Newbie


Joined: Sep 20, 2006 Posts: 13
|
Posted: Wed Nov 22, 2006 11:23 pm Post subject: |
|
|
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 |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Wed Nov 22, 2006 11:59 pm Post subject: |
|
|
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
Webmaster
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 |
|
 |
ShotoKan Newbie


Joined: Sep 20, 2006 Posts: 13
|
Posted: Thu Nov 23, 2006 1:04 am Post subject: |
|
|
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 |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Thu Nov 23, 2006 9:33 pm Post subject: |
|
|
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
Webmaster
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 |
|
 |
ShotoKan Newbie


Joined: Sep 20, 2006 Posts: 13
|
Posted: Fri Nov 24, 2006 11:19 am Post subject: |
|
|
| 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 |
|
 |
FragInc Newbie


Joined: Nov 12, 2006 Posts: 2
|
Posted: Sat Nov 25, 2006 5:12 pm Post subject: |
|
|
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 |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Mon Nov 27, 2006 1:16 am Post subject: |
|
|
| 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
Webmaster
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 |
|
 |
FragInc Newbie


Joined: Nov 12, 2006 Posts: 2
|
Posted: Thu Dec 07, 2006 6:55 pm Post subject: |
|
|
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 |
|
 |
mads Newbie


Joined: Nov 19, 2006 Posts: 12
|
Posted: Thu Dec 07, 2006 7:28 pm Post subject: |
|
|
| 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 |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Thu Dec 07, 2006 9:02 pm Post subject: |
|
|
| 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
Webmaster
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 |
|
 |
mads Newbie


Joined: Nov 19, 2006 Posts: 12
|
Posted: Fri Dec 08, 2006 2:52 pm Post subject: |
|
|
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 |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Fri Dec 08, 2006 3:08 pm Post subject: |
|
|
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
Webmaster
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 |
|
 |
mads Newbie


Joined: Nov 19, 2006 Posts: 12
|
Posted: Fri Dec 08, 2006 3:14 pm Post subject: |
|
|
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 |
|
 |
Evaders99

Joined: Jan 11, 2002 Posts: 3063 Location: USA
|
Posted: Fri Dec 08, 2006 3:15 pm Post subject: |
|
|
Yes run what I suggested in phpMyAdmin please, and try again _________________ Evaders99
Webmaster
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 |
|
 |
|