I searched through the queue for this. If this already exists and I missed it, I apologize.

I am running openpublic. So this could be an issue with that; I figured I'd start here.

This is the error I get when I try to go to /admin/modules or /update.php:

Notice: Undefined index: view addthis in user_role_grant_permissions() (line 3028 of /var/www/html/modules/user/user.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] => 1 [:db_insert_placeholder_1] => view addthis [:db_insert_placeholder_2] => ) in user_role_grant_permissions() (line 3030 of /var/www/html/modules/user/user.module).

I've tried adding the perm to the roles table. I've tried remming out the line for that permission. This permission doesn't show up on the admin/people/permissions page.

Let me know if you need anything else. Thanks.

Comments

matglas86’s picture

Title: Undefined index: view addthis in user_role_grant_permissions() (line 3028 of /var/www/html/modules/user/user.module). » Undefined permission 'view addthis' in 4.x version
Status: Active » Closed (won't fix)

If you upgraded from 2.1-beta1 to 4-alpha1 you will have permissions problems. The view addthis permission is not defined in the 4 version. Also there will not be a upgrade path from 2.1 to 4. There might be from 6-3.0 to 7-4.0.