Title: ibari's Replies | WordPress.org

---

# ibari

  [  ](https://wordpress.org/support/users/ibari/)

 *   [Profile](https://wordpress.org/support/users/ibari/)
 *   [Topics Started](https://wordpress.org/support/users/ibari/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ibari/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ibari/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ibari/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ibari/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ibari/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Simple Galleries] [Plugin: WP Simple Galleries] wp-simple-gallries-button without function](https://wordpress.org/support/topic/plugin-wp-simple-galleries-wp-simple-gallries-button-without-function/)
 *  [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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Simple Galleries] [Plugin: WP Simple Galleries] wp-simple-gallries-button without function](https://wordpress.org/support/topic/plugin-wp-simple-galleries-wp-simple-gallries-button-without-function/)
 *  [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

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