• Resolved mlummus

    (@mlummus)


    While debugging why other features on our site were not working I came across this error in the console.

    “jQuery(this).hideShow” is not a function

    The line in question is from line 74 in this file
    /plugins/photo-gallery/js/bwg_frontend.js?ver=1.5.14

    I have seen caching and minification being referenced as a possible cause for the issue, however we are not doing that on this particular site.

    The main issue here is not even that the photo gallery isn’t working but it is creating errors that are uncaught and bubbling to the main JS thread, thus preventing other scripts on the page to work. There is no additional error handling or IIFE wrappers to prevent the bubbling.

    For now I have just manually updated that script in the plugin and added a try{} catch(e){} block around the line that is creating the error.

    That is at least preventing the plugin from breaking other scripts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Most likely you have this issue because of a conflict. It seems like jQuery cannot connect successfully.

    Could you please disable all the plugins and activate them one by one to check which one arises the conflict?

    If this does not help, please change the theme you have installed.

    Let us know what result you get.

    Thread Starter mlummus

    (@mlummus)

    @suziekh Thanks for the reply.

    That seems very likely and we can certainly try to narrow it down to find the conflict.

    I think the problem here still is that if the plugin can’t access what it needs it should catch that error and log it but not let it bubble up.

    In other words, totally understandable that it can run into a jQuery conflict but not okay that it breaks otherwise working scripts.

    I think a big reason for that is that jQuery conflicts can be common since so many libraries use it.

    I will reply later if I can narrow down what else may be conflicting.

    • This reply was modified 7 years, 2 months ago by mlummus.
    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    Have you deactivated other Plugins and changed the Theme?

    Thank you!

    Have a nice day!

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

The topic ‘jQuery error breaking the main thread’ is closed to new replies.