Support » Plugin: CoursePress Learning Management System » Problem with Loading Modules in Coursepress: Modules not loading and stuck

  • A few weeks ago coursepress was working perfectly. But now if i’m opening a course to modify some things, it won’t show the modules. It says: “Loading modules…” and this won’t complete. I opened up the console to find this error:
    “coursepress-unitsbui…r.js?ver=2.2.2:1459 Uncaught TypeError: this.$ is not a function
    at success (coursepress-unitsbui…r.js?ver=2.2.2:1459)
    at Object.i.success (backbone.min.js?ver=1.4.0:1)
    at i (load-scripts.php?c=0…y-ui-tabs&ver=5.3:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0…y-ui-tabs&ver=5.3:2)
    at x (load-scripts.php?c=0…y-ui-tabs&ver=5.3:4)
    at XMLHttpRequest.c (load-scripts.php?c=0…y-ui-tabs&ver=5.3:4)

    I need some help with this. I’m using Chrome as my browser. I’d upgraded to WordPress 5.3 before the plugin stopped working. I’ve since downgraded to WP 5.2.4 and it’s still giving the same error. Please help.

    Thanks,
    Vishal

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Same problem here for weeks now. No solution for the creators, so time to look for someting else that works…

    Well, i have the same problem here.

    Analyzing the console, I realized that the problem was in the way jQuery is called. I went to check what changed with that in the update of WordPress to 5.3 and I saw the reference to this error “Uncaught TypeError: $ is not a function” in this post here: https://wordpress.org/support/topic/read-this-first-wordpress-5-3-master-list/#post-12124062

    I searched about it and managed to solve (for now) my problem by changing the following file:

    wp-content/plugins/coursepress/2.0/asset/js/coursepress-unitsbuilder.js

    in the line 1459, i change $ for jQuery, getting like this:

    this.jQuery(‘.unit-save-button’).removeClass( ‘disabled’ );

    Remembering, back up the files you want to change. I’m still testing, but so far everything is ok.

    Thanx this works!

    I can’t seem to get it to work for me. Do I just place that code in line 1459 or do I replace something. In Line 1459 I see this.contentView.parentView = this;
    Thanks for any assist.

    • This reply was modified 9 months, 1 week ago by phelpsdesign.

    Then you have another or edited version (that is line 1412)

    Find:

    this.$(‘.unit-save-button’).removeClass( ‘disabled’ )

    Replace it with:

    this.jQuery(‘.unit-save-button’).removeClass( ‘disabled’ );

    This didn’t work for me either…
    I tried changing the one… then tried all of them. Neither worked. I don’t know enough to try again.

    Help would be fabulous.

    guuust

    (@guuust)

    Are you using the latest version? As ‘phelpsdesign’ did mention another line older versions could give multiple problems, ‘daniduarte’ gives a solution for the problem when using the latest version.

    itfitsme

    (@itfitspt)

    I did a search using ctrl + f and found the entry on the line 1459 and apparently on line 2282. I’ve changed both.
    I still have the below info coming up when I enter ctrl+shift+j

    coursepress-unitsbuilder.js?ver=2.2.0:1459 Uncaught TypeError: this.$ is not a function
    at success (coursepress-unitsbuilder.js?ver=2.2.0:1459)
    at Object.i.success (backbone.min.js?ver=1.4.0:1)
    at i (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:2)
    at x (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:4)
    at XMLHttpRequest.c (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:4)

    I ve got the same problem, did somebody solved it with the newest version of wordpress. I used this : this.$(‘.unit-save-button’).removeClass( ‘disabled’ )

    Replace it with:

    this.jQuery(‘.unit-save-button’).removeClass( ‘disabled’ );

    but it doesn’t matter, still not working.
    Hey, @itfitspt how did you solved it?

    Experiencing the same issue with all other Plugins disabled would really value a solution.

    @wpmudev-support6 Can you help?

    @wpmudev-support6 can you help us with this problem? thank you

    I have just started getting the same problem (can’t load or edit the units) on a client’s site, and he’s desperate to get his new course live.

    I’ve tried the: this.jQuery(‘.unit-save-button’).removeClass( ‘disabled’ ); thing, but no joy.

    Did anyone get any further with this?

    gpaxtor

    (@gpaxtor)

    Thaks you @daniduarte it worked

    Gracias, funciono

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.