Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
After changing the default language from Italian to English on a bilingual website, the availability calendars stopped functioning.
Solution:
We recommend two potential solutions:
1) Modify the database:
- Access your database manager, such as PhpMyAdmin.
- Execute the following SQL query:

SELECT * FROM `wp_postmeta` WHERE `meta_key` LIKE '%room_type_id%'

- Replace the IDs as necessary based on your results.
2) Create new content in the English language:
- Develop a new accommodation type for the English version.
- Add accommodations and configure rates for this new type.
You may need to remove the old Accommodation Types and Rates.

If these steps do not resolve your issue or if the solution seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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: 

This topic contains 6 replies, has 2 voices.

Last updated by Osama Mersal 6 days, 16 hours ago.

Assisted by: Osama Mersal.

Author Posts
June 11, 2024 at 11:31 am

francescaG-15

Background of the issue:
I developed my website (hidden link) in Italian, then I translated it into English with WPML. I bought a second domain (casaadeleostuni.it) to use one domain per language. As the first domain was .com but written in Italian, I changed the default language to English.

Symptoms:
After changing the default language to English, my availability calendars do not work anymore.

Questions:
Why did changing the default language to English cause the availability calendars to stop working?
How can I fix the availability calendars after changing the default language?

June 11, 2024 at 12:07 pm
June 11, 2024 at 12:08 pm #15726362

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I need your permission to take a local copy of your site to debug the issue without affecting your live site.

For taking a local copy, I'll install the Duplicator Pro plugin on your site.

Best regards,
Osama

June 13, 2024 at 7:33 am #15734510

francescaG-15

Hi Osama, please go ahead with the copy.

Thank you
Best regards

June 13, 2024 at 8:24 am #15734785

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your permission. I installed a local copy of your site and tried some workarounds, but I haven't had any luck.

So, I consulted our 2nd tier support team regarding this issue, and I'll update you as soon as I get their reply.

Best regards,
Osama

June 19, 2024 at 8:28 am #15753992

francescaG-15

Hi Osama,

hope you are doing well!
Do you have any feedback regarding my issue?

Thank you very much for your support
Best Regards

June 19, 2024 at 10:38 am #15754886

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I haven't received a reply yet. It's taking some time due to the workload on the second-tier support queue.

Thanks for your patience

Best regards,
Osama

June 21, 2024 at 1:17 pm #15775535

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your patience. Our 2nd tier support team has found two workarounds for this issue:

1) Database change:

1- Go to your database manager, for example, PhpMyAdmin
2- Run the following query

SELECT * FROM `wp_postmeta` WHERE `meta_key` LIKE '%room_type_id%'

3- The result should be something like this screenshot (hidden link)
4- Replace the 73 with 1098 IDs
5- The new result should be like this (hidden link)

After that, the calendar should work correctly.

2) Create new content:

1- Create a new accommodation type for the English language
2- Create accommodations for that new accommodation type (in the English language)
3- Configure a rate for that new accommodation type (in the English language)

You might need to delete the old Accommodation Types, Rates, etc.

Kindly let me know if one of the above approaches fixes the issue.

Best regards,
Osama

June 23, 2024 at 11:05 am #15793908

francescaG-15

Hi Osama,

thank you very much for your support.
I followed the first workaround and it seems to have worked out!

Thank you again

francescaG-15 confirmed that the issue was resolved on 2024-06-23 11:05:46.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.