You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 67 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Error in Forums for Usergroups [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
mark2002
Guest






PostPosted: Sun Jan 26, 2003 1:22 pm Reply with quoteBack to top

Greetings,
I just upgraded from BETA5 to BETA6
and I ran update.sql but the fields were already renamed in the user database. So the update file never realy ran.
After I unpacked all files instead of the old files, I ran upgrade6-65.php eventhough I had 6.5beta 5 was installed. So I have no idea how did this go!

and started to get this error when a user logs in, then click on Forums, then Click on Usergroups, then finally click on "View Information"

Error getting user list for group

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'ORDER BY u.uname' at line 7

SELECT u.uname, u.uid, u.user_viewemail, u.user_posts, u.user_regdate, u.user_from, u.url, u.email, u.user_icq, u.user_aim, u.user_yim, u.user_msnm, ug.user_pending FROM nuke_users u, nuke_bbuser_group ug WHERE ug.group_id = 6 AND u.uid = ug.user_id AND ug.user_pending = 0 AND ug.user_id <> ORDER BY u.uname

Line : 811
File : /home/www/mydomain/html/modules/Forums/groupcp.php

Thank you again
Mark
Find all posts by Anonymous
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sun Jan 26, 2003 1:38 pm Reply with quoteBack to top

You ran the upgrade file and the fields were already renamed, that is very odd, beta 5 still used the old field names, how could yours be renamed already, anyway, did you upload beta 6's files so that they replace the old files?

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
mark2002
Guest






PostPosted: Sun Jan 26, 2003 2:51 pm Reply with quoteBack to top

Well! I looked at the users database a day ago and it was with the new names. Somehow, now I see it with the old names. I am going to get your sql fix and run it again, hopefully it will fix this problem..
Thank you for your help.
Mark
Find all posts by Anonymous
mark2002
Guest






PostPosted: Sun Jan 26, 2003 3:04 pm Reply with quoteBack to top

Greetings again,
I ran the file update.sql using phpMyAdmin.
After it ran, it gave me the following:

Code:

Error
SQL-query:

ALTER TABLE nuke_users CHANGE uid uid int(11) NOT NULL auto_increment;

ALTER TABLE nuke_users CHANGE uname uname varchar(25) NOT NULL default \'\';

ALTER TABLE nuke_users CHANGE url url varchar(255) NOT NULL default \'\';

ALTER TABLE nuke_users CHANGE user_intrest user_intrest varchar(150) NOT NULL default \'\';

ALTER TABLE nuke_users CHANGE pass pass varchar(40) NOT NULL default \'\';

ALTER TABLE nuke_users CHANGE email email varchar(255) NOT NULL default \'\';
MySQL said: Unknown column 'uid' in 'nuke_users'




My question: did it run successfully or somehow the uid did not work all the way?

Thank you again for your help
Mark
Find all posts by Anonymous
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Jan 26, 2003 3:07 pm Reply with quoteBack to top

yeah, it would.

You can't run it twice, once the field names have been changed, the whole script is done and dusted.

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Jan 26, 2003 3:08 pm Reply with quoteBack to top

Sure seems like it isn't uid. Can you list the fields for us from nuke_users?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
mark2002
Guest






PostPosted: Sun Jan 26, 2003 4:09 pm Reply with quoteBack to top

uid only exists in the keys table as follow:
Code:

Keyname                  Unique            Field            Action
PRIMARY                     Yes                 uid             Drop
uid                         No                  uid             Drop
uname                       No                  uname            Drop
user_session_time           No                  user_session_time   Drop
user_session_time_2         No                  user_session_time   Drop
user_session_time_3         No                  user_session_time   Drop


I am wondering if it realy needed!!
Thank you
Mark
Find all posts by Anonymous
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Jan 26, 2003 4:11 pm Reply with quoteBack to top

edit the nuke_users table and change all instances of uid to user_id and uname to username

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
mark2002
Guest






PostPosted: Sun Jan 26, 2003 4:30 pm Reply with quoteBack to top

Now I have it as follow:

Code:

Keyname             Unique       Field             Action
PRIMARY             Yes          uid           Drop
user_session_time   No           user_session_time Drop
user_session_time_2 No           user_session_time Drop
user_session_time_3 No           user_session_time Drop
username            No           uname          Drop
user_id             No           uid           Drop


is this right?
Thank you
Mark

[/code]
Find all posts by Anonymous
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Jan 26, 2003 4:33 pm Reply with quoteBack to top

Close, but no cigar, Change it so it looks like this:
Code:
Keyname             Unique       Field             Action
PRIMARY             Yes          user_id             Drop
user_session_time   No           user_session_time Drop
user_session_time_2 No           user_session_time Drop
user_session_time_3 No           user_session_time Drop
username            No           username          Drop
user_id             No           user_id           Drop
Find all posts by ArtificialIntelView user's profileSend private message
mark2002
Guest






PostPosted: Sun Jan 26, 2003 4:43 pm Reply with quoteBack to top

Hummm! puzzelled! I thought I posted the changes!! I shouldv'e clicked preview first to make sure this what I wanted to post! sorry.

Ok... This is what I have now:

Code:

Keyname             Unique       Field             Action
PRIMARY             Yes          uid           Drop
user_session_time   No           user_session_time Drop
user_session_time_2 No           user_session_time Drop
user_session_time_3 No           user_session_time Drop
username            No           uname          Drop
user_id             No           uid           Drop


Thank you
Mark
Find all posts by Anonymous
mark2002
Guest






PostPosted: Sun Jan 26, 2003 4:46 pm Reply with quoteBack to top

Something wrong!! I put the text and Preview it and looks fine, but when I post it to switch the post to the good old one...!!! I will try to put it without the code tags:

Keyname Unique Field Action
PRIMARY Yes uid Drop
user_session_time No user_session_time Drop
user_session_time_2 No user_session_time Drop
user_session_time_3 No user_session_time Drop
username No uname Drop
user_id No uid Drop

lets see ... thank you
Mark
Find all posts by Anonymous
mark2002
Guest






PostPosted: Sun Jan 26, 2003 4:48 pm Reply with quoteBack to top

I can not belive it... I do not know what to tell you! but basically I had the table like you told me... and thank you for your help
Mark
Find all posts by Anonymous
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sun Jan 26, 2003 4:48 pm Reply with quoteBack to top

lol no worries, I know what u mean. Does it match what I posted?

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
mark2002
Guest






PostPosted: Sun Jan 26, 2003 8:33 pm Reply with quoteBack to top

Yes! it matches whatever you have posted; however, I am still having the same problem when you click on View Information for the user group:

Code:

Error getting user list for group

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 'ORDER BY u.uname' at line 7

SELECT u.uname, u.uid, u.user_viewemail, u.user_posts, u.user_regdate, u.user_from, u.url, u.email, u.user_icq, u.user_aim, u.user_yim, u.user_msnm, ug.user_pending FROM nuke_users u, nuke_bbuser_group ug WHERE ug.group_id = 6 AND u.uid = ug.user_id AND ug.user_pending = 0 AND ug.user_id <> ORDER BY u.uname

Line : 811
File : /home/www/mydomain/html/modules/Forums/groupcp.php



Regards..
Mark
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can 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

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.230 Seconds - 196 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::