Title: Warning: in_array() expects parameter 2 to be array, boolean given
Last modified: July 10, 2018

---

# Warning: in_array() expects parameter 2 to be array, boolean given

 *  Resolved [amberly66](https://wordpress.org/support/users/amberly66/)
 * (@amberly66)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-boolean-given-2/)
 * I’m getting this error in the header of this page. Thanks for your help!
 * Warning: in_array() expects parameter 2 to be array, boolean given in /home1/
   tmcreech/public_html/wp-content/plugins/accelerated-mobile-pages/templates/features.
   php on line 1608
 * Warning: in_array() expects parameter 2 to be array, boolean given in /home1/
   tmcreech/public_html/wp-content/plugins/accelerated-mobile-pages/templates/features.
   php on line 1608
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-in_array-expects-parameter-2-to-be-array-boolean-given-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-boolean-given-2/#post-10478573)
 * You are reporting an issue for the incorrect plugin. Please report the issue 
   to [https://wordpress.org/support/plugin/accelerated-mobile-pages](https://wordpress.org/support/plugin/accelerated-mobile-pages)

Viewing 1 replies (of 1 total)

The topic ‘Warning: in_array() expects parameter 2 to be array, boolean given’ is
closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [boolean](https://wordpress.org/support/topic-tag/boolean/)
 * [warnings](https://wordpress.org/support/topic-tag/warnings/)

 * 1 reply
 * 2 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-boolean-given-2/#post-10478573)
 * Status: resolved