Hoping the CiviCRM expertise here within stackexchange can provide some guidance on a warning I'm seeing...
When an Anonymous individual on our WordPress CiviCRM site has a Group (Mailing List) selected in a Profile they are shown the following Warning message. Each Warning message is shown twice for each Group selected by the user.
Warning: in_array() expects parameter 2 to be array, null given in /home/coloradomaker/www/www/wp-content/plugins/civicrm/civicrm/CRM/ACL/API.php on line 218
Line 218 is the return statement for the groupPermission function.
A full image of the page after submitting my two Group (Mailing List) choices is shown below:
More background:
- There are two types of pages as the first submenu item under our Get Involved that are setup for an individual to provide their information for subscription to mailing lists: Logged in and not logged in. This warning happens if they are not logged in (Anonymous user). Does not happen if you are an Administrator (both as a WordPress user or in the CiviCRM Administrator group) or as a logged in user (Authenticated)
- Some of the Groups were originally created as both a Mailing List AND an Access Control List but I removed the designation that they were an ACL group when I saw this warning since we weren't ready to go full into our implementation of the frontend site. Changing the Groups back to a Mailing List only still did not get rid of the Warning.
- At one point I installed the BuddyPress Group sync but I Deactivated the plugin since I didn't want to use it yet.
- PHP 5.6, WordPress 4.9.2, CiviCRM 4.7, BuddyPress 2.9.3, BP XProfile WordPress User Sync 0.6.4, BP Groups CiviCRM Sync 0.3.5 (Deactivated)
Thoughts on how to remove the warning or complete the ACL such that there are no warnings?