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 thread is resolved. Here is a description of the problem and solution.

Problem: I am trying to use multi-currencies with Woocommerce multilingual. Since about 24 hours the connection to fixer.io has a problem by some reasons, as all the rest works the reason is supposed to a change in fixer.io. Now fixer.io causes PHP-errors that crash processes which use the multicurrency feature. The only currency that works is USD, even if the base_currency is other (in my case CHF)

Solution: It seems that this issue is already handled in the beta version of Woocommerce Multilingual

Relevant Documentation:

This topic contains 5 replies, has 3 voices.

Last updated by Carlos Rojas 6 months, 2 weeks ago.

Assigned support staff: Carlos Rojas.

Author Posts
June 4, 2018 at 9:44 pm #2271889

martinW-30

I am trying to:
use multi-currencies with Woocommerce multilingual. Since about 24 hours the connection to fixer.io has a problem by some reasons, as all the rest works the reason is supposed to a change in fixer.io.
Now fixer.io causes PHP-errors that crash processes which use the multicurrency feature. The only currency that works is USD, even if the base_currency is other (in my case CHF)

Link to a page where the issue can be seen:
NA

I expected to see:
no error message and proper handling of this situation using cached rates and a warning

Instead, I got:
PHP Fatal error: Uncaught Exception: Cannot get exchange rates. Connection failed. in /***/cryp.toctoc.ch/wp-content/plugins/woocommerce-multilingual/inc/currencies/class-wcml-exchange-rates.php:153

In the multi-currency tab, when refreshing amnually from fixer.io:
Cannot get exchange rates. Connection failed.

How to resolve this ?

June 5, 2018 at 7:10 pm #2277169

martinW-30

I found out that fixer.io changed the API. An API-Key is required now.
See hidden link

June 6, 2018 at 4:28 pm #2291748

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hello,
Thank you for contacting WPML support.

I just escalated this ticket to our 2nd tier of support. Our specialists in the 2nd tier will take a deeper look at this issue and will try to find a solution.

I will get back to you as soon as I have an answer.

Kind regards,
Carlos

June 7, 2018 at 12:30 pm #2395816

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi there,

It seems that this issue is already handled in the beta version of Woocommerce Multilingual that you can download from https://wpml.org/account/downloads/ in the Changelog link.

Could you confirm that the issue is solved?

Note: Please remember to create a full backup of the site before making any change, this is for security reasons.

Best regards,
Carlos

April 5, 2019 at 2:29 pm #3545025

mohamedalkamelM-2

I also got this error "Cannot get exchange rates. Connection failed" with fixer when i was doing manually update the currency rates.

please help me

April 8, 2019 at 3:10 am #3553747

Carlos Rojas
Supporter

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

Timezone: America/Montevideo (GMT-03:00)

Hi,

As this ticket is closed already and the original issue is solved, I kindly ask you to open a new ticket describing this new issue and the steps to reproduce it. This way we will be following the forum's rule of one ticket per issue. It will also help future clients to find answers to similar questions and you will receive a better support experience.

Thank you very much for your understanding!
Best regards,
Carlos