codealtdel
Forum Replies Created
-
Forum: Plugins
In reply to: [Age Okay] E1002 ErrorHi Augusto,
Thanks for getting in touch.
This error (E1002) happens when the AJAX function for loading in the verification page does not work correctly and fails before being able to get a valid response. This can happen if there is a server issue, a timeout, the URL for the request is wrong, the AJAX is blocked, etc.
I have updated the plugin just now to give additional information when this error occurs. To see this information, depending on your browser, you can use something like DevTools on Chrome to see the console error messages. 3 error messages are created at the same time after the error happens, this information should tell you why the error has happened, and we may be able to find a solution based on this information.
Let me know what you find.
Forum: Plugins
In reply to: [Age Okay] error verifying ageE1003 indicates that the click on the verification screen is being sent correctly to the server, but that there is something wrong with the PHP processing once it is received.
There is not a huge amount of processing going on within the verification function itself,
wp_verify_nonce
is used for security, and if this fails you would receive the E1003 error.When I tried the website, I did not get an error, so I’m not sure if you have changed something since posting this. If you are able to recreate the error, I can send you an updated JS file that may help diagnose the problem, or if you have coding experience I can walk you through where the issues may be coming from in order to do some troubleshooting.
Forum: Plugins
In reply to: [Age Okay] age gate coming up on every pageHi, the recent update to the plugin has not changed the functioning of the cookie settings.
So is the problem you are having that the after clicking ‘yes’ on the verification screen and going to another page, the verification screen shows up again?
I have tested the plugin on multiple versions of safari and I have not been able to recreate the issue. The only time I was able to recreate the issue is when I set safari to not allow cookies. If this setting is in use, then the plugin would not be able to save the user’s acceptance of the verification screen, and keep showing. Is it possible this is the case?
Forum: Plugins
In reply to: [Age Okay] age gate not showing on refreshHello,
Apologies for the delay in replying and thanks for your feedback.
Do you still have this issue, and if so, is there a specific browser you see this issue on? I have tested refreshing the page numerous times on Firefox, Edge, IE, and Chrome, but have not been able to replicate the issue. The only time I have been able to stop the verification screen from showing is if I stop the page from loading fully.
The plugin uses AJAX after page load to check with WordPress whether the verification screen should be loaded on that page. If a page is loading slowly then the verification screen may be slow to show too unfortunately. It may be the case that either the JavaScript is not working correctly, or WordPress is not returning a correct result.
I have released an update to the plugin today which has better error handling for the JavaScript, so if it receives an incorrect response from WordPress it would create an alert on the page. Hopefully this will help to identify the issue you are having; if there is an alert then WordPress is not sending back a correct response, if no alert shows then the JavaScript is not working correctly.
If you are not using a cache plugin for your website, another option is that I also have a paid version of the plugin that does not rely on AJAX/JavaScript, but loads the verification screen along with the page content (it also provides multilingual support and greater control of where the verification screen is displayed). It provides a more seamless experience, but can only be used with a non-cached website.
Hopefully we can figure out this problem together.