Hi:
We just tested that again here – both with the 2017 theme and with a random 3rd party theme we downloaded from the ww.wp.xz.cn repo (colormag). We can see the validation being run.
Since you seem comfortable with code, lets try this:
1. Open the file awesome-support/includes/class-mailgun-email-check.php
2. On line 127 place this code: error_log($body);
3. Go to your registration screen and enter an email address – then check your error_log file – you should see something that looks like this:
{“address”: “[email protected]”, “did_you_mean”: null, “is_valid”: true, “parts”: {“display_name”: null, “domain”: “yourdomain.com”, “local_part”: “mailguntest04”}}
If you don’t see this in the error log, can you try it again with your other plugins turned off? Also, do you see any javascript errors in your browser console? Maybe something is causing javascript to error out and stop processing – generally a conflict with another plugin.
Thanks!
Thank you for the quick reply 🙂
The log was not printed… I’ll try it with other plugins turned off and do some more debugging.
After some debugging, here is some more information:
1. I turned off all other plugins installed – no change.
2. There are no js errors in the browser console.
To try and test what was happening, I did two things:
1. I don’t remember making any changes to files in the plugin but just to make sure, I uninstalled the plugin (with the “delete data” option checked), and reinstalled.
(I set “Enable E-Mail Checking” to checked and set my MailGun public key)
2. I made my ticket-submit page contain only a single line (past the template definitions):
<%php echo do_shortcode('[ticket-submit]'); %>
Now, when I enter that page, I get the login view with the registration form – no templating, no styling, nothing. Just the login and registration forms.
I still don’t see wpas_emailvalidation div. In fact, component_registration.js isn’t being loaded at all. I even added a console.log at line 9 to make sure I wasn’t simply missing it but component_registration.js is simply not loaded… which makes sense if I consider the fact that wpas_emailvalidation isn’t being added…
Thanks again for the assistance.
Hello:
Two things to check:
1. It sounds like you’ve customized the submit-ticket page. Can you just create a regular page on the 2014/15/16/17 theme and add our shortcode to it? There should be a page there already with it but not sure if you deleted it or not.
2. Can you make sure the page that contains the short-code is the one selected in the page list in TICKETS->SETTINGS->GENERAL?
Thanks.
Thanks.
After following your latest suggestion, I found that I indeed had made the mistake of using a page that was not selected in TICKETS->SETTINGS->GENERAL .
Once that was fixed, the div I was expecting was added, and the call to admin-ajax was being made.
I have a new problem with the actual results of the validation but I’ll open a separate topic for that as this problem has been resolved.
Thanks a lot!