• 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 1 replies (of 1 total)
  • 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://www.ads-software.com/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.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with Loading Modules in Coursepress: Modules not loading and stuck’ is closed to new replies.