Title: error in file /class.displayed_gallery.php
Last modified: August 22, 2016

---

# error in file /class.displayed_gallery.php

 *  Resolved [libis](https://wordpress.org/support/users/libis/)
 * (@libis)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/)
 * hey,
 * i have a problem. if i use shortcode – for example [nggallery id=NMUBER ID GALLERY]
   i got error:
 * – `Warning: in_array() expects parameter 2 to be array, null given in /data/web/
   virtuals/52434/virtual/www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/
   modules/nextgen_gallery_display/class.displayed_gallery.php on line 657
 * Warning: in_array() expects parameter 2 to be array, null given in /data/web/
   virtuals/52434/virtual/www/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/
   modules/nextgen_gallery_display/class.displayed_gallery.php on line 662`
 * i have latest version of wordpress and nextgen gallery. i can not figure out 
   where problem is 🙁 before couple days everything was OK…
 * any solution?
 * thx
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/#post-5501020)
 * [@libis](https://wordpress.org/support/users/libis/) – This usually only happens
   if the gallery ID being used does not exist.
 * – Cais.
 *  Thread Starter [libis](https://wordpress.org/support/users/libis/)
 * (@libis)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/#post-5501037)
 * But I am 100% sure that gallery exist.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/#post-5501044)
 * [@libis](https://wordpress.org/support/users/libis/) – What is the specific shortcode
   structure you are using? Do you see the same issue if you use the IGW (“green
   button”) to insert the display?
 * – Cais.
 *  Thread Starter [libis](https://wordpress.org/support/users/libis/)
 * (@libis)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/#post-5501056)
 * i am using this shortcode – [nggallery id=52] – yes, its same error
 * temporarily i solved – i downgraded version nextgen gallery to 1.9.13 and it 
   works.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/#post-5501276)
 * [@libis](https://wordpress.org/support/users/libis/) – we may release an update
   or patch to our shortcode system in the next day or so, it may be worth it to
   try once again after we have released things.
 * -Drew
 *  Thread Starter [libis](https://wordpress.org/support/users/libis/)
 * (@libis)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/#post-5501351)
 * i reset all settings and updated to latest version – and it WORKS 🙂
 * thx for helping me…
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/#post-5501417)
 * [@libis](https://wordpress.org/support/users/libis/) – Thanks for the follow-
   up response!
 * We’re happy to read things are working now!
 * – Cais.

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

The topic ‘error in file /class.displayed_gallery.php’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/error-in-file-classdisplayed_galleryphp/#post-5501417)
 * Status: resolved