Title: TypeError
Last modified: August 21, 2016

---

# TypeError

 *  [sdesigner](https://wordpress.org/support/users/sdesigner/)
 * (@sdesigner)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/typeerror-1/)
 * Hello,
 * This is very nice plugin, but sometimes while uploading image and inserting following
   error occurs in custom-js.js on line 25.
 * TypeError: classes is undefined
    id = classes.replace(/(.*?)wp-image-/, ”);
 * Thanks in advance!
 * [http://wordpress.org/plugins/sliceshow/](http://wordpress.org/plugins/sliceshow/)

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

 *  [Andrew Mills](https://wordpress.org/support/users/andrewmills/)
 * (@andrewmills)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/typeerror-1/#post-3970715)
 * I want to like this plugin, but am completely unable to upload any pictures into
   it, whether I try to use them from the Media Library or upload from my computer.
   Same error message as stated above.
 * custom-js.js, line 25. Uncaught exception, cannot call replace method on undefined.
 * It looks like the previous line, classes = jQuery(‘img’,html).attr(‘class’); 
   is returning no matches, but the following line assumes it will always find a
   class attribute.
 * Perhaps an if statement that checks classes isn’t undefined first, and then carry
   out lines 25 & 26?
 *  [jolaurin](https://wordpress.org/support/users/jolaurin/)
 * (@jolaurin)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/typeerror-1/#post-3970779)
 * anybody found the issue?
 * It used to work for me but doesn’t work now in my new websites.
 *  [wza](https://wordpress.org/support/users/wza/)
 * (@wza)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/typeerror-1/#post-3970785)
 * same issue here. very annoying. is there a fix for this yet?

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

The topic ‘TypeError’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sliceshow_51603f.svg)
 * [SliceShow](https://wordpress.org/plugins/sliceshow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sliceshow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sliceshow/)
 * [Active Topics](https://wordpress.org/support/plugin/sliceshow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sliceshow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sliceshow/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [wza](https://wordpress.org/support/users/wza/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/typeerror-1/#post-3970785)
 * Status: not resolved