Title: Error: Warning: array_key_exists() expects parameter 2 to be array &#8230; line 54
Last modified: July 16, 2021

---

# Error: Warning: array_key_exists() expects parameter 2 to be array … line 54

 *  [melanyh](https://wordpress.org/support/users/melanyh/)
 * (@melanyh)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-warning-array_key_exists-expects-parameter-2-to-be-array-line-54/)
 * Hi – I’m testing a new woocommerce variable product which includes 3 variations.
   The variations are 2 different Learndash courses plus a third variation which
   includes both of the LD courses. The site also uses buddyboss theme/platform 
   for discussion groups, so I’m using the WC Buddypress integration as well. Payments
   go through and email confirmation messages are received as normal, but this error
   appears on the confirmation page on the website SOMETIMES (not always):
 * Warning: array_key_exists() expects parameter 2 to be array, bool given in /home/
   customer/www/spiritualtransformationcourses.com/public_html/wp-content/plugins/
   wc4bp/class/wc4bp-notifications.php on line 54
 * so the error is occurring in the wc 4 buddypress plugin on line 54. but why is
   it happening and how do I fix this??
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-warning-array_key_exists-expects-parameter-2-to-be-array-line-54%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [melanyh](https://wordpress.org/support/users/melanyh/)
 * (@melanyh)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/error-warning-array_key_exists-expects-parameter-2-to-be-array-line-54/#post-14670258)
 * more info: the error message only seems to appear when using the Paypal payment
   method, and not when using the Stripe payment method.
 * Any help would be much appreciated! thank you
 *  [designboxcom](https://wordpress.org/support/users/designboxcom/)
 * (@designboxcom)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-warning-array_key_exists-expects-parameter-2-to-be-array-line-54/#post-15069155)
 * Any solutions ? I get the same error message here :/
    -  This reply was modified 4 years, 6 months ago by [designboxcom](https://wordpress.org/support/users/designboxcom/).

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

The topic ‘Error: Warning: array_key_exists() expects parameter 2 to be array … 
line 54’ is closed to new replies.

 * ![](https://ps.w.org/wc4bp/assets/icon-256x256.png?rev=2452204)
 * [BuddyPress WooCommerce My Account Integration. Create WooCommerce Member Pages](https://wordpress.org/plugins/wc4bp/)
 * [Support Threads](https://wordpress.org/support/plugin/wc4bp/)
 * [Active Topics](https://wordpress.org/support/plugin/wc4bp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc4bp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc4bp/reviews/)

## Tags

 * [error message](https://wordpress.org/support/topic-tag/error-message/)

 * 2 replies
 * 2 participants
 * Last reply from: [designboxcom](https://wordpress.org/support/users/designboxcom/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/error-warning-array_key_exists-expects-parameter-2-to-be-array-line-54/#post-15069155)
 * Status: not resolved