Forums / All Other Contributions/Addons / The primary exchange rate server (oanda) failed

The primary exchange rate server (oanda) failed

Views: 9,698

Results 1 to 15 of 15
18 Nov 2011, 5:43 AM
#1
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

The primary exchange rate server (oanda) failed

Quite frequently oanda fails and the xe update resets that specific currency to 0.00000:

Warning: The primary exchange rate server (oanda) failed for Euro (EUR) - trying the secondary exchange rate server.
The exchange rate for Euro (EUR) was updated successfully via xe.

Warning: The primary exchange rate server (oanda) failed for Canadian Dollar (CAD) - trying the secondary exchange rate server.
The exchange rate for Canadian Dollar (CAD) was updated successfully via xe.

This has been an issue for a number of months, forcing me to manually reset each failed currency. Again, this occurs quite often, and on numerous carts.

Any suggestions on how to correct this?

Thanks :)

18 Nov 2011, 6:03 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: The primary exchange rate server (oanda) failed

Zen Cart and PHP versions?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Dec 2011, 10:30 PM
#3
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: The primary exchange rate server (oanda) failed

I get the same issue, really annoying. I have 6 currencies. When I click the update currencies button two or three currencies are updated as zero. Only one with zero if i'm lucky, that's actually what I shoot for, I keep clicking the update button a few times until it only gives me one error, then I edit that one manually.

This happens with all ZC version I have 1.3.7 - 1.3.9

I think the oanda server always has issues. I meant to look into that a while ago, but I keep forgetting because I only update currencies about once a month, but it's very annoying when I have to do it with this problem.

Which is the file that defines the primary server/

19 Dec 2011, 10:44 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: The primary exchange rate server (oanda) failed

If it's any consolation, the code in v1.5 has been updated to add and use ECB as the primary. Just one more good reason to upgrade ;)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Dec 2011, 7:01 AM
#5
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: The primary exchange rate server (oanda) failed

DrByte:

Zen Cart and PHP versions?

Hi Doc, sorry for the delay: It's happening on the following Zen carts:

Zen Cart 1.3.6 / Database Patch Level: 1.3.6 / PHP Version: 5.2.17 (Zend: 2.2.0)

And

Zen Cart 1.3.8a / Patch: 1:: / Database Patch Level: 1.3.8 / PHP Version: 5.2.17 (Zend: 2.2.0) PHP Memory Limit: 256M

Of course you are right about upgrading, but any chance of a fix for the moment? :)

Thanks!

20 Dec 2011, 8:00 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: The primary exchange rate server (oanda) failed

This is your lucky day ... https://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=2039
*
(Edit: Tested on a 1.3.9h site successfully)*

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Dec 2011, 3:48 PM
#7
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: The primary exchange rate server (oanda) failed

Uploaded the 2 files to renamed admin folder.

Attempt to update currency and it still uses XE and Oanda.

v1.3.9H

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

21 Dec 2011, 7:17 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: The primary exchange rate server (oanda) failed

With respect I submit that you've put the file for the extra_configures folder in the wrong place, or not uploaded it at all, else that wouldn't be happening.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Dec 2011, 2:28 PM
#9
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: The primary exchange rate server (oanda) failed

Thank you DrByte.

Sorry. I didn't read the instructions. I just renamed the admin folder and uploaded it 'as-was' to the server assuming that everything was in place.

This morning, I moved the file in the extra_configures folder from the zip to the extra_configures folder within the admin/includes folder as stated in the instructions.

Now all is well. Thank you again. All appears to be functioning as intended.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

21 Dec 2011, 4:05 PM
#10
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: The primary exchange rate server (oanda) failed

Beautiful... Thanks, Doc.

FYI: I did the same thing as RixStix; I uploaded the files to my first site directly from the mod, not taking the time to read the directions thoroughly. The end result is that the extra_configures folder was misplaced. You might save yourself some future headache by updating the mod so that the extra_configures file is inside the includes file :)

Thanks again - T

21 Dec 2011, 6:51 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: The primary exchange rate server (oanda) failed

doh!! my bad. Apologies.
Glad it works as needed.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Mar 2012, 6:33 PM
#12
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: The primary exchange rate server (oanda) failed

DrByte:

This is your lucky day ... https://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=2039
*
(Edit: Tested on a 1.3.9h site successfully)*

Thanks Doc, really needed this!

One small issue:

Warning: The primary exchange rate server (ecb) failed for TWD Taiwan New Dollar (TWD) - trying the secondary exchange rate server.
Error: The exchange rate for TWD Taiwan New Dollar (TWD) was not updated via boc. Is it a valid currency code?

Currently using 1.3.9h.

Every other currency I use updates perfectly :blink:

Thanks :smile:

20 Mar 2012, 5:08 PM
#13
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: The primary exchange rate server (oanda) failed

Hi,

I installed the ECB Currency Update Replacement for v1.3.9 addon about a week ago.

I'm having two small issues:

Issue #1:

I get the following message via an admin warning after updating (all but one of!) my currencies:

Warning: The primary exchange rate server (ecb) failed for TWD Taiwan New Dollar (TWD) - trying the secondary exchange rate server.
Error: The exchange rate for TWD Taiwan New Dollar (TWD) was not updated via boc. Is it a valid currency code?

Issue #2:

I get the following message via debug in /cache/ after updating my currencies:

PHP Warning:  Division by zero in /my_admin/includes/functions/localization.php on line 128

Please advise, thanks :smile:

7 May 2017, 1:08 AM
#14
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Re: The primary exchange rate server (oanda) failed

Thank you for this. My currency converter has spat the dummy sometime in the last month for some unknown reason and this has helped fix it.

Elemi

The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz

7 May 2017, 3:27 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: The primary exchange rate server (oanda) failed

Elemi:

Thank you for this. My currency converter has spat the dummy sometime in the last month for some unknown reason and this has helped fix it.
You really should be upgrading ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.