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.

No supporters are available to work today on this forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 10 replies, has 4 voices.

Last updated by Itamar 12 months ago.

Assisted by: Itamar.

Author Posts
November 3, 2023 at 10:09 am #14724369

colourI

Hi

On casadabiaturismorural.com we are using the plugin Hotel Booking and the extension Hotel Booking WooCommerce Payments so we can have bookings on the website.

The website as PT as default language and adittionaly we are going to have EN. When we install the plugin the functional pages of Hotel booking + functional Pages of Woocommerce were created in PT but not on EN and the support of the plugin says we have to look at this with your help because that's due to a incorrect configuration on WPML.

November 3, 2023 at 10:10 am #14724373

colourI

Also we have the error bellow showing on the error logs,

[03-Oct-2023 05:35:04 UTC] PHP Fatal error: Uncaught BadMethodCallException: Method flushGroup does not exist. in /home/wwwbia/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php:52
Stack trace:
#0 /home/wwwbia/public_html/wp-content/plugins/wpml-string-translation/classes/translation-files/Domains.php(96): WPML\LIB\WP\Cache::__callStatic('flushGroup', Array)
#1 /home/wwwbia/public_html/wp-includes/class-wp-hook.php(308): WPML\ST\TranslationFile\Domains::WPML\ST\TranslationFile\{closure}('')
#2 /home/wwwbia/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#3 /home/wwwbia/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/wwwbia/public_html/wp-includes/load.php(1144): do_action('shutdown')
#5 [internal function]: shutdown_action_hook()
#6 {main}
thrown in /home/wwwbia/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php on line 52

November 5, 2023 at 1:02 pm #14733041

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Before this ticket is assigned to one of my colleagues I will add the first reply.

The first thing that needs to be fixed before going for the Hotel plugin issue is the error you are experiencing which is due to an old version of WPML.

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update WPML and its addons there.

For more information:
https://wpml.org/faq/install-wpml/#automated-updates

Also please consider that this is a public forum and if you want to give private information please check the private checkbox on the next reply.

Please get back to us with the info if the error is fixed.

Thanks.

November 6, 2023 at 4:36 pm #14740095

Laura
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hello, we always test our plugins with the new WordPress releases, so please update them

November 8, 2023 at 10:52 am #14755307

colourI

Hi

So if they compatible with WordPress 6.3.2 why does it say that's not when we check for compatbility.

Never the less we already update the plugin, so please check it.

November 8, 2023 at 4:59 pm #14759557

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'll continue to help you with this issue.

The Hotel Booking plugin by MotoPress is officially compatible with WPML.

https://wpml.org/plugin/motopress/

When working with this plugin, you need to follow the instructions (written by MotoPress) here.

hidden link

Are you following those instructions?

You wrote:

When we install the plugin the functional pages of Hotel booking + functional Pages of Woocommerce were created in PT but not on EN

Please note that the pages the Hotel Booking plugin added are not being added automatically to the other languages. You need to translate them into the other languages as it is described in the guide above.

WPML and WooCommerce are also officially compatible. To work with WPML and WooCommerce, you must install our bridge plugin, WooCommerce Multilingual & Multicurrency. However, according to the debug information, I see that WooCommerce Multilingual & Multicurrency is not installed on your site. After installing it, you will be able to automatically create WooCommerce pages in English (cart, checkout, my account, etc.) Please read our guide on working with WooCommerce.

https://wpml.org/documentation/related-projects/woocommerce-multilingual/

You also mentioned you use the Hotel Booking WooCommerce Payments plugin. This plugin is not officially compatible with WPML and WooCommerce Multilingual & Multicurrency. You can check all of the compatible plugins here. https://wpml.org/plugin/.

However, if you find a problem with the Hotel Booking WooCommerce Payments and WPML, we will continue to help you and investigate this issue.

Regards,
Itamar.

November 13, 2023 at 11:59 am #14788197

colourI

Hi

We´re following the steps on hidden link and when we translate Rates from PT to EN and go to EN and say to translate independently the on thing to translate is the "Descrição" on the Informação de Tarifa (see prints attached, "rates" that's what we have on EN and "rates_pt" for what we have on PT).

Regarding Woocommerce we have all pages in PT and EN.

Still when we add a booking on the cart page we get the same message "Não pode finalizar a compra enquanto o seu carrinho estiver vazio."

WE need to get this website online so please help solve this issue once and for all.

Follows temporary access if necessary,

hidden link

checkout.JPG
November 13, 2023 at 8:41 pm #14792233

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'm not allowed to access your site with the link you provided. Please share the access details to your site with me in the following private message. Please explain to me the steps to take to see the issue.

If you need further help with this, please share the access details to your site with me.
I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Thanks,
Itamar.

November 14, 2023 at 8:20 pm #14802229

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, and thanks for the access details.

I checked things on your site, but I am unsure what the problem is and how to see it. Please remember that I'm unfamiliar with the MotoPress Hotel Booking plugin. My task is to help you with WPML and translating this plugin. I understand that "rates" are related to accommodation. When I go to Accommodation -> Rates, I see one rate - Casa da Bia in PT translated into EN. Please see the attached screenshot rate-casa-da-bio.jpg.

But how do I get to see the problem on the site?
How is the rate linked to accommodation?
How do I add accommodation to the cart to see the problem you show on your screenshot?

Please provide all the necessary details to help you further.

Thanks,
Itamar.

rate-casa-da-bio.jpg
November 17, 2023 at 10:59 am #14861165

colourI

Hi

You just have to make a booking, so please go to Reservas, fill the check.in and check-out form fields and click Pesquisa. Then, on the search results page, click on the button Reservar or Confirmar reserva. Here you should go to cart page with the booking data but the cart page shows "Não pode finalizar a compra enquanto o seu carrinho estiver vazio.".

November 19, 2023 at 10:43 am #14870137

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, and thanks for the steps to replicate the issue.

I've checked things on your site and could see the problem. On the cart page, I could see the message: "Não pode finalizar a compra enquanto o seu carrinho estiver vazio."

However, I discovered that the problem does not happen because of WPML. I came to this conclusion because the problem occurs even when WPML and its add-ons are deactivated. While trying this, I recorded a video. Please see it here.

hidden link

Please get in touch with Motopress, the authors of the Hotel Booking plugins, and ask for their support with this issue.

Regards,
Itamar.

P.S. I activated WPML on your site, after trying the above.