Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
role_export_generate_id
may return an incorrect results due to overflow on a 32-bit system (e.g. MAMP 1.9). Example: mname=role-administrator, cast to int changes the return value from 3609441521 to -685525775. When that gets inserted into the rid
column of the role
table, it becomes 0. That causes the role not to have any checkboxes checked on the permissions page.
Workaround is to upgrade to a 64-bit system (e.g. MAMP 2.0).
This could be fixed either in code or in documentation.
Comments
Comment #1
klausiduplicate of #1334134: 32-bit overflow in role_export_generate_id.