Title: Javascript error when edit a gallery
Last modified: August 20, 2016

---

# Javascript error when edit a gallery

 *  [abmcr](https://wordpress.org/support/users/abmcr/)
 * (@abmcr)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-edit-a-gallery/)
 * I have used a clean installation of the plugin and the last nextgen gallery ,
   1.8.2
 * I create a gallery and, when i edit it, the voting plugin js create an error
 * nggv_enable is not defined
    str += “<input type=’checkbox’ nam…nable voting for
   this gallery“;
 * line 13 of gallery_options.js

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

 *  Plugin Author [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-edit-a-gallery/#post-2248839)
 * Hey
 * I’ve just checked on a clean WP 3.2.1 installation, with NGG 1.8.3, and NGGV 
   1.8.2, and I don’t get any javascript errors.
 * Can you explain the exact process you go through to get the error
    Example:
    - Click on ‘Add Gallery / Images’
    - Click ‘Add new gallery
    - Type in name
    - etc
 * What default gallery voting options do you have set?
    Also, what version of what
   browser are you using?
 * Can anyone else confirm getting the same (or similar) JS error?
 *  Thread Starter [abmcr](https://wordpress.org/support/users/abmcr/)
 * (@abmcr)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-edit-a-gallery/#post-2248858)
 * The error appears only if the gallery have no photos….. i apologize for the post;
   i think this is not important, because if gallery is empty, it is no rating 🙂
 *  Plugin Author [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-edit-a-gallery/#post-2248897)
 * Ah yes, makes sense.
 * There is a legacy problem with the plugin that requires there to be an image 
   with a custom field to get the gallery options working.
    This is because there
   was no way to hook into the gallery when I wrote the plugin. I’m not sure if 
   there is a way now, but I’m not too keen to go digging through that code and 
   start messing with it when it’s got so many live installations right now.
 * But thanks for the feedback, it’s always a help getting constructive comments!

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

The topic ‘Javascript error when edit a gallery’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-gallery-voting.svg)
 * [NextGEN Gallery Voting](https://wordpress.org/plugins/nextgen-gallery-voting/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery-voting/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery-voting/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery-voting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery-voting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery-voting/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [shauno](https://wordpress.org/support/users/shauno/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-edit-a-gallery/#post-2248897)
 * Status: not resolved