Re: Warning: The primary exchange rate server (CURRENCY_SERVER_PRIMARY) failed for US
Originally Posted by
lat9
Just poking around to see what's up, I made a slight change to /YOUR_ADMIN/includes/functions/localization.php's
doCurlCurrencyRequest function, adding the line highlighted below and ... I've got currency updates!
Please note that I'm not sure if this is the "correct" solution, but it's one that got the desired results.
Code:
function doCurlCurrencyRequest($method, $url, $vars = '') {
//echo '-----------------<br />';
//echo 'URL: ' . $url . ' VARS: ' . $vars . '<br />';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_REFERER, HTTP_CATALOG_SERVER . DIR_WS_CATALOG);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
...
TNX Cindy,
That took care of the issue in zc 1.5.4
Rick
RixStix (dot) com
aka: ChainWeavers (dot) com
Bookmarks