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 - 1 through 15 (of 37 total)
  • Plugin Author Phil

    (@philsbury)

    It looks like when Rocket cache is compressing your HTML, it’s also stripping spaces from the JavaScript templates, so:
    {% include “tmpl-wp-age-gate-form-“~t %}

    Has become
    {%include”tmpl-wp-age-gate-form-“~t%}

    This will stop it working. Can you disable the compression, clear the cache and see if that works?

    Thanks

    When I deactivate plugin all works.

    Turned off inline css and js minification and one error left
    Uncaught e.Error

    Plugin Author Phil

    (@philsbury)

    Deactivate which plugin?

    WP Rocket

    Plugin Author Phil

    (@philsbury)

    I think you’ll need to turn off HTML compression too (I’m not 100% familiar with WP Rocket), but that seems to be the one causing the issues.

    I’ve raised an issue with them on their Github to see if they have a solution I can put into the age gate, or they can build into thiers.

    Turned off inline js, and all js minification but new prblem here.
    I see Age vereficantion. but when I click yes nothing happens

    Plugin Author Phil

    (@philsbury)

    OK, that one’s on me! Give me a few minutes and I’ll post an update with a fix

    Tell me please when I can dowload fix

    Plugin Author Phil

    (@philsbury)

    You can now download 1.4.1 which will fix that issue. Make sure you clear any caches etc.

    Now all works fine, but I cant click yes button on Iphone, just doesnot works, you can try.
    Interesting is that you can click no button but not yes… Can you plz check?
    https://eroticmassagepraha.cz/

    Plugin Author Phil

    (@philsbury)

    Worked for me on iPhone and iPad, had to refresh on my desktop though to get the new JS

    Its strange. Checked again and its the same, nothing works.
    If its works for you try to click somewhere, for example menu or buttons, after clicking yes, to ckeck if all works fine

    Plugin Author Phil

    (@philsbury)

    On iPhone it works after I scroll. But I get the video full screen so could be something to do with that. It’s not going to be caused by the age gate though.

    You rly tried on Iphone or some kind of emulator? Or via developer tools google chrome?
    Bcz it doesnt work only on real iphone

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