Support » Plugin: Age Gate » Bug with WP rocket chacing plugin

  • Hello, I installed your plugin and WP Rocket cache and now I got errors like this:

    twig.min.js:8 TwigException: Unable to parse ‘include”tmpl-wp-age-gate-form-“~t’
    undefined.console.undefined.console.error.e.log.error @ twig.min.js:8
    twig.min.js:10 Uncaught TypeError: Cannot read property ‘length’ of undefined
    at i (twig.min.js:10)
    at Object.e.async.forEach (twig.min.js:10)
    at e.Template.e.parse (twig.min.js:8)
    at e.Template.e.parseAsync (twig.min.js:10)
    at e.Template.render (twig.min.js:8)
    at o.showGateway (age-gate-public.js:1)
    at o.verifyUser (age-gate-public.js:1)
    at new o (age-gate-public.js:1)
    at age-gate-public.js:1
    at age-gate-public.js:1
    twig.min.js:8 Uncaught e.Error

    Can you help me? Link to page where is plugin enabled https://eroticmassagepraha.cz/relaxacni-masaz/ you can see errors in console

Viewing 15 replies - 16 through 30 (of 37 total)
  • Plugin Author Phil

    (@philsbury)

    Was a real iPhone 6s. Here’s a screen shot of the open nav
    http://imgur.com/a/7gH45

    As I say, anything after the age gate is not an issue from the plugin

    But I still cant click yes button, tested it on 3 Iphones. I can click only no button…

    Plugin Author Phil

    (@philsbury)

    Have you cleared the cache, and done a couple of refreshes on the iPhones to make sure they get the new items? Even clear the iPhone cache if it helps.

    Or try disabling the cache to try.

    Are you getting any errors in the Safari console?

    It’s been tested it in my own environments on iPhones etc and everything is fine.

    Yes I cleared chace and used incognito mode. Tested on Chrome and Safari (Iphone), its wont work in inkognito.
    But if you use normal mode it works. Its strange, its not about another plugins.

    Try yourself. Go to anonymous mode in Chrome or safari and try to click…

    Plugin Author Phil

    (@philsbury)

    Ah, I see. For various reasons, the age gate uses local Session Storage to set whether a user has passed the age gate or not. It looks like Safari on desktop and anything that uses the webkit wrapper on iOS blocks local storage when in private/incognito.

    I’ll probably have to alter the behaviour to use standard cookies if local storage is not available.

    Leave it with me, I’ll look into changing it but it may take a day or so.

    Cheers

    Plugin Author Phil

    (@philsbury)

    Ok, I don’t think it was as difficult so if you want to try out an alpha version of the change it’s here:
    https://www.dropbox.com/s/t6ip2vvcoxpgiy8/age-gate-1.4.2-alpha.zip?dl=0

    It’s not been thoroughly tested but see if it works for you and I can then merge it into the released version

    Hm, now I think it works fine. Thanks

    Plugin Author Phil

    (@philsbury)

    Using the 1.4.2 alpha?

    Yes

    Plugin Author Phil

    (@philsbury)

    Great, I’ll do some more testing on it and then officially release it

    Hello, can you plz help me, now I find another problem. When you click yes on age gate, video from bg will open on fullscreen. Its strange bcz if I turned off age gate it wont open on fullscreen on page load…
    Can you plz look at it?

    Plugin Author Phil

    (@philsbury)

    What’s happening here is the Age gate hides all the content so scripts that then try to access elements can’t. I’ll looking to a good fixed for it, but in the meantime here’s an Alpha2 build. This will refresh the page once the agegate is passed rather than just hide/show elements. Let me know if it works for you.

    https://www.dropbox.com/s/5sfol97vgi0zn0f/age-gate-1.4.2-alpha2.zip?dl=0

    Thank you again. Now all is fine!

    Plugin Author Phil

    (@philsbury)

    Great stuff, that may well be my fix you that then! 🙂

    Hello. New problem, now google robots see in all meta tags age verification title. Its so bad for SEO.
    This is example – http://joxi.ru/L219MZGt8NLxR2
    All meta tags got Age verification in title. How to fix it? I thought that this plugin doesnt show to google bot at all.

Viewing 15 replies - 16 through 30 (of 37 total)
  • The topic ‘Bug with WP rocket chacing plugin’ is closed to new replies.