Title: Warning: in_array() expects parameter 2 to be array, null given in
Last modified: August 22, 2016

---

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

 *  [mcurrale](https://wordpress.org/support/users/mcurrale/)
 * (@mcurrale)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-in/)
 * Since I installed and played around with W3 Cache on my site, whenever I go into
   a page which is handled by Next Gen, I get the following on those pages:
 * Warning: in_array() expects parameter 2 to be array, null given in /home/blinavrk/
   public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/
   nextgen_gallery_display/class.displayed_gallery.php on line 650
 * Warning: in_array() expects parameter 2 to be array, null given in /home/blinavrk/
   public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/
   nextgen_gallery_display/class.displayed_gallery.php on line 655
    I am at a loss
   as to what to do to rectify this?
 * I tried disabling the plugin, and of course got the usual (ngallery id) business.
 * Any help would be very appreciated.
 * Marco
    [http://www.blindsportsradio.com](http://www.blindsportsradio.com)
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-in/#post-5237274)
 * [@mcurrale](https://wordpress.org/support/users/mcurrale/) – If you completely
   clear all of the W3 Total Cache caches, deactivate and remove any artifacts it
   leaves behind , and clear your browser caches (or use an anonymous browser window)
   does this still happen?
 * – Cais.
 *  Thread Starter [mcurrale](https://wordpress.org/support/users/mcurrale/)
 * (@mcurrale)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-in/#post-5237293)
 * Hi Cais
 * Yeah, it still occurs when this is done.
 * Cheers.
 * Marco
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-in/#post-5237382)
 * [@mcurrale](https://wordpress.org/support/users/mcurrale/) – What is the specific
   URL you are seeing these messages on? What sort of NextGEN Gallery item are you
   trying to insert into that page/post?
 * – Cais.
 *  [vpsilva](https://wordpress.org/support/users/vpsilva/)
 * (@vpsilva)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-in/#post-5237508)
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-in/#post-5237509)
 * [@vpsilva](https://wordpress.org/support/users/vpsilva/) – If you need assistance,
   please start your own topic so we can try to help you with your specific issue
   on your specific site.
 * See [http://codex.wordpress.org/Forum_Welcome#Where_To_Post](http://codex.wordpress.org/Forum_Welcome#Where_To_Post)
 * Thanks!
 * – Cais.

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

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

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [Next-Gen](https://wordpress.org/support/topic-tag/next-gen/)
 * [warning in_array](https://wordpress.org/support/topic-tag/warning-in_array/)

 * 5 replies
 * 3 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-null-given-in/#post-5237509)
 * Status: not resolved