Skip Navigation

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

Problem:
The client is experiencing issues with translating link targets and syncing menu items using WPML. Specifically, they encounter an error message 'Error! Reload the page and try again' when translating link targets and a 504 timeout error when syncing menu items, despite increasing the timeout limit.
Solution:
We identified that the issues occur when using WPML with the Breeze caching plugin and WooCommerce. Disabling the Cache System option in Breeze resolves the issue with translating link targets. For syncing menu items, if continuing with Breeze, we recommend adding the following code to the functions.php file of your Child Theme to handle currency switching for non-logged-in users:

add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' );

Additionally, we suggest consulting the Breeze support to explore options for excluding specific scripts from caching. If Breeze support cannot provide a solution, please contact us for further assistance.
Please note that this solution might be outdated or not applicable to your specific case. 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 issue persists, please open a new support ticket at WPML support forum.

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.

This topic contains 33 replies, has 0 voices.

Last updated by zakW 3 weeks, 4 days ago.

Assisted by: Andreas W..

Author Posts
May 12, 2025 at 8:03 am #17021400

zakW

Hi Andreas,

I tried using the example website you sent, but when I try the currency conversion, it's not working, as you can see on the video - hidden link

At the staging site, I have disabled the cache, and it's still not working.
I know the live site will use Cloudflare and not Breeze as the caching plugin so hopefully it will work but I need it to work for me on the staging site so I can present it to the client and once approved move it to the live website

Does the currency switcher depend on user location?
Like I said I need it to work for me on the staging site to show the client

Screenshot 2025-05-12 090050.png
May 13, 2025 at 9:32 pm #17029765

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I can sadly no longer log into the staging site, as the domain verification of the ReCaptcha features appears to fail.

Can you please disable this feature or the responsible plugin on the staging site?

Make sure to leave me a comment on this ticket, once you are done with this task.

login.jpg
May 14, 2025 at 7:25 am #17030490

zakW

Hi Andreas.

I have disabled the feature, and you can log in again.
Looking forward to seeing what else you can find.

The client will be doing some tests on the website today, the 14/05, so please don't disable any plugins, only Breeze if needed.

May 14, 2025 at 9:49 am #17031289

zakW

Hi Andreas,

I don't know how, but the currency switcher seems to be working now. Breeze has been disabled.

Instead of using Breeze we can use WP Rocket as the cache plugin, so don't think this will be a problem as WP rocket is on the recommended list of plugins you have and I sure this will work first time. Testing it right now

May 14, 2025 at 7:18 pm #17034189

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you for your confirmation!

After giving another visit to my test site and updating WooCommerce the switcher actually seems to work as expected now:

hidden link

I also would suggest using the File Optimization option Exclude JS for hidden link

May 15, 2025 at 7:30 am #17035240

zakW

Hi Andreas,

Im sorry to say but your testing site it still not working for me.

For the Bofi staging site after disabling Breeze and removing the plugin I can say that is working now. The only thing that is not showing is the spin animation in front of the switcher. We have now WP Rocket as our cache plugin.

You mention to exclude the JS but where should I add that option?
Is this going to help with the spin animation icon?

Can you have one final look at this, please?

May 15, 2025 at 4:42 pm #17038091

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, as I can see that the issue persists on my test site while not being logged in.

Note, that even if you decide to not longer use "Breeze" I am about to escalate this issue so that our compatilbity team can take a closer look into it.

---

About the loading circle:

On my test site, I can neither confirm a loading circle if the currency switcher is placed inside the product's "Add to cart" section:
hidden link

If you scroll down to the product's description you can see that I added another switcher per shortcode, and here it works.

I am not sure what is expected at this point and will consult my colleagues from second-tier support.

May 15, 2025 at 7:37 pm #17038586

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Further tests result in, that the loading circle will not show up if there is more than one dropdown switcher used on the same page.

This issue occurred as I enabled the global single-product language switcher option in WCML.

May 16, 2025 at 7:35 am #17039688

zakW

Hi

Thank you for the help with this and escalating this as well so we can see why this problem is presenting itself again and again.

Please do keep me updated with anything your team and yourself find relative to this subject

May 16, 2025 at 7:27 pm #17043263

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The compatilbity team replied:

- Breeze cache is not listed as compatible, which is why we recommend using another plugin

Recommendations:
https://wpml.org/plugin-functionality/caching/

If you want to continue with Breeze, we found an old article describing exactly the same issue: hidden link

May 17, 2025 at 7:17 pm #17044702

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

We would like to provide the following solution for this issue.

Please add this hook to the functions.php file of your Child Theme:

add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' );

This will solve the issue for non-logged-in users.

May 19, 2025 at 7:34 am #17046655

zakW

Hi Andreas,

Thank you very much for the help with this and to providing a solution for us in case we want to continue using Breeze as our caching plugin.

We decided to use for now WP Rocket caching as its one of the compatables caching plugins so we shouldn't have any major problems.

Saying that I have noticed that if I change the currency in the product page and add the product to the basket, when visiting the basket, the currency changes back to the default. Do you know why this is the case?

Kind Regards

May 20, 2025 at 10:22 am #17052064

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

This seems not to happen on my test site and I also can not confirm this on your site.

I went to:
hidden link

Switched to CAD and opened the cart. I still see the price in CAD.

Can you please give it a try to check if you can recreate the issue on this test site and provide me with the detailed steps?

One-Click-Login:
hidden link

May 20, 2025 at 10:54 am #17052250

zakW

Hi Andreas.

Thank you very much for your message.
Its working with no issues in incognito (not logged in) but when I'm logged in and I go to the checkout page it defaults to the language currency.

I have tried in your test site and its working with me not being logged in.

Can you please tried our site when logged in to see if you can replicate the error?

Thanks in advance for all the help so far

May 20, 2025 at 12:52 pm #17052788

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I ran a test on your staging site while being logged in.

I used this product:
hidden link

I switched the currency to YEN, then entered the cart and still saw YEN.

Before testing this, I made sure that the cart was empty.

--

Please provide me exact steps about how to recreate the issue.