I have a profile that is supposed to add a role when a user registers using this profile. When they do register I get this error.

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '74-4' for key 1: INSERT INTO {users_roles} (uid, rid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => 74 [:db_insert_placeholder_1] => 4 ) in user_save() (line 603 of /home/idhouse/public_html/dev/modules/user/user.module).

Any ideas?

Comments

chrislabeard’s picture

Status: Active » Closed (works as designed)

Finally figured out this was an issue with rules and a rule I was executing on user creation. https://www.drupal.org/node/1169800