Title: array_shift() expects parameter 1 to be array, boolean given
Last modified: August 21, 2016

---

# array_shift() expects parameter 1 to be array, boolean given

 *  Resolved [Bloodstripe](https://wordpress.org/support/users/bloodstripe/)
 * (@bloodstripe)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/array_shift-expects-parameter-1-to-be-array-boolean-given/)
 * I get the following error on line 286 when trying to add a buddypress group:
 * array_shift() expects parameter 1 to be array, boolean given
 * Here is line 286:
 * if(is_page() && ($this->settings[‘beforepage’] || $this->settings[‘afterpage’])&&
   array_shift(get_post_meta(get_the_ID(), $this->hideCustomMetaKey)) != ‘true’)
 * If I deactivate the plugin, the error does not come back. Suggestions?
 * [https://wordpress.org/plugins/simple-social-buttons/](https://wordpress.org/plugins/simple-social-buttons/)

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

 *  Thread Starter [Bloodstripe](https://wordpress.org/support/users/bloodstripe/)
 * (@bloodstripe)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/array_shift-expects-parameter-1-to-be-array-boolean-given/#post-4662200)
 * Never mind. Got a different plugin.
 *  [bulewold](https://wordpress.org/support/users/bulewold/)
 * (@bulewold)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/array_shift-expects-parameter-1-to-be-array-boolean-given/#post-4662300)
 * Having exactly same issue only on event page. And unlike other posts, there’s
   no ‘hide simple social button’ checkbox on event post……. Anyway to resolve this
   issue? I hate to find a new plugin….

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

The topic ‘array_shift() expects parameter 1 to be array, boolean given’ is closed
to new replies.

 * ![](https://ps.w.org/simple-social-buttons/assets/icon-256x256.png?rev=2439696)
 * [Simple Social Media Share Buttons - Social Sharing for Everyone](https://wordpress.org/plugins/simple-social-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-social-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-social-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-social-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-social-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-social-buttons/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bulewold](https://wordpress.org/support/users/bulewold/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/array_shift-expects-parameter-1-to-be-array-boolean-given/#post-4662300)
 * Status: resolved