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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 16:00 10:00 – 14:00 10:00 – 14:00 9:00 – 13:00 9:00 – 13:00 -
- 17:00 – 21:00 15:00 – 19:00 15:00 – 19:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Bucharest (GMT+03:00)

This topic contains 5 replies, has 1 voice.

Last updated by Mihai Apetrei 4 days ago.

Assisted by: Mihai Apetrei.

Author Posts
June 19, 2025 at 9:59 am #17149650

cecileG

Contexte de la question:
I am trying to use WooCommerce Bookings together with WooCommerce Multilingual to display upcoming and past bookings correctly on the 'My Account > Bookings' page. The goal is to show only the bookings in the current language, with proper pagination.

Symptômes:
WooCommerce Bookings fetches all bookings, regardless of language, and applies pagination. Then WooCommerce Multilingual hides bookings that are not in the current language, but only after the bookings have been fetched. This results in an incomplete list of bookings being shown, and no 'Next' button to access additional bookings that were filtered out after the initial query.

Questions:
How can I ensure that only bookings in the current language are fetched and displayed with proper pagination?

June 19, 2025 at 12:18 pm #17150589

cecileG

I updated the WPML plugins to the latest version, I still have the issue.

For example if I have 4 bookings, with WPML there are duplicated in all languages ( I have 4 different languages).
So by default Woocommerce Bookings will find 16 bookings associated to my user (10 displayed by page).

The Woocommerce multilingual will remove all bookings in the result array that are not in the current language, so 4 remaining bookings.

Some will displayed on the bookings page in "My account", because there were on the first page of results of Woocommerce bookings request. But others will not be displayed because they are considered to be on the second page.
And in the template the "Next" button is not displayed because I don't have more than 10 bookings. So no way to display the bookings supposed to be on the second page.

how to fix this ?
Thank you

June 23, 2025 at 7:31 am #17158254

cecileG

Hello,

Were you able to look into this problem?

Thank you

June 24, 2025 at 8:32 pm #17166822

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Sorry for the delayed response. There's been a pretty full queue in the past few days, and fewer people are working on the weekends, so this is why it takes a little bit longer to get back to you than usual.

Because you had a live chat session before, our system automatically removed the credentials you shared for privacy and security reasons.

Can you please share them again in the private fields I am enabling below so that I can also examine the site's backend?

Thank you.

Mihai Apetrei

June 30, 2025 at 12:22 pm #17184176

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi, and thank you for the credentials.

I can confirm that I was able to log in successfully.

I am spending more time on this and will get back to you as soon as I have more feedback. Just so you know, the website loads pretty slow for me, so it might take a while.

I will leave the ticket assigned to myself for now.

July 2, 2025 at 7:19 pm #17194624

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

There's a high chance that this issue occurs because many of the active plugins are outdated, including WPML plugins (+ the WPML WooCommerce add-on) and the WooCommerce Bookings plugin.

1. Can you please create a full website backup and then update the plugins here:
hidden link

2. Please increase MaxInputVars to 50000 or more (you have them set at 1000 at the moment). For this, please try to set these variables in your php.ini:

max_input_vars = 50000;
suhosin.post.max_vars = 50000;
suhosin.request.max_vars = 50000;

You may need to contact your hosting provider to set them up.

Please make sure you have updated the values successfully. You can verify them from the WPML >> Support page.

3. Please make sure that REST API is not blocked. I see a red flag here at the moment:
hidden link

Please let me know when you have gone through these points so that I can continue with the testing process.

I will be waiting for your response.