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.
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array
(
[:db_insert_placeholder_0] => 3
[:db_insert_placeholder_1] => administer sharethis
[:db_insert_placeholder_2] =>
)
in user_role_grant_permissions() (line 3034 of drupal-7.14/modules/user/user.module).
Drush command terminated abnormally due to an unrecoverable error.
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedi have drush 5+ installed and I get:
WD php: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} [error]
(rid, permission, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array
(
[:db_insert_placeholder_0] => 3
[:db_insert_placeholder_1] => administer sharethis
[:db_insert_placeholder_2] =>
)
in user_role_grant_permissions() (line 3105 of /var/aegir/platforms/7/servers/sng-d7-nearthis/modules/user/user.module).
Comment #2
Gaofengzzz CreditAttribution: Gaofengzzz commentedThank you for reporting this issue. but for my idea, this bug might be related to drush module. Also see #1822930: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column module cannot be null:.
Comment #3
VladimirAusIssue was inactive for more than 9 years. Closing.
Feel free to reopen if you feel that it is still relevant. ⏳