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
Hello,
Thanks for the details, I am checking it in your website, will update here if find anything
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
My issue is resolved now. Thank you!