Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    215
    Plugin Contributions
    0

    Default Update currencies

    When I try and do this in the relevant section I get the following and all currencies are converted back to 'zero' values:

    Error cURL communication ERROR: couldn't connect to host
    Warning Warning: The primary exchange rate server (oanda) failed for GB Pound (GBP) - trying the secondary exchange rate server.
    Error cURL communication ERROR: couldn't connect to host
    Success The exchange rate for GB Pound (GBP) was updated successfully via xe.
    Error cURL communication ERROR: couldn't connect to host
    Warning Warning: The primary exchange rate server (oanda) failed for Euro (EU) - trying the secondary exchange rate server.
    Error cURL communication ERROR: couldn't connect to host
    Success The exchange rate for Euro (EU) was updated successfully via xe.
    Error cURL communication ERROR: couldn't connect to host
    Warning Warning: The primary exchange rate server (oanda) failed for US Dollars (USD) - trying the secondary exchange rate server.
    Error cURL communication ERROR: couldn't connect to host
    Success The exchange rate for US Dollars (USD) was updated successfully via xe.

    Any ideas?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Update currencies

    This part references/tries to obtain info from more than one source and it looks like connecting to oanda was glitchy at the time you did this but was successful at xe

    Or do you have curl enabled?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2007
    Posts
    215
    Plugin Contributions
    0

    Default Re: Update currencies

    NO it still doesn't work. All currencies are reset to zero.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Update currencies

    NO it still doesn't work. All currencies are reset to zero.
    You will have to determine why your server can not connect to solve this issue.

    I just checked and I can connect and they are updated...
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2008
    Posts
    76
    Plugin Contributions
    0

    Default Re: Update currencies

    For godaddy folks, you have to set the proxy server.

    /shop/admin/includes/functions/locatization.php

    curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");

  6. #6
    Join Date
    Mar 2008
    Posts
    76
    Plugin Contributions
    0

    Default Re: Update currencies

    I actually had to do all this

    Code:
    //    if (CURL_PROXY_REQUIRED == 'True') {
    
    //      $proxy_tunnel_flag = (defined('CURL_PROXY_TUNNEL_FLAG') && strtoupper(CURL_PROXY_TUNNEL_FLAG) == 'FALSE') ? false : true;
    
    //      curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, $proxy_tunnel_flag);
    
          curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    
          curl_setopt ($ch, CURLOPT_PROXY,"http://proxy.shr.secureserver.net:3128");
    
    //      curl_setopt ($ch, CURLOPT_PROXY, CURL_PROXY_SERVER_DETAILS);
    
    //    }
    I wasn't sure where to define CURL_PROXY_REQUIRED, so I just commented it out. For this server, good enough.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg