When I try to create a new user, it attempts to create it with a userID that already exisits. Below is the SQL error (with example data):
I can create the user in SQL manually.
Any help appreciated!
pg_query(): Query failed: ERROR: duplicate key value violates unique constraint "users_pkey"
DETAIL: Key (userid)=(8) already exists. [include/db.inc.php:511]
Error in query [INSERT INTO users (alias,name,surname,passwd,url,autologin,autologou t,lang,theme,refresh,rows_per_page,type,userid) VALUES ('a','a','a','0cc175b9c0f1b6a831c399e269772661','' ,'0','900','en_GB','default','30','50','1','8')] [ERROR: duplicate key value violates unique constraint "users_pkey"
DETAIL: Key (userid)=(8) already exists.]
SQL statement execution has failed "INSERT INTO users (alias,name,surname,passwd,url,autologin,autologou t,lang,theme,refresh,rows_per_page,type,userid) VALUES ('a','a','a','0cc175b9c0f1b6a831c399e269772661','' ,'0','900','en_GB','default','30','50','1','8')".
DETAIL: Key (userid)=(8) already exists. [include/db.inc.php:511]
Error in query [INSERT INTO users (alias,name,surname,passwd,url,autologin,autologou t,lang,theme,refresh,rows_per_page,type,userid) VALUES ('a','a','a','0cc175b9c0f1b6a831c399e269772661','' ,'0','900','en_GB','default','30','50','1','8')] [ERROR: duplicate key value violates unique constraint "users_pkey"
DETAIL: Key (userid)=(8) already exists.]
SQL statement execution has failed "INSERT INTO users (alias,name,surname,passwd,url,autologin,autologou t,lang,theme,refresh,rows_per_page,type,userid) VALUES ('a','a','a','0cc175b9c0f1b6a831c399e269772661','' ,'0','900','en_GB','default','30','50','1','8')".
Any help appreciated!
Comment