Okay
  Public Ticket #1522453
Conflict with Other JS Is Blocking Scrolling in LearnPress
Closed

Comments

  • omniscriptum started the conversation

    In our LearnPress environment, we are actively using LayerSlider for presenting workflow steps and processes. However, LayerSlider seems to be getting into conflict with other LearnPress JS, disabling scrolling on the course pages. Here's the console error:

    main.min.js?ver=3.3.6:121 Uncaught TypeError: Cannot read property 'greensock' of undefined
        at Function.<anonymous> (main.min.js?ver=3.3.6:121)
        at q.check (greensock.js?ver=1.19.0:20)
        at new q (greensock.js?ver=1.19.0:20)
        at a._gsDefine (greensock.js?ver=1.19.0:20)
        at main.min.js?ver=3.3.6:121
        at main.min.js?ver=3.3.6:121
    custom-script-v2.js?ver=3.3.6:1453 Uncaught TypeError: jQuery(...).theiaStickySidebar is not a function
        at HTMLDocument.<anonymous> (custom-script-v2.js?ver=3.3.6:1453)
        at i (jquery.js?ver=1.12.4:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
        at Function.ready (jquery.js?ver=1.12.4:2)
        at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    Disabling the LayerSlider plugin makes LearnPress and scrolling fully work again. Is there a workaround or a software fix we could apply ourselves until the bug is resolved?


    Thanks for your help!

  • [deleted] replied

    Hello omniscriptum,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today.

    I would like to confirm that we have received your message. Due to the nature of the issue you are experiencing, I will have to contact and consult with the development team first. I will get back to you as soon as I can.

    We appreciate your patience while we're working towards your ticket.

  • [deleted] replied

    Hello again,

    The problem is generated by your plugin. It loads an extra instance of Greensock, but does not have built-in sandboxing for it, so it conflicts with LayerSlider as it also loads one.

    You could try to use the Use GreenSock (GSAP) sandboxing option in the Advanced tab of LayerSlider. We've implemented it for issues like this.