The Arcive of vBulletin Modifications Site. |
|
Problems in user.php Details »»
|
|||||||||||||||||||||||||
Whenever i try to edit a user in the admin cp ... i click save changed and get this error:
PHP Code:
i installed the awards hack.. cudn't get it to work... so i uninstalled it and got a funny error.. i re-uploaded the original user.php... and i got this error... i thought i might be because i had installed the contributor label hack but hadn't applied the changes to user.php so i did that and i still get the same error ...hopefully some1 can help me out ![]() Thanks in Advance - Mist Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
you must have this block in your user.php:
PHP Code:
as you can see the block is just executed if there is another user called "....". so if you have this block correct, and and get this error when editing a user, you perhaps have a problem in your database. |
|
#3
|
||||
|
||||
|
that code is already there... and its exactly the same as the code u gave me above...
![]() and also i did upload the original and that didn't fix it... i have a feeling it has something to do with these querys i ran: if u can give me thr query to reverse each one id give that a try: Query1: [sql] CREATE TABLE award ( awardsid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment, name varchar(60) NOT NULL, url varchar(100) NOT NULL, aw smallint(4) NOT NULL, PRIMARY KEY (awardsid) ); [/sql] Query2: [sql] CREATE TABLE useraward ( id smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment, awardsid smallint(5) NOT NULL, userid smallint(5) NOT NULL, name varchar(60) NOT NULL, url varchar(100) NOT NULL, aw smallint(4) NOT NULL, PRIMARY KEY (id) ); [/sql] Quer3: [sql] ALTER TABLE user ADD award TINYTEXT NOT NULL [/sql] Thanks in Advance ![]() - Mist |
|
#4
|
||||
|
||||
|
i'd say you should use phpmyadmin to delete the extra tables and the extrafield to user-table...
the queries should be: DROP TABLE `award` DROP TABLE `useraward` ALTER TABLE `user` DROP `award` then check your usertable if you have more users called Mist...
|
|
#5
|
||||
|
||||
|
i ran those queries with success...
and you were right... the problem was more than one user in the user table called "Mist" hehe.. dont know how it happened :S Thanks for your help Xenon
|
|
#6
|
||||
|
||||
![]() you're welcome i hope everything is right now |
|
#7
|
||||
|
||||
|
it is
|
![]() |
|
|