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.
Tagged: Compatibility, Known issue
This topic contains 26 replies, has 3 voices.
Last updated by Nigel 1 year, 8 months ago.
Assisted by: Nigel.
Author | Posts |
---|---|
March 2, 2023 at 11:27 am #13154135 | |
Nigel Supporter Timezone: Europe/Madrid (GMT+01:00) |
OK, could I ask you then to please set up an example with WPForms using notifications on one of our test servers so that I can investigate the problem. You can use this link to log in to the back end of the site: hidden link |
March 2, 2023 at 11:56 am #13154471 | |
Dimitri |
Could you please activate PHP 8.0 |
March 2, 2023 at 12:08 pm #13154547 | |
Nigel Supporter Timezone: Europe/Madrid (GMT+01:00) |
That's not an option on the sandbox sites, but I don't see any changes in PHP 8 that would result in the issue (wrong second parameter type) being handled differently. If for some reason the error isn't triggered with the sandbox PHP version I can copy the site to a local server for testing where I can set it up with PHP 8. |
March 2, 2023 at 12:11 pm #13154565 | |
Dimitri |
The link to the bug mention PHP8 issue: |
March 2, 2023 at 12:31 pm #13154871 | |
Dimitri |
To try, you need to use a link with parameters like this one (some hidden fields are filled with parameters). |
March 2, 2023 at 1:27 pm #13155213 | |
Dimitri |
After printing some variable in my error_log, it looks like this happens with fields like "Likert Scale" (radio buttons) from the WPFORMS ADDON "Survey & Polls" with plugin "WPForms Multilingual" activated on PHP 8+. |
March 2, 2023 at 2:21 pm #13155969 | |
Dimitri |
It looks like the filter on line 632 of the file /wp-content/plugins/wpforms/includes/emails/class-emails.php stop to work when the plugin parse a field of type "Likert Scale" with WPFORMS MULTILINGUAL plugin active. $field_item = str_replace( '{field_value}', apply_filters( 'wpforms_html_field_value', $field_val, isset( $this->fields[ $field_id ] ) ? $this->fields[ $field_id ] : $field, $this->form_data, 'email-html' ), $field_item ); |
March 2, 2023 at 2:25 pm #13156015 | |
Nigel Supporter Timezone: Europe/Madrid (GMT+01:00) |
I have a copy of your demo installed locally and I'm looking at it now. |
March 2, 2023 at 4:23 pm #13157273 | |
Nigel Supporter Timezone: Europe/Madrid (GMT+01:00) |
OK, I have identified where in the code base the issue occurs, and I've gathered together all of the details and shared them with our compatibility team who are responsible for the WPForms Multilingual plugin. As soon as I get some feedback from them, I'll let you know. |
March 3, 2023 at 11:14 am #13162725 | |
Nigel Supporter Timezone: Europe/Madrid (GMT+01:00) |
FYI the developers are working on a fix and hope to have that out as early as Monday. |
March 9, 2023 at 1:35 pm #13207517 | |
Dimitri |
Hello, |
March 9, 2023 at 1:40 pm #13207593 | |
Nigel Supporter Timezone: Europe/Madrid (GMT+01:00) |
Yes, thank you for confirming. |