Got this error and a WSOD when attempting to assign Roles based on a patron's rewards. It appears to be caused by a simple context mistake. Changing $this to $bridge fixes the issue.

Patch attached.

CommentFileSizeAuthor
patreon-user_assign_roles-context.patch1014 bytestorgospizza

Comments

torgosPizza created an issue. See original summary.

mrdalesmith’s picture

I've committed this change to the dev version of 7.2 so that it can be reviewed and tested. Thanks for the patch.

mrdalesmith’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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