My site is having a really strange problem with the "switch view modes" permission in our Features. When I try to revert the feature in which I saved this permission for one of my content types, I see this database exception:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module) VAL[localhost] out: laceholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array
(
    [:db_insert_placeholder_0] => 3
    [:db_insert_placeholder_1] => ds_switch static_page_grid
    [:db_insert_placeholder_2] => 
)
 in user_role_grant_permissions() (line 3058 of /Users/rrollins/dev/workspace/www.caltech.edu/modules/user/user.module).

We've been trying to debug this for hours, but we're totally stumped as to what's actually causing it. Any ideas?

Comments

swentel’s picture

Status: Active » Closed (cannot reproduce)

I have no idea to be honest, this is default features behavior as far as I can see.
We're also using this all the time and haven't been able to reproduce.

gamelodge’s picture

I have the same problem, If I find a solution I will post it here.

Did you find the cause/solution?

coredumperror’s picture

I can't remember, but we don't have the problem any more. I think we just took the permission out of our features.