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.
$ drush @drupal.d7 genu --roles=medewerker 10
WD user: PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'medewerker' for column 'rid' at row 1: INSERT INTO {users_roles} (uid, rid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array [error]
(
[:db_insert_placeholder_0] => 4
[:db_insert_placeholder_1] => medewerker
)
in user_save() (line 603 of /Users/clemens/Sites/drupal/d7/www/modules/user/user.module).
We can validate these as invalid or check the string value against rol names.
Comment | File | Size | Author |
---|---|---|---|
#1 | devel-2145187-1.patch | 1.2 KB | clemens.tolboom |
Comments
Comment #1
clemens.tolboomAttached patch checks for both valid role ID as role Name
Comment #2
willzyx CreditAttribution: willzyx commentedClosing for lack of activity. Feel free to reopen if the issue still exists