Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (FordDoctor, Dunny), 26 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 12/29/03
Posts: 2020
Top Posters (30 Days)
Ruben 47
Bert 26
Gizmo 18
Rob Provencher 10
Rimex 9
SD 6
Eugene 5
sw55 5
Matthias1976 4
Dunny 3
Latest Photos
Uhm...
Mayan End of World
Gas Station Disco Video Shoot
Test Pictures
Audrey Kate
Page 1 of 3 1 2 3 >
Topic Options
#165241 - 10/08/06 09:24 AM Import Error
Ian Offline
Registered: 06/05/06
Posts: 4349
Loc: Essex, UK
Quote:
Script:
Line#:
SQL Error:
SQL Error #: 0
Query: insert into ubbt_USER_GROUPS values ( 281 , 5 )



This was during... Processing users 201 - 401 of 6167

If we restart it, will these users just be overwritten or duplicated?
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#165244 - 10/08/06 10:06 AM Re: Import Error [Re: Ian]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10177
Loc: Aberdeen, WA
Restarting it from scratch would duplicate them. Going off of a wild guess it looks like this user was assigned to group #5 twice in 6.5 and it's erroring out when trying to add him twice. I may have to update the importer to prevent this.
Top
#165245 - 10/08/06 10:14 AM Re: Import Error [Re: Rick]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10177
Loc: Aberdeen, WA
This should fix the issue if the problem is what I think it is. If you open up line 523 of threads_import.php. The code looks like this:

Code:
$groups = split("-",$user_data['U_Groups']);

// Insert into USER_GROUPS
foreach($groups as $k => $v) {        
     if (!$v) continue;


Change that, to this:

Code:
$groups = split("-",$user_data['U_Groups']);
$done = array();

// Insert into USER_GROUPS
foreach($groups as $k => $v) {        
if (isset($done[$v])) continue;
   $done[$v] = 1;
   if (!$v) continue;
Top
#165261 - 10/08/06 11:31 AM Re: Import Error [Re: Rick]
Ian Offline
Registered: 06/05/06
Posts: 4349
Loc: Essex, UK
Is there anyway to continue this - or is it easier to just clear the tables?
Top
#165262 - 10/08/06 11:35 AM Re: Import Error [Re: Ian]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10177
Loc: Aberdeen, WA
It's probably safest to clear the tables. Although you can't clear them completely since there is some data that needs to be there. It's a bit of a hassle I know, but what you'll probably want to do is delete the tables, and reinstall. Then what you could do is backup the database after the install, so if you encounter any problems again you can just restore that backup. We'll hope that this fixes the problem so you won't have to do that though
Top
#165265 - 10/08/06 12:00 PM Re: Import Error [Re: Rick]
Gizmo Offline

Registered: 06/05/06
Posts: 15455
Loc: Portland, OR; USA
Do like me, drop the tables then run the createtables.php script in the install directory, painless
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime Supporter, Beta Tester & Resident Post-A-Holic.
Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Top
#165267 - 10/08/06 12:13 PM Re: Import Error [Re: Gizmo]
Daryl Fawcett Offline
addict
Registered: 06/05/06
Posts: 501
Loc: Canada
When I reach that stage, I do hope it works as I have updated that import file accordingly.
Top
#165270 - 10/08/06 12:30 PM Re: Import Error [Re: Daryl Fawcett]
Ian Offline
Registered: 06/05/06
Posts: 4349
Loc: Essex, UK
Thanks Gizmo
Top
#165271 - 10/08/06 12:59 PM Re: Import Error [Re: Ian]
Ian Offline
Registered: 06/05/06
Posts: 4349
Loc: Essex, UK
sorry & Rick LOL
Top
#165284 - 10/08/06 02:02 PM Re: Import Error [Re: Ian]
Gizmo Offline

Registered: 06/05/06
Posts: 15455
Loc: Portland, OR; USA
Oh we all know you love me more... i spam almost as much as Rick! <3
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime Supporter, Beta Tester & Resident Post-A-Holic.
Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Time zone setup
by skicomau
05/22/13 12:16 AM
Express hosting.
by Ruben
05/16/13 03:54 PM
Level of detail in new user registration emails
by Mitch P.
05/15/13 10:20 PM
Approving users
by Bert
05/15/13 09:22 PM
Users randomly added to other group
by Bert
05/15/13 09:15 PM
Forum Stats
10968 Members
36 Forums
33959 Topics
183413 Posts

Max Online: 978 @ 06/24/07 10:19 PM
Random Image