When editing Anonymous account (administer/accounts, then clicking "edit account") this error occurs:
user error: Duplicate entry 'Anonymous' for key 2 query: INSERT INTO drupal_users (name, mail, signature, theme, timezone, status, rid, timestamp, uid, data) VALUES ('Anonymous', 'root@localhost', '', 'Marvin', '0', '1', '2', '1066471439', '2', 'a:3:{s:5:\"pass1\";s:0:\"\";s:5:\"pass2\";s:0:\"\";s:5:\"block\";a:0:{}}') in /home/www/includes/database.mysql.inc on line 90.
Problem is probably in function user_save(), line 122: "if ($account->uid)" is evaluated to false (Anonymous user has uid == 0) so later INSERT (instead of UPDATE?) is invoked.
Jiri Benc, benc -at- email -dot- cz
Comments
Comment #1
Dries CreditAttribution: Dries commentedFixed in the HEAD branch. The anonymous user should not be editable as the modifications would have no effect.
Comment #2
(not verified) CreditAttribution: commentedAutomatically closed due to inactivity (marked fixed for 14 days).