• Hi,
    unfortunately age gate no longer saves the choice.
    It worked, but it doesn’t work after installing WP Fastest Cache.
    So I checked “Use uncachable version” to work with the caching system, but so a blank page appears instead of the age request page. I don’t know how to fix it.

    Thank you
    Steven

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

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

    (@philsbury)

    Hi @stevenweb,

    You have a caching plugin enabled but are using age gate in PHP mode. That means even though you pass, the cache gives you the form again.

    Set age gate to javascript mode in Age Gate -> Advanced, then clear your cache.

    Thanks
    Phil

    Thread Starter StevenWeb

    (@stevenweb)

    Hi. As said earlier, I have activated javascript mode, but the white screen appears instead of the age request form, so I had reactivated php mode.
    Now as you can see I have reactivated javascript mode and cleared the cache but it doesn’t work (white screen).

    Steven

    Plugin Author Phil

    (@philsbury)

    Hi @stevenweb,

    Sorry, I missed that part.

    It looks like something is messing up the javascript template. A load of it seems to be missing, and where the loading SVG ends there’s no closing tag

    repeatCount="indefinite"/> <div class="age-gate" role="dialog"

    vs

    repeatCount="indefinite"/></path></svg> </div><div class="age-gate" role="dialog"

    Essentially, the browser thinks the form is inside the SVG which is why the white screen.

    As the code Age Gate outputs isn’t what’s on your site, seems something is probably doing some cleaning. I can see a comment at the end of the code saying “Parsed with iubenda experimental class”. is that your cookie notice? Can you try disabling it just to see if that fixes the problem?
    It’s possible it’s the cache plugin too so try to disable that too. Both temporarily to see if one is the cause.

    Thanks
    Phil

    Thread Starter StevenWeb

    (@stevenweb)

    Hi, ok it works disabling cookie plugin. I changed this plugin parsing mode and now it still works.
    But is there a way to show the age request form only if the consent to cookies has been given?

    Thank you!

    Steven

    Plugin Author Phil

    (@philsbury)

    Hi Steven,

    There’s possibly a couple of ways to do this, but the code base is going to change quite a lot in the next couple of days.

    The easiest way is with a filter to see if the cookie is set. That is currently possible in the PHP mode but slightly trickier in the JS version. Will investigate the best way to work with multiple cookie banners.

    Thanks
    Phil

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Age Gate doesn’t save the age data’ is closed to new replies.