amarbhanu Posted July 3, 2009 Share Posted July 3, 2009 Warning Warning: The primary exchange rate server (oanda) failed for US Dollar (USD) - trying the secondary exchange rate server. Error Error: The exchange rate for US Dollar (USD) was not updated via xe. Is it a valid currency code? Warning Warning: The primary exchange rate server (oanda) failed for Euro (EUR) - trying the secondary exchange rate server. Error Error: The exchange rate for Euro (EUR) was not updated via xe. Is it a valid currency code? Warning Warning: The primary exchange rate server (oanda) failed for Pound (GBP) - trying the secondary exchange rate server. Error Error: The exchange rate for Pound (GBP) was not updated via xe. Is it a valid currency code? When I added new Currency and update currency then display massage: Please suggest me, how to add error free currency... amarbhanu We don't use Signatures for external links. Link to comment Share on other sites More sharing options...
FIMBLE Posted July 3, 2009 Share Posted July 3, 2009 You probably have, thats an error from the site, keep trying the update, or try a bit later if you continually get the error them check settings, but i suspect they are correct, GPB is the right code. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
♥ecartz Posted July 3, 2009 Share Posted July 3, 2009 Since it is complaining about all three currencies, I wonder if your host has set up something that is preventing this from working. For example, perhaps their firewall does not allow outgoing connections. Another possibility seems to be that fopen wrappers might not be installed on that server. See http://us.php.net/manual/en/function.file.php for more details. The code that gets the currency information is function quote_oanda_currency($code, $base = DEFAULT_CURRENCY) { $page = file('http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=' . $code . '&format=CSV&dest=Get+Table&sel_list=' . $base); $match = array(); preg_match('/(.+),(\w{3}),([0-9.]+),([0-9.]+)/i', implode('', $page), $match); if (sizeof($match) > 0) { return $match[3]; } else { return false; } } function quote_xe_currency($to, $from = DEFAULT_CURRENCY) { $page = file('http://www.xe.net/ucc/convert.cgi?Amount=1&From=' . $from . '&To=' . $to); $match = array(); preg_match('/[0-9.]+\s*' . $from . '\s*=\s*([0-9.]+)\s*' . $to . '/', implode('', $page), $match); if (sizeof($match) > 0) { return $match[1]; } else { return false; } } If that is the problem, then I think that you need to update the exchange rates manually on the currencies page. There is some information about that at http://www.oscommerce.info/kb/osCommerce/A...ocalization/239 Always back up before making changes. Link to comment Share on other sites More sharing options...
amarbhanu Posted July 6, 2009 Author Share Posted July 6, 2009 You probably have, thats an error from the site, keep trying the update, or try a bit later if you continually get the error them check settings, but i suspect they are correct, GPB is the right code.Nic hi FIMBLE, Thankx for help......... amarbhanu We don't use Signatures for external links. Link to comment Share on other sites More sharing options...
mr_absinthe Posted August 24, 2009 Share Posted August 24, 2009 Have a look here for the fix. Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.