Undefined variable error
-
Hi Pierre,
For users who login to a site but have no role for the site, an undefined variable error occurs.
/wp-content/plugins/sessions/includes/system/class-session.php:812
An empty $roles array should be declared at the start of the function and unless you also insert an additional check here, get_privileges_for_roles() will need to deal with the possibility of receiving an empty array as a variable.
It’s probably an edge case but I have clients who set users to “No role for this site” in order to retain accounts and deny access to member content until subscriptions are renewed.
Cheers,
James
You must be logged in to reply to this topic.