• I’m currently getting this error in console when loading my site

    Uncaught TypeError: window.ASL.getScope is not a function
    at Object.window.ASL.initialize (jquery.ajaxsearchlite.min.js:3)
    at jquery.ajaxsearchlite.min.js:3
    jquery.ajaxsearchlite.min.js:3 Uncaught TypeError: window.ASL.getScope is not a function
    at Object.window.ASL.initialize (jquery.ajaxsearchlite.min.js:3)
    at jquery.ajaxsearchlite.min.js:3

    Please advise if possible

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi!

    Sounds like there might be either a minification issue, or the localization is duplicated during the minification process.

    Try the following:

    1. Open up the Compatibility Settings submenu under Ajax Search Lite menu
    2. Change the JavaScript source option to ‘Minified scoped’, like so: https://i.imgur.com/rbZmP7t.png
    3. Save the options and try re-loading the page. Make sure to clear your cache, and reload by hitting CTRL + R in your browser.

    If this does not work, then there is a good chance that the localization script is printed multiple times, which is might be caused by an asset minifier plugin or something similar. In that case the only resolution is to fix that duplication within the minifier plugin/process.

    If there is a working URL where I can check the issue, I might be able to tell if that is the case.

    Thread Starter jonneh91

    (@jonneh91)

    Hi!

    There is no minifying plugin and the “minified scope” change did not work.

    You can have a look at this link: https://shoutkey.com/pea

    It will take you to an intro page but you can press the menu button in the top left and select “home” and you will see the error as the search bar is on the home page.

    Thread Starter jonneh91

    (@jonneh91)

    Updated link: https://shoutkey.com/at

    Plugin Author wpdreams

    (@wpdreams)

    Hi!

    I’m guessing it might be related to the ajax page loading feature, at least the error yields at that moment.

    Are you using any ajax page loader plugin, or was that feature part of your theme? I would like to replicate the issue, to see if there is anything I can do to prevent it.

    Thread Starter jonneh91

    (@jonneh91)

    Hi!

    Yes, my theme heavily utilizes ajax loader and dynamic page loading as the site was converted to an app and this is a important for increased performance.

    Thread Starter jonneh91

    (@jonneh91)

    Hello, just checking if there is any update? Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘JS Error’ is closed to new replies.