• Resolved hayatoyu

    (@hayatoyu)


    Hi,
    We’re using age gate for several sites and we updated it to 3.0 version this morning.
    However, after the update the age gate doesn’t work and the site was totally blocked since the age input fields doesn’t show.
    You can compare with the live site, which restored from backup and now works fine, to see what it like. The live site is https://spectrumleaf.com/
    Could you help us fix it?

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter hayatoyu

    (@hayatoyu)

    Hi,
    I found there was a error message “Age Gate is having trouble contacting the WordPress REST API. Is something blocking it?”

    We’re using Wordfence Security and GDPR Cookie Compliance. Could it be the issue?

    Plugin Author Phil

    (@philsbury)

    Hi @hayatoyu,

    In v3 only the rest api is supported, in v2 you could use admin ajax too. It seems something is blocking access to the API, which is why you get that error.

    However, I wouldn’t expect the render issues on your staging site, so will have a look and try to replicate.

    Thanks
    Phil

    Plugin Author Phil

    (@philsbury)

    API seems fine to me, so I’ll try adding the plugins you mentioned and will have a look.

    Thread Starter hayatoyu

    (@hayatoyu)

    Hi Phil,
    I can provide you an access to the staging site so that you can test the error on the site. Would it be help to you?

    Plugin Author Phil

    (@philsbury)

    Hi @hayatoyu,

    Looks like these are primarily style issues where little bits of have been tweaked between v2 and v3. Some I think I’ll need to roll into the default style, but here’s a rundown:

    
    /* A couple of variable overrides */
    :root {
        --ag-form-z-index: 9901;
        --ag-button-color-background: transparent;
        --ag-form-max-width: 450px;
        --ag-form-padding: 0;
        --ag-button-radius: 0;
    }
    /* This was on age-gate-form before */
    .age-gate {
        max-width: 450px;
    }
    
    /* I this should be in the core styles, I'll add, but for now */
    .age-gate-form {
        align-items: center;
    }
    
    /* age-gate-submit is now a wrapping div */
    .age-gate-submit {
        width: 100%;
    }
    
    /* and the button is now this */
    button.age-gate-button {
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 1px;
    }
    
    /* The logo class has changed to this */
    .age-gate-heading-title-logo {
        max-width: 65px;
    }

    It also looks like the transparency is missing, so will need to check the settings for that.

    Thanks
    Phil

    Hi @hayatoyu!

    Where can you find this error (Age Gate is having trouble contacting the WordPress REST API. Is something blocking it?) ?
    I have same problem but no error. I tied find in error.log, wordpress debug.log or CPanel own error.log, but no success. We use Cloudflare, but there was no problem too..

    If I turn this plugin enable in admin, then I get 503 error. If disable, no problem.

    Thanks!

    Balazs

    Plugin Author Phil

    (@philsbury)

    Hi @hirmagazin,

    I think in the case above it was a false negative, but it’ll show in the Age Gate settings screens.

    As I say, could be a false flag so fell free to open a topic if you’re having issues.

    Thanks,
    Phil

    Thread Starter hayatoyu

    (@hayatoyu)

    Hi @philsbury ,
    It’s OK now. Also the error message is gone after I update to 3.0.3. Thanks a lot.

    Hi @hirmagazin ,
    The message appeared at the top of Dashboard > Home. However, I didn’t find any errors in logs either and I think it may be a false negative. After I update age gate to 3.0.3 the error message is gone now.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Age gate 3.0 doesn’t load properly’ is closed to new replies.