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.
The following error is generated when trying to install subs module:
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] => create subs [:db_insert_placeholder_2] => ) in user_role_grant_permissions() (line 3043 of /var/www/vhosts/techandoffice.com/httpdocs/dropjobs2/modules/user/user.module).
Comments
Comment #1
alexweber CreditAttribution: alexweber commentedSince Subs doesn't assign any permissions (just defines new ones) it's unlikely that this error is related to Subs. Are you running a feature-based site that exports permissions?
Comment #2
andredw CreditAttribution: andredw commentedThe error occurs during the installation of the 7.x-1.x-dev version of Drop Jobs. I am able to complete the installation of Drop Jobs when I remove the subs module from the contrib directory. Even after I successfully install Drop Jobs 7.x-1.x-dev without the subs module, the error occurs when I try to install the subs module. This is the reason I identified the error as being one related to the subs module.
Comment #3
alexweber CreditAttribution: alexweber commentedThanks andredw, it looks like we're including a crappy version of subs, i'll try to update it when i get some time and see what happens :)