Title: Error when adding a new group
Last modified: August 21, 2016

---

# Error when adding a new group

 *  Resolved [patsam](https://wordpress.org/support/users/patsam/)
 * (@patsam)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/error-when-adding-a-new-group/)
 * Hi,
    I get these errors(see below) when adding a new group. If I ignore these
   errors and press on, the group has been added and all seems to function OK. But
   obviously not a good look.
 * Also as a suggestion it would be great if a post or page that once had a group
   or user assigned but then changed to no restrictions and the user forgot to make
   it public again it would be ideal if it automatically did so.
 * Great plugin by the way, well done
 * The errors I am getting
 * ! ) Warning: in_array() expects parameter 2 to be array, boolean given in C:\
   wamp\www\wp-content\plugins\post-access-controller\classes\db.php on line 132
   
   Call Stack # Time Memory Function Location 1 0.0017 403664 {main}( ) ..\users.
   php:0 2 0.0025 472648 require_once( ‘C:\wamp\www\wp-admin\admin.php’ ) ..\users.
   php:10 3 0.5377 47872152 do_action( ) ..\admin.php:211 4 0.5377 47873640 call_user_func_array()..\
   plugin.php:470 5 0.5377 47873672 postaccesscontroller_edit_group( ) ..\plugin.
   php:470 6 0.5388 47965992 postaccesscontroller_db->group_master_lkup( ) ..\post-
   access-controller.php:153 7 0.5404 48010696 in_array ( ) ..\db.php:132
 * ( ! ) Warning: in_array() expects parameter 2 to be array, boolean given in C:\
   wamp\www\wp-content\plugins\post-access-controller\classes\db.php on line 132
   
   Call Stack # Time Memory Function Location 1 0.0017 403664 {main}( ) ..\users.
   php:0 2 0.0025 472648 require_once( ‘C:\wamp\www\wp-admin\admin.php’ ) ..\users.
   php:10 3 0.5377 47872152 do_action( ) ..\admin.php:211 4 0.5377 47873640 call_user_func_array()..\
   plugin.php:470 5 0.5377 47873672 postaccesscontroller_edit_group( ) ..\plugin.
   php:470 6 0.5388 47965992 postaccesscontroller_db->group_master_lkup( ) ..\post-
   access-controller.php:153 7 0.5409 48012240 in_array ( ) ..\db.php:132
 * [https://wordpress.org/plugins/post-access-controller/](https://wordpress.org/plugins/post-access-controller/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [arsdehnel](https://wordpress.org/support/users/arsdehnel/)
 * (@arsdehnel)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-when-adding-a-new-group/#post-4970412)
 * Wow, sorry I didn’t reply to this before but this should’ve been resolved a while
   back. For sure it is handled in 0.9.3 that I just released.

Viewing 1 replies (of 1 total)

The topic ‘Error when adding a new group’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/post-access-controller.svg)
 * [Post Access Controller](https://wordpress.org/plugins/post-access-controller/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-access-controller/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-access-controller/)
 * [Active Topics](https://wordpress.org/support/plugin/post-access-controller/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-access-controller/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-access-controller/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [arsdehnel](https://wordpress.org/support/users/arsdehnel/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/error-when-adding-a-new-group/#post-4970412)
 * Status: resolved