Skip Navigation

[Resolved] Required fields not being respected or Custom Code Snippet no longer working

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by simonM-5 1 year, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2615895

Hi Support (trying again to create a ticket - I think the chat died!)

We recently moved our website from one server to another at the same web hosting company and have just discovered that a Custom Code snippet which worked previously is no longer working on the new server.

The code in question is: func-validate-taxonomies-on-nanny-ad-submission

I tried deactivating and reactivating the code, but that didn't work.

Other code snippets that are supposed to run seem to be working OK, (eg func-sync-language-duplicates-on-submission) but now I'm left with an uneasy feeling that some others may not be working as they should.

Is there anything we need to do to kind of "refresh" or "activate" the custom code snippets or similar on the new server? We have never had to do this in the past.

In order to reproduce, you can

1) Open hidden link
2) Create a new test user in the next Toolset Form
3) Add a fake address etc in the next Toolset Form
4) The 3rd form (creation of a post of type Post Nanny Ad) is the form where the code should bite on submission.

It's happening in our dev site and our production site, so it is affecting the correct registration of users.

Kind regards
Simon

#2616049

Hello,

Thanks for the details, I am checking it in your website, will update here if find anything

#2616051

I assume we are talking about the post form "Post Form - New Nanny Ad - Unverified Nanny":
hidden link

Above post form is using ID "23612".

But in your custom code snippet "func-validate-taxonomies-on-nanny-ad-submission", line 24:

$forms = array( 921, 923 );

You did not put the post form's ID into the PHP array, please try to modify it to:

$forms = array( 921, 923, 23612 );

And test again

#2616395

My issue is resolved now. Thank you!