Hi @griego62
Sorry to hear you are having this issue.
Even though they look similar we always need to check case by case, for your site it seems issue is related to translatepress, could you please try this code https://gist.github.com/wpmudev-sls/d1e1b64e21fa4cce14921cedd892f811 as a mu-plugin https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Let us know the result you got.
Best Regards
Patrick Freitas
Hello @griego62 ,
We haven’t heard from you for over a week now, so it looks like you no longer need our assistance.
Feel free to re-open this topic if needed.
Kind regards
Kasia
Thank you for your reply. Unfortunately, I had no luck with the script. Here is what I did step by step:
1. Copied code into functions.php, having added the Forminator version.
https://u.pcloud.link/publink/show?code=XZlU5X0Znp5F7llGjV5UaabPzaWKWpPYCLTV
2. Tried to register a user. Registration was not successful, throwing the same error.
https://u.pcloud.link/publink/show?code=XZAU5X0ZxjILYa0s6tmYyux68RJChzskBUrV
3. Deactivated Translatepress.
https://u.pcloud.link/publink/show?code=XZVI5X0Z3yKkleAHbAXMCqssAyyagfNaTsmy
4. Tried registering user by means of Forminator registration form. No registration error was thrown.
https://u.pcloud.link/publink/show?code=XZfI5X0Z5rvOEIQcjrukHgI7W12u1jevbrry
5. Checked if user was registered. User had not been registered.
https://u.pcloud.link/publink/show?code=XZ1I5X0Zc17A9iuzBJmIMRRDBj6OFuz3AIbV
6. With Forminator still active and Translatepress, tried registering user by means of classic WP registration. User received on-screen notification of registration and email to establish password. Admin, also received notification of user registration.
https://u.pcloud.link/publink/show?code=XZ6I5X0ZwL8VAorhJcR4jc3rlxfzXzvNhjJk
https://u.pcloud.link/publink/show?code=XZFA5X0ZybApMWFJzkh1qodmxCF0e0H2Ojok
https://u.pcloud.link/publink/show?code=XZQA5X0ZqE1w55mOAOubEhaoNBjF4y3k4ITX
7. After user established password, user appears as registered in WP.
https://u.pcloud.link/publink/show?code=XZlA5X0Zv1Fcp9hw58QzP33AInoh4h6BMYCV
8. Translatepress reactivated (SEO Pack Add-on was not active from before, as it is part of a discontinued Pro version) and created test user eliminated.
https://u.pcloud.link/publink/show?code=XZNA5X0ZpcN1YDKUGsSTsDNgD0izTjkgrFe7
9. User was successfully registered.
https://u.pcloud.link/publink/show?code=XZoA5X0ZzJHIrtzCd24ulqqCHKIwdBl0DYYk
https://u.pcloud.link/publink/show?code=XZYN5X0Zq1yUxhMCe8SN7QDeMDAhgBRWOcnk
https://u.pcloud.link/publink/show?code=XZjN5X0Z9nrqGxNkPSyl8Vt0oUQ6484MfQVX
Please, advise on how to continue.
Hi @griego62
Thank you for response!
Please edit the code that you added – you should NOT make any changes to original one and this line of shared code
if ( ! defined( 'FORMINATOR_VERSION' ) ) {
should stay exactly as it is. You should NOT replace the FORMINATOR_VERSION string with any number (or actual version of the plugin). It needs to stay “as is”.
The “FORMINATOR_VERSION” string here is not be replaced because it is the name of the PHP constant added by Forminator plugin.
By replacing it, you have made code to check for a different constant that is not defined and since the goal of this line of code is to prevent code execution if given constant is not defined – you essentially made the code inactive by replacing FORMINATOR_VERSION.
Best regards,
Adam
Thank you for your reply. I have replaced the script in functions.php to its previous state, as you suggested, but the issue remains the same.
Hello @griego62 ,
Can you try the following steps:
- Go to the Translate Site > Settings admin bar link.
- Go to the Advanced tab.
- In the Exclude selectors from translation field, add the .forminator-custom-form selector, then click Add.
-
Save the changes.
kind regards,
Kasia
I have added the .forminator-custom-form selector to the Translate Site settings of TranslatePress. Unfortunately, the issue persists.
Kind regards,
Yannis
Hi @griego62,
I hope you are doing well today!
Just to make sure, please also try the code snippet as mu-plugin. Remove it completely from your child theme’s functions.php and add as a mu-plugin file exactly as it was showed in https://gist.github.com/wpmudev-sls/d1e1b64e21fa4cce14921cedd892f811 without making any changes.
You can find more information below on how to use mu-plugins.
https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
and
https://ww.wp.xz.cn/support/article/must-use-plugins/
Kind regards,
Zafer
Thank you,
I followed your instructions, but had no luck.
Kind regards,
Yannis
Hi @griego62,
Possible to also share the form export, so that I could check and see how it behaves in my side with the mentioned plugins enabled?
Please check the following doc on how to export a form:
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export
If you are concerned about any sensitive information in the form, then you can duplicate your form, remove any sensitive information, and then export it.
You can share the export file via Google Drive, Dropbox or any cloud services in the next reply.
Looking forward to your response.
Best Regards,
Nithin
Hi @griego62
The file you have shared is empty and has 0kb. Can you export once more and share with us?
Kind Regards,
Kris
Sorry, I never got an email notification that you had answered. Here is the file again:
https://u.pcloud.link/publink/show?code=XZe9M50ZYq0UDk8N37hRvYIYX4n0DQCxshVV
Regards,
Yannis
Hello @griego62,
I’ve tested your form, but could not replicate similar issues with the latest Forminator 1.29.0 and TranslatePress 2.7.1.
Could you please also check if disabling Extra Languages add-on makes any difference. Please make sure to flush the cache(s) on the site, and test the form on a new private (incognito) tab after that.
If the issue persists, could you please email us at [email protected] with subject: ATTN: WPMU DEV support β wp.org
Please also include the following info:
– The result of testing the form after disabling Extra Languages add-on for TranslatePress, and updating both Forminator and TranslatePress to the latest versions;
β Link back to this thread: https://ww.wp.xz.cn/support/topic/failure-when-submitting-form/
Best Regards,
Dmytro