Title: JavaScript error
Last modified: August 21, 2016

---

# JavaScript error

 *  [jenniferwilhelm](https://wordpress.org/support/users/jenniferwilhelm/)
 * (@jenniferwilhelm)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-33/)
 * Hello, I just purchased and installed WP Easy Gallery Pro and am having trouble
   with the plugin. This is the gallery in question: [http://www.kimmacquarrie.com/photos/peru/machu-picchu](http://www.kimmacquarrie.com/photos/peru/machu-picchu)
 * I created a new page and added the shortcode that was provided. Only one thumbnail
   is coming through (how do I get them all to show up?) and when I click on the
   photo, I get a JavaScript error in Chrome:
 * Uncaught TypeError: Cannot call method ‘open’ of undefined machu-picchu:79
    onclick
 * I am running version WordPress 3.8 and WP Easy Gallery Pro 3.5.
 * [EDIT] I already tried deactivating all other plugins and then testing, but the
   issue is still happening.

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

 *  Thread Starter [jenniferwilhelm](https://wordpress.org/support/users/jenniferwilhelm/)
 * (@jenniferwilhelm)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-33/#post-4476998)
 * Any idea?
 *  Thread Starter [jenniferwilhelm](https://wordpress.org/support/users/jenniferwilhelm/)
 * (@jenniferwilhelm)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-33/#post-4477081)
 * Seriously? Nothing? I can’t believe I paid for the Pro version. 🙁
 *  Plugin Author [hahncgdev](https://wordpress.org/support/users/hahncgdev/)
 * (@hahncgdev)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-33/#post-4477099)
 * Hi,
 * It looks like your theme does not have the required wp_head() hook to allow the
   javascript tags needed for the plugin to be written to the page.
 * You should see these two tags:
 * <script type=’text/javascript’ src=’[http://yoursite.com/wp-content/plugins/wp-easy-gallery-pro/js/jquery.prettyPhoto.js?ver=3.4.2′></script&gt](http://yoursite.com/wp-content/plugins/wp-easy-gallery-pro/js/jquery.prettyPhoto.js?ver=3.4.2′></script&gt);
   
   <script type=’text/javascript’ src=’[http://yoursite.com/wp-content/plugins/wp-easy-gallery-pro/js/EasyGalleryLoader.js?ver=3.4.2′></script&gt](http://yoursite.com/wp-content/plugins/wp-easy-gallery-pro/js/EasyGalleryLoader.js?ver=3.4.2′></script&gt);
 *  Plugin Author [hahncgdev](https://wordpress.org/support/users/hahncgdev/)
 * (@hahncgdev)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-33/#post-4477169)
 * Hi,
 * When requesting support for the pro version, please submit through main website.
   This thread is primarily for free version.
 * Thanks
 * [http://labs.hahncreativegroup.com/wp-easy-gallery-premium/](http://labs.hahncreativegroup.com/wp-easy-gallery-premium/)

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

The topic ‘JavaScript error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-easy-gallery.svg)
 * [WP Easy Gallery - WordPress Gallery Plugin](https://wordpress.org/plugins/wp-easy-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-easy-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-easy-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-easy-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-easy-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-easy-gallery/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 4 replies
 * 2 participants
 * Last reply from: [hahncgdev](https://wordpress.org/support/users/hahncgdev/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-33/#post-4477169)
 * Status: not resolved