Skip Navigation

[Resolved] CRED Validation not working (requiring First and Last Name)

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 18 replies, has 2 voices.

Last updated by TomT2847 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#621377

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Tom

I have set up a private reply for you now.

#622544

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Tom

I took a copy of your site (using All in One WP Migration, Duplicator doesn't work well on WPEngine sites) and installed it locally.

In my testing the cred validation hook appeared to work correctly (I was just testing the simple code to log messages to the debug log, if that works then the validation code itself should work).

The main difference between my copy of your site and the original is that I don't have the drop-in and mu-plugins active that WP Engine adds.

I wanted to do some more testing on your staging site, including looking at the logs myself, but the FTP credentials you supplied didn't work so I can't see them.

Let me set another private reply so you can update them after testing.

#622887

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-03-07 at 09.36.10.png

Hi Tom

Thanks for the updated credentials.

I used the form on the create account page to register a test user and then checked the debug.log and found that the test message "Inside hooked function" had been added.

So I commented out that test function and then re-instated the actual validation function for first and last names and then test submitted the form again.

The validation worked as expected (see screenshot).

So I can't reproduce the problem on your site.

The only change I made was to comment out the reCaptcha field in the CRED form because your staging site is not registered with the API keys, but I don't think this should be a problem because I checked on my local test site whether the reCaptcha might be a problem and it was not.

I have deleted the test user I created.

#623835

Hi Nigel. Thanks for testing that out for me. I just went back to the original site and tested it again and it worked. I honestly have no idea what the problem was because the code is exactly the same as it was when it wasn't working. Thanks for the help!