• Resolved lmco

    (@lmco)


    Hi,

    The Age Gate plugin isn’t working on mobile (desktop works ok). Disabled caching and several others plugins but still doesn’t work.

    I’ve caught the following console errors, not sure if related:

    age-gate.js?ver=3.1.1:2 Uncaught TypeError: Cannot read properties of null (reading 'removeChild')
        at HTMLDivElement.<anonymous> (age-gate.js?ver=3.1.1:2:80164)
    (anonymous) @ age-gate.js?ver=3.1.1:2
    age-gate.js?ver=3.1.1:2 Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
        at L (age-gate.js?ver=3.1.1:2:77607)
        at s (age-gate.js?ver=3.1.1:2:67993)
        at age-gate.js?ver=3.1.1:2:78720
        at f (age-gate.js?ver=3.1.1:2:69483)
        at Generator._invoke (age-gate.js?ver=3.1.1:2:69236)
        at Generator.next (age-gate.js?ver=3.1.1:2:69846)
        at l (age-gate.js?ver=3.1.1:2:74718)
        at a (age-gate.js?ver=3.1.1:2:74921)
    L @ age-gate.js?ver=3.1.1:2
    s @ age-gate.js?ver=3.1.1:2
    (anonymous) @ age-gate.js?ver=3.1.1:2
    f @ age-gate.js?ver=3.1.1:2
    (anonymous) @ age-gate.js?ver=3.1.1:2
    (anonymous) @ age-gate.js?ver=3.1.1:2
    l @ age-gate.js?ver=3.1.1:2
    a @ age-gate.js?ver=3.1.1:2
    Promise.then (async)
    l @ age-gate.js?ver=3.1.1:2
    a @ age-gate.js?ver=3.1.1:2
    (anonymous) @ age-gate.js?ver=3.1.1:2
    (anonymous) @ age-gate.js?ver=3.1.1:2
    (anonymous) @ age-gate.js?ver=3.1.1:2
    age-gate.js?ver=3.1.1:2 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'innerHTML')
        at age-gate.js?ver=3.1.1:2:78902
        at f (age-gate.js?ver=3.1.1:2:69483)
        at Generator._invoke (age-gate.js?ver=3.1.1:2:69236)
        at Generator.next (age-gate.js?ver=3.1.1:2:69846)
        at l (age-gate.js?ver=3.1.1:2:74718)
        at a (age-gate.js?ver=3.1.1:2:74921)

    Any help appreciated.

    Thanks,

    Luis

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @lmco,

    I’m not getting that error, but I do see that “pre-loader plus” is stopping the fade affect when age gate is passed. I think the first thing to try is just to set the age gate transition to “none” in the Appearance settings and see if that makes things accessible at least.

    I’ll see if I can work out why it’s trumping out styles in the meantime, but it does look like its a bit greedy on it’s selectors. But it only affecting mobile is also a bit of a head scratcher!

    Give the transition a try and let me know if it at least then gives the site, if not I’ll dig some more!

    Thanks
    Phil

    Thread Starter lmco

    (@lmco)

    Hi,

    The transition did the trick and it’s working fine now.

    Thanks for your help.

    Best

    Luis Osorio

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Age Gate not working on mobile’ is closed to new replies.