• Resolved lexiyo8258

    (@lexiyo8258)


    Hello,

    When I click on the floatting button, the modal doesn’t work. There is “Loading…” at the center of the screen and it stucks like that.
    Here is the error I got in browser console:

    main.js?ver=4.3.0:2 Uncaught TypeError: e(...).hide(...).removeClass is not a function
        at n.fn.init.e.fn.moove_lity_open (main.js?ver=4.3.0:2)
        at HTMLDocument.<anonymous> (main.js?ver=4.3.0:2)
        at HTMLDocument.dispatch (jquery.js?ver=1.12.4-wp:3)
        at HTMLDocument.r.handle (jquery.js?ver=1.12.4-wp:3)
        at Object.trigger (jquery.js?ver=1.12.4-wp:3)
        at HTMLDivElement.<anonymous> (jquery.js?ver=1.12.4-wp:3)
        at Function.each (jquery.js?ver=1.12.4-wp:2)
        at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
        at n.fn.init.trigger (jquery.js?ver=1.12.4-wp:3)
        at new w (lity.js:1)

    File : /wp-content/plugins/gdpr-cookie-compliance/dist/scripts/main.js

    How can I fix it please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @lexiyo8258

    Thanks for using our plugins.

    We would recommend you to first check the Developers tools in Google Chrome > Console screen. If you have any javascript errors when de-activating our plugin, you will need to fix those first.

    If your problem persists, please share the URL of the site where our plugin is activate and we can have a look.

    Hope this helps.
    Thanks

    Thread Starter lexiyo8258

    (@lexiyo8258)

    Hi and thank you for your answer.

    I modified this minified JS file \wp-content\plugins\gdpr-cookie-compliance\dist\scripts\main.js to change the order of chained functions.

    I replaced $(“…”).hide().removeClass() with $(“…”).removeClass().hide(). Same for addClass() and show().

    It works but this is not a viable solution at all. Do you have any idea why there were these errors?

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

The topic ‘The modal doesn’t work’ is closed to new replies.