Title: [Plugin: NextGEN Gallery] Small bug when adding galleries
Last modified: August 20, 2016

---

# [Plugin: NextGEN Gallery] Small bug when adding galleries

 *  [PolCPP](https://wordpress.org/support/users/polcpp/)
 * (@polcpp)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-small-bug-when-adding-galleries/)
 * Hi, i’ve been trying to add 2 galleries that use the same folder, but it got 
   empty folder responses when trying it.
 * After taking a peek at the code in admin/functions.php:169 we have this.
 *     ```
       $gallery_id = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE path = '$galleryfolder' ");
       ```
   
 * That looks on the database for the gallery_id. Which is quite weird since we’re
   already passing it via GET, so i replaced by.
 *     ```
       $gallery_id = $_GET["gid"];
       ```
   
 * and works like a charm. I have seen any sideeffects from this.
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

Viewing 1 replies (of 1 total)

 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-small-bug-when-adding-galleries/#post-2365623)
 * Please report that at my GoogleCode page, I will fix that in a upcoming version,
   thanks !

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: NextGEN Gallery] Small bug when adding galleries’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-small-bug-when-adding-galleries/#post-2365623)
 * Status: not resolved