Skip Navigation

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.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 2 replies, has 0 voices.

Last updated by Waqas Bin Hasan 17 hours, 27 minutes ago.

Assisted by: Waqas Bin Hasan.

Author Posts
December 5, 2024 at 9:36 am #16480618

Dimitri

Background of the issue:
I am trying to use Gravity Forms Multilingual 1.8.0 and over, but the filter 'gform_review_page' does not display the review page as expected. See filter doc here: hidden link. I downgraded to Gravity Forms Multilingual 1.7.2 to solve the issue. It would be great to fix this in the next release 1.8.3.

Previous ticket closed and not sovled
https://wpml.org/forums/topic/gravity-fomrs-multilingual-issue-with-filter-gform_review_page/

Symptoms:
I expected to see the button to see the review page. Instead, I got no button to the review page. It shows directly the submit button.

Questions:
Why does the 'gform_review_page' filter not display the review page as expected in version 1.8.0 and over?
Is there a fix planned for this issue in the next release 1.8.3?

December 9, 2024 at 11:03 am #16492159

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Can you please recheck with GFML 1.8.2 (latest - https://wpml.org/download/gravityforms-multilingual/?section=changelog) also? And see if it helps fixing the issue. Like you mentioned you checked with 1.8.0, so may be trying the latest one may help resolve the problem.

Please let me know and I'll try my best to help you further on the matter.

Regards.

December 16, 2024 at 9:23 am #16516364

Dimitri

Hello
I did before writing my support ticket

regards

December 16, 2024 at 12:24 pm #16517290

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

December 17, 2024 at 12:01 pm #16521538

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates. I am working on this and 'll get back to you as soon as I find something or have a solution.

December 18, 2024 at 10:09 am #16525096

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation. I was able to reproduce and observe the issue in your test site. I'm preparing to reproduce this in another environment for escalation and 'll update you accordingly.

December 18, 2024 at 6:54 pm #16527293

Dimitri

You need to activate a child theme and insert the following function in functions.php file.

// My custom functions
add_filter( 'gform_review_page', 'add_review_page', 10, 3 );
function add_review_page( $review_page, $form, $entry ) {
 
    // Enable the review page
    $review_page['is_enabled'] = true;
 
    if ( $entry ) {
        // Populate the review page.
        $review_page['content'] = GFCommon::replace_variables( '{all_fields}', $form, $entry );
    }
 
    return $review_page;
}
December 19, 2024 at 11:26 am #16529761

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

Yes I used the same code and was able to reproduce the issue in a fresh sandbox site. I've escalated the matter to our compatibility team for further investigation.

I'll update you as soon as I hear back.

December 24, 2024 at 10:45 am #16543330

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

Our team investigated the issue and has provided the following workaround:

- Take a backup before proceeding.
- Open the wp-content/plugins/gravityforms-multilingual/inc/gravity-forms-multilingual.class.php file for editing.
- Look for line 954
- Replace the following snippet:

$this->current_forms[ $form['id'] ][ $current_lang ] = $form;

- With:

// WPML Workaround for compsupp-7755
if ( isset( $this->current_forms[ $form['id'] ] ) ) {
	$this->current_forms[ $form['id'] ][ $current_lang ] = $form;
}

- Save the file.

Attached is also the screenshot of the above mentioned for your reference.

I've applied this in your staging site and now form works fine at hidden link as expected.

Please check and confirm.

gfml.jpg
December 24, 2024 at 1:04 pm #16543842

Dimitri

Ok,
Does this fix will be applied in version 1.8.3 ?
When do you publish the update ?
Thank you,
Dimitri

December 24, 2024 at 1:14 pm #16543849

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Unfortunately there's no ETA so far, however, I'll team 'll publish an errata soon (after holidays) and I'll share the link with you, so you can subscribe and can be notified when it is rolled out.