Hi weslinda,
The error is related to the return value of the set_user_role function. On most installs it returns the user’s previous roles, but it doesn’t seem to be doing that for you.
Could you please try editing your connectors/class-connector-user.php file, and replacing the callback_set_user_role method with this one: https://gist.github.com/lukecarbis/2456444da101b0e96b486590a9b5f397
If that helps, I’ll include it in our next release.
It doesn’t seem to have fixed it. I can get past the error if I turn off debug but it seems to cause a few issues once that picks up. Perhaps it’s because we’re using a plugin that generates a new role ON registration?
We’re using a plugin by miniorange that allows us to connect with SSO/Shibboleth on our network. That plugin creates a user & sets their role as a new role utilizing the Members role plugin I mentioned above. So basically, I’ve made a role beyond the standard roles so I can control content. Then when a user logs into the site with their corporate login for the first time a, a new user is created and assigned to a specific role that isn’t one of the standard WordPress roles.
Can you go back to that method, and right after the $old_roles = array_values( $old_roles ); line, add this:
var_dump( $old_roles );
That should give you some additional output, which you can copy and paste in here for me.
array(1) { [0]=> string(10) “subscriber” }
is the additional information provided
Are you sure that the error is still the same? It doesn’t make sense that in the output you gave, the [0] offset is defined, but the error is telling you that it isn’t. Maybe you could post a screenshot of the error?