I'm not sure is this module is being actively maintained. However, when we change permissions at admin/user/permissions and then click save changes we get a page not found error and the watchdog log include shows:

array_diff() [function.array-diff]: Argument #2 is not an array in .../sites/all/modules/blame/blame.module on line 351.

Comments

therealwebguy’s picture

Status: Active » Needs work

Confirmed. This will no longer be an issue in the new releases coming out shortly. Versions 6.x, 7.x and 8.x will all insure this issue has been resolved. Changing status to "needs work" and will close when new release is pushed.

therealwebguy’s picture

Assigned: Unassigned » therealwebguy
jyee’s picture

Assigned: therealwebguy » jyee
Issue summary: View changes

I've got a fix for this in the 7.x-1.x branch, but it's not a great fix (removes non diff-able items such as objects). I plan to backport it anyway in order to avoid the fatal errors. In theory, all form info is arrays, so removing objects shouldn't be detrimental.

Also note, this is one reason the 7.x-2.x branch doesn't use array_diff().

jyee’s picture

Title: blame module prevents user permissions from being updated » array_diff() cannot convert objects to string

Changed title to better capture the problem.

Error: Object of class stdClass could not be converted to string

  • Commit 7b4202f on 7.x-1.x by jyee:
    convert objects to arrays so array_diff does error. issue #1477102
    

  • Commit fefc1be on 6.x-1.x by jyee:
    convert objects to arrays so array_diff does error. issue #1477102
    
jyee’s picture

Status: Needs work » Fixed

Marking as fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.