2009-09-28, 07:08 PM
I'm writing a custom converter module, and when I tested the users import before it imported duplicates by appending the table prefix and their previous user id to the end of their user names. I assumed this was the correct functionality, and want it. However, I accidentally deleted the user import portion of the module (don't ask, I hadn't slept in like 40 hours), and now I've taken another copy from the phpBB3 directory (the dir I copied everything from to mod them for the other board system) and performed all the same changes to it. However I'm now getting and SQL error from duplicate user names.
Now, can someone slap me and tell me what I messed up to change the functionality here? Maybe I'm still too tired despite 9 hours of sleep. I don't know. But I don't see anything in the code that would do this.
Quote:MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1062 - Duplicate entry 'Test User' for key 2
Query:
INSERT INTO mybb_users (usergroup
,additionalgroups
,displaygroup
,import_usergroup
,import_additionalgroups
,import_displaygroup
,import_uid
,username
,password
,salt
,loginkey
,regdate
,lastactive
,lastvisit
,website
,showsigs
,signature
,showavatars
,timezone
,avatardimensions
,avatartype
,avatar
,lastpost
,icq
,aim
,yahoo
,msn
,hideemail
,allownotices
,regip
,lastip
,longregip
,longlastip
,language
,passwordconvert
,passwordconverttype
,postnum
,invisible
,birthday
,birthdayprivacy
,subscriptionmethod
,receivepms
,pmnotice
,pmnotify
,remember
,showquickreply
,ppp
,tpp
,daysprune
,timeformat
,dst
,buddylist
,ignorelist
,style
,away
,awaydate
,returndate
,referrer
,reputation
,timeonline
,showcodebuttons
,totalpms
,unreadpms
,pmfolders
,notepad
,threadmode
,showredirect
,dateformat
,dstcorrection
,warningpoints
,moderateposts
,moderationtime
,suspendposting
,suspensiontime
,coppauser
,classicpostbit
,loginattempts
,failedlogin
)
~~privacy snip~~
Now, can someone slap me and tell me what I messed up to change the functionality here? Maybe I'm still too tired despite 9 hours of sleep. I don't know. But I don't see anything in the code that would do this.