Title: PHP Warning: in_array() expects parameter 2
Last modified: April 3, 2018

---

# PHP Warning: in_array() expects parameter 2

 *  Resolved [diespeedy](https://wordpress.org/support/users/diespeedy/)
 * (@diespeedy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2/)
 * Hi all,
 * I just mentioned the following error in my Apache error.log.
 * PHP Warning: in_array() expects parameter 2 to be array, null given in /wp-content/
   plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/
   module.nextgen_gallery_display.php on line 138
 * Does anybody has an idea what to do?
 * Best regards
    DieSpeedy

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2/#post-10145983)
 * [@diespeedy](https://wordpress.org/support/users/diespeedy/) – What version of
   PHP are you using; and, how recent/often is the error appearing?
 * – Cais.
 *  Thread Starter [diespeedy](https://wordpress.org/support/users/diespeedy/)
 * (@diespeedy)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2/#post-10146316)
 * Hi Cais,
 * I`m using PHP 7.0.28.
    The error eccured 38 times since yesterday.
 * Best regards
    DieSpeedy
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2/#post-10150479)
 * [@diespeedy](https://wordpress.org/support/users/diespeedy/) – Please send us
   a Bug Report ([https://imagely.com/report-bug/](https://imagely.com/report-bug/)…
   please reference this topic) so we can get a better look under the page at your
   site.
 * Please include as many details as you can about your site and the issue at hand
   so we can move on this as fast as possible.
 * Thanks!
 * – Cais.

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

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

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [Imagely](https://wordpress.org/support/users/imagely/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/php-warning-in_array-expects-parameter-2/#post-10150479)
 * Status: resolved