Title: Warning: in_array() expects parameter 2 to be array
Last modified: February 10, 2020

---

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

 *  Resolved [robben81](https://wordpress.org/support/users/robben81/)
 * (@robben81)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-15/)
 * Hi,
 * I’m getting the following warning when I load an AMP page on my site:
 * Warning: in_array() expects parameter 2 to be array, null given in /mysite.com/
   public_html/wp-content/plugins/amp/includes/class-amp-theme-support.php on line
   1533
 * I wonder if someone can advise what the problem could be please?
 * Thanks
    -  This topic was modified 6 years, 4 months ago by [robben81](https://wordpress.org/support/users/robben81/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-15/#post-12418523)
 * Hello! Yes, this has come up before: [https://github.com/ampproject/amp-wp/issues/4145](https://github.com/ampproject/amp-wp/issues/4145)
 * We have made a fix in [https://github.com/ampproject/amp-wp/pull/4207](https://github.com/ampproject/amp-wp/pull/4207)
 * And the fix is now available in the 1.4.3-RC1 prerelease: [https://github.com/ampproject/amp-wp/releases/tag/1.4.3-RC1](https://github.com/ampproject/amp-wp/releases/tag/1.4.3-RC1)
 * Would you please test it?

Viewing 1 replies (of 1 total)

The topic ‘Warning: in_array() expects parameter 2 to be array’ 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/)

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