Title: registration form validation problems
Last modified: April 30, 2017

---

# registration form validation problems

 *  Resolved [guypsemperis](https://wordpress.org/support/users/guypsemperis/)
 * (@guypsemperis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/registration-form-validation-problems/)
 * I am attempting to use MailGun to validate the emails a user inputs in to the
   default registration form provided by the Awesome Support plugin.
    “Enable E-
   Mail Checking” is checked and I set my “MailGun Public API Key” but the emails
   are not being validated. From reading the code in the plugin, I see that when
   the option is enabled, there should be a new div under “wpas_email_wrapper” with
   the id “wpas_emailvalidation”. No such div is being added when the page loads…

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/registration-form-validation-problems/#post-9083656)
 * Hi:
 * We just tested that again here – both with the 2017 theme and with a random 3rd
   party theme we downloaded from the wordpress.org 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”: “mailguntest04@yourdomain.com”, “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!
 *  Thread Starter [guypsemperis](https://wordpress.org/support/users/guypsemperis/)
 * (@guypsemperis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/registration-form-validation-problems/#post-9084695)
 * 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.
 *  Thread Starter [guypsemperis](https://wordpress.org/support/users/guypsemperis/)
 * (@guypsemperis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/registration-form-validation-problems/#post-9085176)
 * 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.
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/registration-form-validation-problems/#post-9087629)
 * 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.
 *  Thread Starter [guypsemperis](https://wordpress.org/support/users/guypsemperis/)
 * (@guypsemperis)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/registration-form-validation-problems/#post-9091885)
 * 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!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘registration form validation problems’ is closed to new replies.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [guypsemperis](https://wordpress.org/support/users/guypsemperis/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/registration-form-validation-problems/#post-9091885)
 * Status: resolved