After creating user roles, the install profile script for creating users and assigning their user roles holds a bug. For each user the script reads:

install_add_user('test user', 'd8978cf127206b727c14e3ce91b90a0b', 'testuser@testsite.com', array (
0 => 'test user role',
), 1);

The "0" in the second line should actually be the rid of 'test user role'. This should be replaced by:

$role_id['test user role'] => 'test user role',

Comments

quicksketch’s picture

Status: Active » Needs work

Could you provide this change in patch format? I'm not sure what you're recommending. http://drupal.org/patch/create

dww’s picture

Status: Needs work » Closed (duplicate)

#174323: Let install_add_user accept array of role names (which is already fixed in the 6.x-1.x-dev and 5.x-2.0-beta1 releases).