• Hi there,

    Currently I am experiencing a weird error with the Age Gate plug-in. The following error displays in the console:

    Uncaught TypeError: Cannot read properties of null (reading ‘removeChild’)
    at HTMLDivElement.<anonymous> (age-gate.js?ver=3.0.9:2:79999)

    This happens whenever someone enters their birthdate. The pop-up does not disappear, only after someone clicks on the pop-up (after the birthdate has been inputted). When the pop-up then disappears, the console error is shown.

    Is this a known error, and can we solve this? Currently all visitors are having a buggy-experience (since it is not known that an extra click, anywhere, is needed).

    Looking forward hearing,

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Chiel Oude Breuil

    (@chiel-oude-breuil)

    Is there any up-date on this? As it makes the plug-in quite useless.

    Plugin Author Phil

    (@philsbury)

    Hi @chiel-oude-breuil,

    Apologies, I’ve been trying to reproduce this with various combinations of settings where removeChild is used, but so far can’t make it happen to me.

    To you have any other popups like cookie banners, we sometimes get conflicting things like the “focus trap”, so be good to know if theres any thing that and I can dig more into it

    Thanks
    Phil

    Thread Starter Chiel Oude Breuil

    (@chiel-oude-breuil)

    Hi Phil,

    First of all: thanks for responding and your effort.

    Are there particular settings which might resolve this issue for now? E.g. which do not make use of removeChild.

    The odd part is that it does work after click, after the DD/MM/YYYY is given and processed (the dots show to be working). But not on the first click/ after it is processed (dots disappearing again).

    It is running on an Elementor website, no cookie banner or whatsoever. Do you have an e-mail. I can share te URL then.

    Thanks, Chiel

    Plugin Author Phil

    (@philsbury)

    Hi @chiel-oude-breuil,

    Sorry for the delay (again!), there’s a contact form on our site that’s probably the best way to go if you want to keep the url away from the forums (it’s on the v3 page).

    Thanks
    Phil

    Thread Starter Chiel Oude Breuil

    (@chiel-oude-breuil)

    Hi Phil,

    Some time ago I have submitted the issue through the form, with the corresponding web-address. Were you able to have a look yet?

    Chiel

    Plugin Author Phil

    (@philsbury)

    Hi @chiel-oude-breuil,

    Sorry – yes I’ve seen it on your site and tried to replicate on mine but so far haven’t been able to get the same error. Got a bit of time now so going to try again.

    Will let you know if I get a solution or not.

    Thanks
    Phil

    Plugin Author Phil

    (@philsbury)

    Hi again @chiel-oude-breuil,

    A quicker an more fruitful debug suggests its the “Transition” in the appearance setting causing this, if you set it to none, does the issue stop?

    Going to work out the problem though!

    Thanks
    Phil

    Plugin Author Phil

    (@philsbury)

    Hi again @chiel-oude-breuil,

    I think if you re-select the transition “up” it’ll fix it. I think the transition classname got changed somewhere so its applying the wrong class and so not transitioning and therefore never finishing that transition and not removing itself.

    Thanks
    Phil

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Console error: removeChild() not working’ is closed to new replies.