Title: [Plugin: BP GTM System] Group Assignment does not work / throwing error
Last modified: August 20, 2016

---

# [Plugin: BP GTM System] Group Assignment does not work / throwing error

 *  [theewebguy](https://wordpress.org/support/users/theewebguy/)
 * (@theewebguy)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-bp-gtm-system-group-assignment-does-not-work-throwing-error/)
 * First the group assignment does not work… when i assign to one group it shows
   up in all groups
 * Second when I deselect all groups it creates this error
    Warning: array_key_exists()[
   function.array-key-exists]: The second argument should be either an array or 
   an object in /home/content/62/7438462/html/…../wp-content/plugins/bp-gtm-system/
   lib/actions.php on line 1
 * WordPress 3.3.1
 * BP GTM System v1.9.5
 * BuddyPress Version 1.5.4
 * [http://wordpress.org/extend/plugins/bp-gtm-system/](http://wordpress.org/extend/plugins/bp-gtm-system/)

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

 *  [colecmc](https://wordpress.org/support/users/colecmc/)
 * (@colecmc)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-bp-gtm-system-group-assignment-does-not-work-throwing-error/#post-2638294)
 * I am having the same issue pretty much. It shows up on almost every page.
    Warning:
   array_key_exists() [function.array-key-exists]: The second argument should be
   either an array or an object in ../../wp-content/plugins/bp-gtm-system/lib/actions.
   php on line 19
 * What array or object should be there?
 * [http://wordpress.org/extend/plugins/bp-gtm-system/](http://wordpress.org/extend/plugins/bp-gtm-system/)
 *  Thread Starter [theewebguy](https://wordpress.org/support/users/theewebguy/)
 * (@theewebguy)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-bp-gtm-system-group-assignment-does-not-work-throwing-error/#post-2638297)
 * Seems to me in groups the code is…
 * A. If one group is activated for GTM it processes an array with all groups
 * B. If no group is activated GTM code is an empty array
 * Therefore maybe an “if” statement of empty means don’t do anything
    Then to check
   if there is one variable or an array
 * Should be an easy fix for someone who knows the code
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-bp-gtm-system-group-assignment-does-not-work-throwing-error/#post-2638311)
 * I will look into this.

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

The topic ‘[Plugin: BP GTM System] Group Assignment does not work / throwing error’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-gtm-system_6c6c6c.svg)
 * [BP GTM System](https://wordpress.org/plugins/bp-gtm-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-gtm-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-gtm-system/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-gtm-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-gtm-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-gtm-system/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-bp-gtm-system-group-assignment-does-not-work-throwing-error/#post-2638311)
 * Status: not resolved