after installing punchclock, I get 2 new user roles (Employee and Supervisor) but as soon as I try to re-read the modules section, I get the following error message and can not see the modules;
Notice: Undefined index: edit own field_punch_activity in user_role_grant_permissions() (line 3028 of /var/www/d7/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] => 8 [:db_insert_placeholder_1] => edit own field_punch_activity [:db_insert_placeholder_2] => ) in user_role_grant_permissions() (line 3030 of /var/www/d7/modules/user/user.module).
I have already checked boxes for roles to be able to punch in (etc.)
further, if I go to http:///example_site/admin/structure/views/view/punchlog I get error;
* Notice: Undefined offset: 0 in views_handler_field_field->option_definition() (line 293 of /example_site_path/modules/admin/views/modules/field/views_handler_field_field.inc).
* Notice: Undefined offset: 0 in views_handler_field_field->option_definition() (line 293 of /example_site_path/ modules/admin/views/modules/field/views_handler_field_field.inc).
Comment | File | Size | Author |
---|---|---|---|
#3 | Screen shot 2012-08-16 at 5.56.18 PM.png | 100.28 KB | busla |
Comments
Comment #1
SolomonGifford CreditAttribution: SolomonGifford commentedI cannot reproduce. I've reinstalled. Are you using Views 3?
Comment #2
SolomonGifford CreditAttribution: SolomonGifford commentedI've re-released. See if that solves the problem.
Comment #3
busla CreditAttribution: busla commentedI get the same problem
Comment #4
jax555 CreditAttribution: jax555 commentedHas this problem ever been figured out. I installed punchclock and of course I get the same exception. No matter if I give employees every permission , it still comes up so there must be another solution to this.
Comment #5
serfurt1 CreditAttribution: serfurt1 commentedFound a way to remove the error and restore the Modules menu visibility. Whether or not this edit makes the permissions work as expected, I haven't tested. Code (in punchclock.module):