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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrsinguyen’s picture

FileSize
77.99 KB
14.2 KB
42.78 KB

View bellow image for this bug

dev.cmswebsiteservices’s picture

Assigned: Unassigned » dev.cmswebsiteservices
Status: Active » Needs review
FileSize
447 bytes

The 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.

Status: Needs review » Needs work

The last submitted patch, 687912-2.patch, failed testing.

dev.cmswebsiteservices’s picture

Status: Needs work » Needs review
FileSize
642 bytes

Updated patch is attached.

Status: Needs review » Needs work

The last submitted patch, user-687912-4.patch, failed testing.

dev.cmswebsiteservices’s picture

Status: Needs work » Needs review

#4: user-687912-4.patch queued for re-testing.

marcvangend’s picture

Status: Needs review » Closed (duplicate)

Duplicate 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.