• Tobias

    (@oneside)


    After updating WordPress and all plugins I get this Javascript error from the plugin:

    Uncaught TypeError: $.uniqueSort is not a function
        at HTMLDocument.<anonymous> (front.js?ver=2.3.1:609)
        at HTMLDocument.dispatch (jquery.js:4435)
        at HTMLDocument.r.handle (jquery.js:4121)
        at Object.trigger (jquery.js:4350)
        at init_rl (front.js?ver=2.3.1:130)
        at HTMLDocument.<anonymous> (front.js?ver=2.3.1:43)
        at j (jquery.js:3099)
        at Object.fireWith [as resolveWith] (jquery.js:3211)
        at Function.ready (jquery.js:3417)
        at HTMLDocument.I (jquery.js:3433)

    Any ideas?
    Thanks for your support.
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • stellablue22

    (@stellablue22)

    Hi,

    Could be a jQuery issue as WordPress and a lot of plugins are transitioning to jQuery 3. If you aren’t running the jQuery Migrate Helper plugin, try that. You may also need to force jQuery version that WordPress is using in the jQuery Migrate settings.

    Try another browser and/or device. Clear browser cache or force hard refresh. If you just did numerous upgrades, browser may be caching some js which can cause issues.

    Good Luck – SB

    Thread Starter Tobias

    (@oneside)

    jQuery Migrate Helper plugin did not help.
    The error is gone when I disable the Responsive Lightbox & Gallery plugin.

    stellablue22

    (@stellablue22)

    Tobias,

    jQuery Migrate Helper is a good plugin to run but doesn’t fix everything.

    $.uniqueSort() is a jQuery 3.0+ function (link). Prior to jQuery 3, it was $.unique().

    You could try:

    • Change the default lightbox. Line #609 in front.js is associated with the TosRus lightbox.
    • Reset the RLG plugin settings to defaults. Make note of current settings so you can set back if needed.
    • Disable all plugins but RLG. If no error, active plugins one at a time.
    • Downgrade to a previous version of RLG.
    • You could debug it in the browser developer tools and see why uniqueSort() is not a function.
    • Install a clean wordpress for testing and try RLG out-of-box. If it works, work towards current setup and see. Can be a bit of work but sometimes what you have to do.
    • If you have link to page, it might help
    • You probably already tried, but create new post or page and add a new RLG gallery and see. Maybe isolated issue with specific gallery

    Above options are not listed in any particular order and are independent things to try. However, they are listed in the order that I might try them.

    I am running RLG on latest wordpress and don’t see that error. So, something is unique in your case.

    Good luck with it – SB

    Plugin Author dFactory

    (@dfactory)

    Hi,

    This issue should be fixed in just released version 2.3.2
    Please update and check

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

The topic ‘JS Error $.uniqueSort is not a function’ is closed to new replies.