Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » Slick error, may be related to multiple widgets

  • Have a site that has two gallery widgets. The site produces an error in console (chrome) saying:

    Uncaught TypeError: Cannot read property ‘add’ of null

    It looks like this is related to the slick.js, and may be tied to this: https://github.com/kenwheeler/slick/issues/1953

    It may be because it’s trying to load slick a second time… anyway ngg could fix this?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Imagely

    (@imagely)

    Hi @staze

    I have already shared with you some steps to check for existing conflicts.

    Let me share that again:
    1.- Temporarily deactivate all your plugins except NextGen Gallery.
    2.- Is the problem solved? Then, it was caused by one of your plugins.
    Please check one by one and find the one causing the problem.
    3.- If the problem is not solved with the deactivation of the plugins, try changing to a standard WordPress theme, it could be a conflict with your current theme.

    If you already did this, please let us know.
    We want to be aware of any conflicts with our plugin.
    Many thanks!

    – Gaby

    Completely different issue. I just spun up a completely new test site, completely new install of NGG. Added two slideshow widgets to the page, and got this error.

    Again, it seems to be because it’s trying to add “slick” a second time, but since it’s already there, it errors.

    Uncaught TypeError: Cannot read property 'add' of null
        at e.initADA (slick.min.js:1)
        at e.init (slick.min.js:1)
        at new e (slick.min.js:1)
        at a.fn.init.i.fn.slick (slick.min.js:2)
        at Object.<anonymous> (ngg_basic_slideshow.min.js:1)
        at Function.each (jquery.js:2)
        at HTMLDocument.<anonymous> (ngg_basic_slideshow.min.js:1)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.K (jquery.js:2)

    See link I posted to start with. Somehow NGG needs to be changed to address this. I’m an NGG Pro owner, should I submit this as a ticket there?

    Just updated to 3.1.5 of NGG, and this issue still occurs.

    Plugin Support gabyimagely

    (@gabyimagely)

    Hi @staze

    Unfortunately, WordPress.org doesn’t allow us to address pro support questions here in the free forum. We can only address NextGEN Gallery [Free] questions only.

    We already have ticket number #262264 related to this forum thread.
    We’ll keep the conversation from there.

    – Gaby, Customer Support Imagely

    • This reply was modified 1 year, 1 month ago by gabyimagely.

    Great. Once I get an answer from that ticket, I’ll post back here so people also having this issue can know the outcome.

    Plugin Support gabyimagely

    (@gabyimagely)

    Hi!

    Thank you so much @staze for helping us find the problem.
    The issue is currently in the hands of our developers.
    We’ll keep you posted.

    – Gaby – Customer Support

    Hi, same error here using pro version. I updated ngg and ngg pro but issue is still there…

    Uncaught TypeError: Cannot read property ‘add’ of null
    at e.initADA (slick.min.js?ver=3.1.6:1)
    at e.init (slick.min.js?ver=3.1.6:1)
    at new e (slick.min.js?ver=3.1.6:1)
    at a.fn.init.i.fn.slick (slick.min.js?ver=3.1.6:2)
    at Object.<anonymous> (ngg_basic_slideshow.min.js?ver=3.1.6:1)
    at Function.each (jquery.js?ver=1.12.4:2)
    at HTMLDocument.<anonymous> (ngg_basic_slideshow.min.js?ver=3.1.6:1)
    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)

    Plugin Support gabyimagely

    (@gabyimagely)

    Hi @staze

    A quick update:
    Your bug report is currently on the status “Waiting on customer”.
    We are waiting for some feedback.
    Again, many thanks!

    @marknopfler

    We want to help you troubleshoot this issue you see with this particular error message. Unfortunately, WordPress.org doesn’t allow us to address pro support questions here in the free forum. We can only address the NextGEN Gallery [Free] questions only. Please submit a support request through your member account here: http://www.imagely.com/account.

    – Gaby, Customer Support.

    Hi @gabyimagely,

    I’m not seeing one as waiting for customer. Both say “In Process”.

    Could you mean the other ticket that’s been filed under this bug?

    Plugin Support gabyimagely

    (@gabyimagely)

    Hi @staze

    Apologies. You have two bug reports and two forum threads.
    I was writing about this other bug report: “NextGEN Pro – slick.min.js error” #272014.

    In our last communication, you mentioned this “I will update WordPress and I will see if it is fixed. I’ll tell you…”

    So, that’s why it’s currently waiting for some feedback.

    Feel free to write us back!

    – Gaby, Customer Support.

    Sorry, I don’t see that bug on your site… I see 266063 and 262264.

    Both of those are waiting on developers I believe….

    Plugin Support gabyimagely

    (@gabyimagely)

    Hello @staze

    Apologies
    The issue is was that we had two tickets on the same forum thread.
    But the other one is from another user @marknopfler.

    Again, We are sorry.

    – Gaby, Customer Support.

    Was there ever a solution for this slick.js error ? Please share.

    • This reply was modified 9 months, 2 weeks ago by brianWP.

    Not that I’m aware of.

    Got it working (on free version). If you’re using the basic slideshow gallery, open the file /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/static/slideshow/ngg_basic_slideshow.min.js

    and change it to this https://pastebin.com/3ytzp9WM

    You’re simply fixing the slick js being initialized every time there’s a gallery on a page – .not(‘.slick-initialized’).slick({})

    You’ll have to flush the cache to see the changes to this file as it’s versioned in the queue. Or you could dequeue that js file and create your own so that you’re not editing the core plugin files.

    Hope that helps.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Slick error, may be related to multiple widgets’ is closed to new replies.