Title: PHP Warning: in_array() expects parameter 2 to be array, null given in module.ne
Last modified: August 31, 2016

---

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

 *  Resolved [internationils](https://wordpress.org/support/users/internationils/)
 * (@internationils)
 * [10 years ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given-in-modulene/)
 * Hello,
    I’m getting these errors in my PHP log:
 * [05-Jun-2016 10:30:47 UTC] PHP Warning: in_array() expects parameter 2 to be 
   array, null given in /srv/data/web/vhosts/mysite.com/htdocs/wp-content/plugins/
   nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/module.
   nextgen_gallery_display.php on line 137
    [05-Jun-2016 17:05:38 UTC] PHP Warning:
   in_array() expects parameter 2 to be array, null given in /srv/data/web/vhosts/
   mysite.com/htdocs/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/
   modules/nextgen_gallery_display/module.nextgen_gallery_display.php on line 137
 * Running Version 2.1.43, latest WP
 * Thanks
    Nils
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given-in-modulene/#post-7450471)
 * [@internationils](https://wordpress.org/support/users/internationils/) – Are 
   you using custom styles with NextGEN Gallery from under Gallery > Other Options
   > Styles? Or, do you have this option set to No?
 * – Cais.
 *  Thread Starter [internationils](https://wordpress.org/support/users/internationils/)
 * (@internationils)
 * [10 years ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given-in-modulene/#post-7450512)
 * It’s set to ‘yes’ but using ‘Default Styles’ … I don’t remember ever modifying
   it.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2-to-be-array-null-given-in-modulene/#post-7450556)
 * [@internationils](https://wordpress.org/support/users/internationils/) – Although
   I do not expect any sort of specific conflict, have you tried deactivating all
   of your plugins, clearing your browser cache (and site caches if you are using
   a caching plugin), then reactivating the NextGEN plugin?
 * If this fixes the problem then it was likely one of the deactivated plugins that
   was causing an issue. Now, retrace your steps activating each plugin and re-checking
   to see if the problem returns. If it does then that last activated plugin was
   probably the one. Keep reactivating and in most cases it is also best to keep
   checking after each plugin, sometimes there may be more than one plugin on a 
   site that will create an issue. If you do find one (or more) plugins causing 
   this problem we would greatly appreciate your feedback on them so the developers
   may address them as soon as they can.
 * Also to note, in rare cases it may be the theme itself that is causing a conflict
   so while you have just the NextGEN plugin activated you might consider temporarily
   switching to one of the default WordPress Twenty series themes and see if this
   corrects the issue as well.
 * If the problem still persists after all of this we would still want to know, 
   even more so, as we will still want to sort out the issue and may need additional
   details.
 * Thanks!
 * – Cais.

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

The topic ‘PHP Warning: in_array() expects parameter 2 to be array, null given in
module.ne’ 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

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

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