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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: America/Los_Angeles (GMT-08:00)
This topic contains 6 replies, has 2 voices.
Last updated by Bobby 4 weeks, 1 day ago.
Assisted by: Bobby.
Author | Posts |
---|---|
October 17, 2024 at 9:35 pm #16302110 | |
Dimitri |
Background of the issue: Symptoms: Questions: |
October 21, 2024 at 6:07 pm #16313962 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-08:00) |
Hi there, This is a list of known issues with Gravity Forms and WPML, however, I do not see one related to the review page. I created a sandbox environment for us to investigate this issue further. hidden link Please use this link to log in and upload Gravity Forms. Once finished, I will be able to further investigate and update you. |
October 28, 2024 at 11:14 am #16337368 | |
Dimitri |
Hello, Just follow the documentation (hidden link) of gravity Forms to replicate the issue. add_filter( 'gform_review_page', 'your_function_name' ); Regards |
October 28, 2024 at 6:35 pm #16339466 | |
Dimitri |
Hello, |
October 28, 2024 at 9:26 pm #16339793 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-08:00) |
Hi there, This is the error I received. add_filter( 'gform_review_page', 'wpml_review_page' ); Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpml_review_page() Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpml_review_page(), 1 passed in /var/www/sites/best-cavaco/wp-includes/class-wp-hook.php on line 326 and exactly 3 expected in /var/www/sites/best-cavaco/wp-content/themes/twenty-twenty-four-child/functions.php:18 Stack trace: #0 /var/www/sites/best-cavaco/wp-includes/class-wp-hook.php(326): wpml_review_page() #1 /var/www/sites/best-cavaco/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /var/www/sites/best-cavaco/wp-content/plugins/gravityforms/gravityforms.php(7332): apply_filters() #3 /var/www/sites/best-cavaco/wp-content/plugins/gravityforms/form_display.php(367): gf_apply_filters() #4 /var/www/sites/best-cavaco/wp-content/plugins/gravityforms/form_display.php(1054): GFFormDisplay::maybe_add_review_page() #5 /var/www/sites/best-cavaco/wp-content/plugins/gravityforms/gravityforms.php(3607): GFFormDisplay::get_form() #6 /var/www/sites/best-cavaco/wp-content/plugins/gravityforms/gravityforms.php(2272): GFForms::get_form() #7 /var/www/sites/best-cavaco/wp-includes/shortcodes.php(434): GFForms::parse_shortcode() #8 [internal function]: do_shortcode_tag() #9 /var/www/sites/best-cavaco/wp-includes/shortcodes.php(273): preg_replace_callback() #10 /var/www/sites/best-cavaco/wp-includes/class-wp-hook.php(324): do_shortcode() #11 /var/www/sites/best-cavaco/wp-includes/plugin.php(205): WP_Hook->apply_filters() #12 /var/www/sites/best-cavaco/wp-includes/blocks/post-content.php(50): apply_filters() #13 /var/www/sites/best-cavaco/wp-includes/class-wp-block.php(519): render_block_core_post_content() #14 /var/www/sites/best-cavaco/wp-includes/class-wp-block.php(499): WP_Block->render() #15 /var/www/sites/best-cavaco/wp-includes/blocks.php(2061): WP_Block->render() #16 /var/www/sites/best-cavaco/wp-includes/blocks.php(2113): render_block() #17 /var/www/sites/best-cavaco/wp-includes/block-template.php(260): do_blocks() #18 /var/www/sites/best-cavaco/wp-includes/template-canvas.php(12): get_the_block_template_html() #19 /var/www/sites/best-cavaco/wp-includes/template-loader.php(106): include('...') #20 /var/www/sites/best-cavaco/wp-blog-header.php(19): require_once('...') #21 /var/www/sites/best-cavaco/index.php(17): require('...') #22 {main} thrown in /var/www/sites/best-cavaco/wp-content/themes/twenty-twenty-four-child/functions.php on line 18 Maybe if we get a staging copy of your site it will help to better reproduce the issue. If possible i would like to take a closer look at the backend to further test this issue **Before we proceed I recommend to please take FULL BACKUP of your database and your website.** I would like to request temporary access (wp-admin and FTP) to your site to fix the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. NOTE: if access to the live site is not possible and staging site does not exist please provide me with a duplicator package created with the duplicator plugin Thank you, |
October 31, 2024 at 1:46 pm #16351608 | |
Dimitri |
Hello, I don not have access to the sandbox site anymore because of this error: Parse error: syntax error, unexpected integer "3" in /var/www/sites/best-cavaco/wp-content/themes/twenty-twenty-four-child/functions.php on line 19 I guess you change something in the code. I can not duplicate this site, sorry. |
October 31, 2024 at 10:59 pm #16353528 | |
Bobby Supporter
Languages: English (English ) Timezone: America/Los_Angeles (GMT-08:00) |
I have created a new sandbox for us, the original one has crashed due to testing the code. hidden link Do you happen to have a staging site or just the live site at the moment? Also I used this code and it seemed to work OK add_filter( 'gform_review_page', 'add_review_page', 10, 3 ); // Enable the review page if ( $entry ) { return $review_page; but it did not generate a review page at the top of the page. |
The topic ‘[Closed] Gravity Fomrs Multilingual issue with filter “gform_review_page”’ is closed to new replies.