Hi,

This module does not work in combination with auto_username. I suppose that since user_import creates users in a non-standard way, the changes to the registration process made by auto_username don't work properly. BTW, both modules try to generate user names from the imported data.

When both modules are activated, I get the following error:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'name': UPDATE {users} SET name=:db_update_placeholder_0 WHERE (uid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => [:db_condition_placeholder_0] => 83 ) in auto_username_user_insert() (line 57 of <...>/sites/all/modules/auto_username/auto_username.module).

My guess is that first one of the two modules triggers an insert into the database, then the other one. Maybe one of the two should do an update instead?

I've already created an issue for auto_username: https://www.drupal.org/node/2302419

Best regards,
Ingo

Comments

thedut’s picture

Status: Active » Closed (duplicate)
Parent issue: » #2302419: Conflict with user_import