Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Profile Generator is saving roles and user access permissions in the generated profile file. That's not a problem. During installation the saved roles and permissions are not correctly installed into the database. Reason is the order of operations. The function call "db_next_id('{role}_rid');" returns the wrong IDs because the authenticated user and anonymous user roles are not created yet. Having the above function call replaced by "$rid = db_next_id('{role}_rid') + 2;" or having the above roles created first should solve the problem. The permissions for your 3rd and 4th user roles are also stored, but for the 1st and 2nd user roles respectively.
Comments
Comment #1
ench0 commentedProfile Generator needs to save user roles and access permissions.
Comment #2
Jan van Diepen commentedProfile Generator is saving roles and user access permissions in the generated profile file. That's not a problem. During installation the saved roles and permissions are not correctly installed into the database. Reason is the order of operations. The function call "db_next_id('{role}_rid');" returns the wrong IDs because the authenticated user and anonymous user roles are not created yet. Having the above function call replaced by "$rid = db_next_id('{role}_rid') + 2;" or having the above roles created first should solve the problem. The permissions for your 3rd and 4th user roles are also stored, but for the 1st and 2nd user roles respectively.
Comment #3
Shiny commentedThis sounds solved -- please re-open if there are still issues.