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
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
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