[Waiting for user feedback] WPML causes Ajax error in WPForms
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Background of the issue:
I use WPML and WPForms. I've created a form with a repeater field. When the visitor adds two or more repeater fields (by clicking the "Add" button in the form), it's not possible to submit the form. In the console, I see an Ajax error. This is urgent since the form is a crucial part of campaign that will launch in a couple of days.
Since this has worked before, I've deactivated all plugins and custom scripts to identify the conflict (that's why the design looks bad). I found that deactivating WPForms Multilingual 0.4.0 fixes the problem and it's possible to submit forms with multiple repeater fields again. However, I need to use this plugin since it's a multilingual site.
What should I do? Is it possible install an older version of WPML or WPForms Multilingual to see if that solves the problem (since this worked. before)?
Screenshot from Ajax error message when trying to submit form with multiple repeater fields when WPForms Multilingual 0.4.0 is activated: hidden link
I'm happy to share login credentials to wp-admin if needed.
Here's how to recreate the issue. The sounds seems to be missing but I hope you get it anyway. Important: it the issue only occurs when clicking "Lägg till" ("Add") and adding more than one (1) repeater fields in the end of the form.
I also wonder if it's possible to download an older version of WPML (and WPForms Multilingual) from about five weeks ago? Since everything worked fine back then, it could perhaps be a temporary fix for the campaign deadline?
No wait, that screenshot was from the WPForms support and it worked for them. But I use the same WPML versions an another site and multiple repeater fields does still not work. I'll try with even older versions and post and update.
Major breaktrough! I've identified what's causing the conflict between WPML and WPForms:
It's the dropdown field (heading "Tävlar i klassen") in the repeater field.
1. Here's the form with the dropdown: hidden link
2. And here is a duplicated form with the dropdown removed: hidden link
The duplicate can be submitted even when the user adds multiple repeater fields.
The dropdown has several characters that might cause the problem like (/*+ etc. in the code. I'll see if I can narrow down which field in the dropdown that causes the conflict.
The dropdown works if WPForms Multilingual is deactivated but not when it's activated.