Plugin Author
Phil
(@philsbury)
Hi @sakhlag,
That’s interesting. Is there some caching you need to clear?
Can you send me a link if a cache isn’t the culprit?
Thanks
Phil
Thanks for quick response. Really weird, after several days try, all of the sudden it shows up when I view page live, I didn’t even clear cache. Started working as soon as I wrote above 🙂
Couple areas still stuck.
1- Just did a quick test, by having Yes/No option. I added link to take me to ESPN when clicked NO (as a test). When I click either No or Yes I get the generic error “an error occurred, please try again” any suggestions here?
2- Age gate only shows up when I have setting as Restrict=all content. When I change it to Restrict=select content and go to my WP page section, I don’t see an option to select which pages I want age gate to show vs not.
3- Question, are any of the age gate entries stored on my DB side?
Thanks much.
Sean
Plugin Author
Phil
(@philsbury)
Hi Sean,
Does sound like something was cached an it naturally cleared itself. So For number 1, try clearing any caches
For 2, you’re the second person to say this, so I’m going to investigate it further.
3, no. Only settings get stored. There are hooks if you want to store things in a custom way, or there is a “logs” addon available from the age gate website that stores a range of data.
Will have a look at 2 at some point today.
Thanks
Phil
FYI, as for ^1 issue above, I just cleared cache in both IE and Chrome and still get same generic error “an error occurred, please try again” when I click yes or no
I will wait for your update regarding ^^ 2.
Thx much for your support.
Plugin Author
Phil
(@philsbury)
So that error is normally something blocking access to the API, could be a security plugin or something similar. That’d actually explain why the redirect doesn’t work as that comes back from the API request. IE is no longer officially supported.
A quick look at #2 on my end and all is ok. Will do some further digging though.
Thanks
Phil
Plugin Author
Phil
(@philsbury)
Found the issue on point 2, will get it fixed asap.
Thanks,
Phil
FYI, still facing same issues.
1) I disabled plugins, cleared cache, updated plugin and still get error when I click yes/no
please see link:
https://wordpress-733885-2698217.cloudwaysapps.com/forums/
2) I selected age gate on selected content, but don’t see edit option to determine which pages when I go to WP page section.
I can provide you additional info/screenshots if it helps.
Thx much.
-
This reply was modified 3 years, 8 months ago by
sakhlag.
Plugin Author
Phil
(@philsbury)
Hi @sakhlag,
For 1, you are restricting the API as I said above, (maybe via bbpress or buddyboss?) to only logged in users, I get this response:
{
"code": "bb_rest_authorization_required",
"message": "Only authenticated users can access the REST API.",
"data": {
"status": 401
}
}
You must leave the age-gate endpoint available. I don’t know how you do on your setup unfortunately.
For 2, where are you looking for the restriction? They should be in the edit screen and the page list, provided the following:
- you haven’t disabled that content type in the Age Gate -> Content setiings
- Your user has the persmission the do it (this should always be true if you’re admin, but resaving the “Age Gate -> Access” settings would restore any that are missing)
I think once the API is sorted then we can maybe enable the dev api endpoint and I’ll be able to see your settings.
Thanks
Phil