Title: PHP Errors
Last modified: August 24, 2016

---

# PHP Errors

 *  Resolved [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-errors-49/)
 * I’m getting the following php errors when I create a new user:
 * Warning: Invalid argument supplied for foreach() in ../wp-content/plugins/bbp-
   private-groups/includes/functions.php on line 296
 * Warning: Cannot modify header information – headers already sent by (output started
   at ../wp-content/plugins/bbp-private-groups/includes/functions.php:296) in ../
   wp-includes/pluggable.php on line 1178
 * No error after plugin deactivated.
 * [https://wordpress.org/plugins/bbp-private-groups/](https://wordpress.org/plugins/bbp-private-groups/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-errors-49/#post-6047201)
 * presume you have debug turned on?
 * Do you have some roles set in
    Dashboard>settings>bbp private groups>assign groups
   to roles ?
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-errors-49/#post-6047213)
 * Not sure where debug is (or how).
 * I assigned all roles in ‘assign groups to roles’ as only Subscriber was assigned.
   Its really odd:
 * I have 2 groups ‘Group 1 Members’ and ‘Group 2 Admin’
 * When I select ‘Group 1 Members’ after I saved it says ‘Group 2 Members’ and when
   I select ‘no-Group’ it changes to ‘Group 2’ after I save.
 * Tried to save a new user again after assigning all values and I still get errors–
   although it does actually create a user
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-errors-49/#post-6047239)
 * which version are you on?
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-errors-49/#post-6047240)
 * sorry I meant both private groups and bbpress versions
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-errors-49/#post-6047352)
 * private groups 2.5.6
    bbpress 2.5.7
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-errors-49/#post-6047445)
 * Hi Robin, Any idea? thanks Jenny
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-errors-49/#post-6047460)
 * Sorry I’ve been away for the weekend, I have it on my list to look at shortly!
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [11 years ago](https://wordpress.org/support/topic/php-errors-49/#post-6047469)
 * Hi Robin,
 * I have 2 forums Members and Admin
    and 2 groups Members and Admin
 * Members forum is assigned to Members Group
    Admin forum is assigned to Admin 
   Group
 * I have a user that is only in Members Group
 * He can’t view the forum and is taken to a 404
    but he can view the topics if 
   you enter the URL
 * Can you please confirm that this isn’t supposed to be happening.
 * thanks
    Jenny
 *  Thread Starter [powerj](https://wordpress.org/support/users/powerj/)
 * (@powerj)
 * [11 years ago](https://wordpress.org/support/topic/php-errors-49/#post-6047471)
 * ah, user was forum admin, changed him to normal forum role and he can no longer
   see URL.
 * Do you get the same?
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [11 years ago](https://wordpress.org/support/topic/php-errors-49/#post-6047473)
 * Jenny,
 * Ok lets fix one at a time 🙂
 * I created version 3.0.1 which should fix the first issue above. Can you upgrade
   and test for me please.
 * on you admin user – if he is admin and should be seeing all forums, then don’t
   assign a group to him.
 * If that’s not what you want, then come back
 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [11 years ago](https://wordpress.org/support/topic/php-errors-49/#post-6047509)
 * nothing heard – marking as resolved

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘PHP Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bbp-private-groups.svg)
 * [Private groups](https://wordpress.org/plugins/bbp-private-groups/)
 * [Support Threads](https://wordpress.org/support/plugin/bbp-private-groups/)
 * [Active Topics](https://wordpress.org/support/plugin/bbp-private-groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbp-private-groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbp-private-groups/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Robin W](https://wordpress.org/support/users/robin-w/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/php-errors-49/#post-6047509)
 * Status: resolved