I created a new user roles it's Editor, now i want to delete this role, but i can't delete it.
This error report:
* Notice: Trying to get property of non-object in user_role_delete() (line 2514 of /home/xxx/projects/drupal-7.0-alpha1/modules/user/user.module).
* Notice: Trying to get property of non-object in user_role_delete() (line 2517 of /home/xxx/projects/drupal-7.0-alpha1/modules/user/user.module).
* Notice: Trying to get property of non-object in user_role_delete() (line 2521 of /home/xxx/projects/drupal-7.0-alpha1/modules/user/user.module).
* Notice: Trying to get property of non-object in block_user_role_delete() (line 886 of /home/xxxprojects/drupal-7.0-alpha1/modules/block/block.module).
Comment | File | Size | Author |
---|---|---|---|
#4 | user-687912-4.patch | 642 bytes | dev.cmswebsiteservices |
#2 | 687912-2.patch | 447 bytes | dev.cmswebsiteservices |
#1 | user-role1.png | 42.78 KB | mrsinguyen |
#1 | user-role2.png | 14.2 KB | mrsinguyen |
#1 | user-role3.png | 77.99 KB | mrsinguyen |
Comments
Comment #1
mrsinguyen CreditAttribution: mrsinguyen commentedView bellow image for this bug
Comment #2
dev.cmswebsiteservices CreditAttribution: dev.cmswebsiteservices commentedThe error that comes during deletion of a custom roles due the check of a integer value. We have update this check with a numeric value check and now it working perfectly on our test server.
Comment #4
dev.cmswebsiteservices CreditAttribution: dev.cmswebsiteservices commentedUpdated patch is attached.
Comment #6
dev.cmswebsiteservices CreditAttribution: dev.cmswebsiteservices commented#4: user-687912-4.patch queued for re-testing.
Comment #7
marcvangendDuplicate of #619584: Deleting user role throws PHP notices and prevents delete operation. I'm marking this one as duplicate because the other issue is older and has more comments/activity.