Steps taken:

  1. create new installation with Jan. 8th HEAD
  2. create first user account
  3. change password for admin user, or otherwise submit the user/1/edit screen

On the user/1/edit screen the error message

Roles field is required.

is given due to the admin user not automatically having any roles.

This begs the question: do we solve the error by giving the admin user a role (authenticated user) or by making the admin user impervious to this check? I'd think the second option would be the better.

CommentFileSizeAuthor
#1 default_role.patch2.65 KBkilles@www.drop.org
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killes@www.drop.org’s picture

Status: Active » Needs review
FileSize
2.65 KB

I'd prefer the first option.

INSERT INTO users_roles (uid, rid) VALUES (1, 2);

in the database files should fix it.

patch attached

I also changed the order of inserts a bit.

Dries’s picture

Looks good to me. Committed to HEAD. Thanks.

moshe weitzman’s picture

Status: Needs review » Fixed

why does uid =1 get saved without any role? ... it is a little odd to give this user a role before he is even created. but this solution will work for now.

Dries’s picture

Status: Fixed » Closed (fixed)