Title: [Plugin: WP Simple Galleries] wp-simple-gallries-button without function
Last modified: August 20, 2016

---

# [Plugin: WP Simple Galleries] wp-simple-gallries-button without function

 *  Resolved [uwest](https://wordpress.org/support/users/uwest/)
 * (@uwest)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-simple-galleries-wp-simple-gallries-button-without-function/)
 * I installed the plugin and activated it. After that i can see the button “uplaod
   image” of the simple-gallery. After clicking the button nothing happend. Did 
   not the plugin working with wp-version 3.1? Can someone help me please or tell
   me a plugin that works like the simple gallery? Thanks, Uwest
 * [http://wordpress.org/extend/plugins/wp-simple-galleries/](http://wordpress.org/extend/plugins/wp-simple-galleries/)

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

 *  Plugin Author [Matthew McConnell](https://wordpress.org/support/users/maca134/)
 * (@maca134)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-simple-galleries-wp-simple-gallries-button-without-function/#post-2538606)
 * Hey
 * Are there any javascript errors happening? It maybe possible that another plugin
   is interfering with the gallery
 * Maca134
 *  [ibari](https://wordpress.org/support/users/ibari/)
 * (@ibari)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-simple-galleries-wp-simple-gallries-button-without-function/#post-2538741)
 * Hi,
 * The plugin is clean and simple. Thank you. I’ve installed it on 2 different projects
   and I get this js error after clicking ‘Insert into Post’ on an image in the 
   Media Library:
 * $(html).find(“img”).attr(“class”) is undefined
 * Line 22 of wp-simple-gallery-admin.js version 1.22. Looks like the class ‘wp-
   image-[#] can’t be found. I’ve deactivated all other plugins to isolate. This
   happens when using both the older and newer image uploaders in WP. Any help is
   appreciated.
 * Thanks
 *  [ibari](https://wordpress.org/support/users/ibari/)
 * (@ibari)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-simple-galleries-wp-simple-gallries-button-without-function/#post-2538742)
 * Hi,
 * Apparently, it’s the find(“img”) that’s looking for non-existing descendent elements
   and returning undefined. Changing
 * var imageid = jQuery(html).find(‘img’).attr(‘class’).match(/wp\-image\-([0-9]
   +)/)[1];
 * to
 * var imageid = jQuery(html).attr(‘class’).match(/wp\-image\-([0-9]+)/)[1];
 * seems to solve the problem.
 *  Plugin Author [Matthew McConnell](https://wordpress.org/support/users/maca134/)
 * (@maca134)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-simple-galleries-wp-simple-gallries-button-without-function/#post-2538743)
 * Hey
    Thanks for the correction will get it tested and will update the plugin 
   asap
 * Cheers again
    Maca134

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

The topic ‘[Plugin: WP Simple Galleries] wp-simple-gallries-button without function’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-simple-galleries_7f8da9.svg)
 * [WP Simple Galleries](https://wordpress.org/plugins/wp-simple-galleries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-simple-galleries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simple-galleries/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simple-galleries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simple-galleries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simple-galleries/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Matthew McConnell](https://wordpress.org/support/users/maca134/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-simple-galleries-wp-simple-gallries-button-without-function/#post-2538743)
 * Status: resolved