Title: Found js error.
Last modified: November 13, 2018

---

# Found js error.

 *  Resolved [dr5598](https://wordpress.org/support/users/dr5598/)
 * (@dr5598)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/found-js-error/)
 * TypeError: this.$ is not a function coursepress-unitsbuilder.js: 1459:6
 * This is causing the units module to stop loading half way through.
 *     ```
       this.module_collection.fetch({
       	success: function() {
           //this.$('.unit-save-button').removeClass( 'disabled' );
       		}
       	});
       ```
   
 * I commented out the offending line, and the unit builder seems to work great 
   now! I just downloaded this system and it’s the best I have ever seen.
    Thank
   you! Version 4.9.8

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

 *  Thread Starter [dr5598](https://wordpress.org/support/users/dr5598/)
 * (@dr5598)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/found-js-error/#post-10877593)
 * While that worked, only when I click on save units, it doesn’t save the content
   in lower ‘section’.
 *  Thread Starter [dr5598](https://wordpress.org/support/users/dr5598/)
 * (@dr5598)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/found-js-error/#post-10877653)
 * I changed it to this… (I’m not very good at ‘this’ with javascript):
 *     ```
       			this.module_collection.fetch({
       				success: function() {
       					this.$('.unit-save-button')
       					.removeClass( 'disabled' );
       				}
       			});
       ```
   
 * Everything in the sections, below the unit saves to the database except for the
   content.
    I would really like this to work. Thanks.
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/found-js-error/#post-10885154)
 * Hello there [@dr5598](https://wordpress.org/support/users/dr5598/),
 * hope you’re doing good today and please excuse our late response here.
 * I tried to replicate this error with no avail though… could you please share 
   some more specific steps that we could follow to see this in action?
 * Also, can you please contact your hosting provider and make sure that the server
   you’re using is supporting [PUT method](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT)?
 * Warm regards,
    Dimitris
 *  Thread Starter [dr5598](https://wordpress.org/support/users/dr5598/)
 * (@dr5598)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/found-js-error/#post-10885554)
 * It is… I have my own dedicated server centos/whm with knownhost. But firefox 
   and chrome balked at this line:
 * TypeError: this.$ is not a function coursepress-unitsbuilder.js: 1459:6
 * In the end, I modified the line to:
 *     ```
       this.module_collection.fetch({
       				success: function() {
       					this.$('.unit-save-button')
       					.removeClass( 'disabled' );
       				}
       			});
       ```
   
 * The sections were displayed, but no data was ever able to be saved.
    Fwiw, I’ve
   been working with perl/php/javascript for many (20) years. I tried to get this
   system to work for more than a day. I’ve also authored a few plugins as well.
   Unfortunately I’m not as skilled in javascript like you guys are. It’s grown 
   exponentially in the last 10 years, too much to comprehend.
 * I must say though, if this little error could be solved, I would rate it by far
   the best lms plug-in in the world.
    Take care and thanks…
 *  Thread Starter [dr5598](https://wordpress.org/support/users/dr5598/)
 * (@dr5598)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/found-js-error/#post-10885569)
 * CENTOS 7.5 virtuozzo [host] v74.0.10
    Apache 2.4 php 7.1 (via easy apache 4).
   Ummm… let me double check my root httpd config.
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/found-js-error/#post-10911588)
 * Hello there [@dr5598](https://wordpress.org/support/users/dr5598/),
 * hope you’re doing good and I’m really sorry for the late response here.
    Could
   you please send me an email in **[contact@wpmudev.org](https://wordpress.org/support/topic/found-js-error/contact@wpmudev.org?output_format=md)**
   using this template:
 * > Subject: “**Attn: Dimitris**”
   > – link back to this thread for reference
 * Keep in mind the subject line as ensures that it gets assigned to me.
    Thank 
   you, Dimitris

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

The topic ‘Found js error.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/coursepress_f7e9b6.svg)
 * [CoursePress Learning Management System](https://wordpress.org/plugins/coursepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/coursepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/coursepress/)
 * [Active Topics](https://wordpress.org/support/plugin/coursepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/coursepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/coursepress/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/found-js-error/#post-10911588)
 * Status: resolved