You are here

Programmatically created users does not have username

I need some help for the drupal commerce kickstart online shop i'm creating.

I had to import clients from an old database and I used some scripts to do so. Everything works well with the users and even with the user profiles (addresses for commerce) but whenever Drupal is trying to display the username it shows nothing.

You can see on this capture that the admin user list correctly displays the users registered with the website but that the username stays blank for imported users.

The same occurs anywhere drupal wants to display the username.

However, when I edit users from the admin section, the username field is not empty.