seb1188 Posted April 13, 2008 Posted April 13, 2008 My currency update doesn't work properly. I get this error sometimes: Error: The exchange rate for Canadian Dollar (CAD) was not updated via xe. Is it a valid currency code? And other times I get: Success The exchange rate for Canadian Dollar (CAD) was updated successfully via xe. And no mention at all of any of my other 5 currencies. My default currency is GBP. What's going wrong? I have installed a currency update contribution (for the cron job) but it didn't touch any files, it just added a new file. Plus, the error log for that contribution is giving me this message: Warning: Server: xe - US Dollar, USD failed currency update Server: oanda - US Dollar, USD error during currency update etc... The currency that fails/errors changes.. sometimes more than one. Except the euro, which always works on oanda but never on xe. !!?!?!?!? osCommerce is GREAT. When it works...
web-project Posted April 13, 2008 Posted April 13, 2008 can be the firewall on server is restrict outbound access to other websites from web server Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
hardsignal Posted April 29, 2008 Posted April 29, 2008 can be the firewall on server is restrict outbound access to other websites from web server I'm getting almost the same error message for CAD currency.... Warning: The primary exchange rate server (oanda) failed for CAD Dollar (CAD) - trying the secondary exchange rate server. Error: The exchange rate for CAD Dollar (CAD) was not updated via xe. Is it a valid currency code? and i know for a fact we don't have a firewall on outbound traffic. Plus i get this message when i click on update currency: Warning: file() [function.file]: URL file-access is disabled in the server configuration in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 14 Warning: file(http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=CAD&format=CSV&dest=Get+Table&sel_list=CAD) [function.file]: failed to open stream: no suitable wrapper could be found in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 14 Warning: implode() [function.implode]: Invalid arguments passed in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 18 Warning: file() [function.file]: URL file-access is disabled in the server configuration in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 28 Warning: file(http://www.xe.net/ucc/convert.cgi?Amount=1&From=CAD&To=CAD) [function.file]: failed to open stream: no suitable wrapper could be found in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 28 Warning: implode() [function.implode]: Invalid arguments passed in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 32 Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php:14) in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/general.php on line 22 The thing is my "customers" will be local (my city only), and don't require conversions as they won't be using anything but CAD dollars. Is there an option to stop the server from checking oanda or xe when updating currency? Thanks in advance!
seb1188 Posted April 29, 2008 Author Posted April 29, 2008 I'm getting almost the same error message for CAD currency.... Warning: The primary exchange rate server (oanda) failed for CAD Dollar (CAD) - trying the secondary exchange rate server. Error: The exchange rate for CAD Dollar (CAD) was not updated via xe. Is it a valid currency code? and i know for a fact we don't have a firewall on outbound traffic. Plus i get this message when i click on update currency: Warning: file() [function.file]: URL file-access is disabled in the server configuration in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 14 Warning: file(http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=CAD&format=CSV&dest=Get+Table&sel_list=CAD) [function.file]: failed to open stream: no suitable wrapper could be found in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 14 Warning: implode() [function.implode]: Invalid arguments passed in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 18 Warning: file() [function.file]: URL file-access is disabled in the server configuration in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 28 Warning: file(http://www.xe.net/ucc/convert.cgi?Amount=1&From=CAD&To=CAD) [function.file]: failed to open stream: no suitable wrapper could be found in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 28 Warning: implode() [function.implode]: Invalid arguments passed in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php on line 32 Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/localization.php:14) in /var/www/localhost/htdocs/os1/catalog/admin/includes/functions/general.php on line 22 The thing is my "customers" will be local (my city only), and don't require conversions as they won't be using anything but CAD dollars. Is there an option to stop the server from checking oanda or xe when updating currency? Thanks in advance! I got the impression with mine that the version of osCommerce I was using had outdated references to xe and oanda. I gave up in the end and installed a contrubution that used a different source, as I needed the contribution anyway. The psCommerce servers for currency update are defined in one of the files, if you want to find it and update it yourself (assuming it is a problem with the server address, which seems likely) try searching the code for XE and OANDA. Dreamweaver does a good job of searching... and there's a 30 day trial. www.xe.com and www.oanda.com should provide details of the current address of their feeds to correct the old ones. As for the URL-file access errors, I never had this issue but know of people who did, so there will be plenty of threads out there describing it and its fixes. Also, the URL in the error seems to be correct, so maybe you have a buggered up loacalization.php file? But if all your customers are local, why do you need currencies to be updated at all? osCommerce is GREAT. When it works...
hardsignal Posted April 29, 2008 Posted April 29, 2008 But if all your customers are local, why do you need currencies to be updated at all? i dont, if there is a way to turn it off that would be great. The main problem for me was after i deleted the euro and USD currencies and added the CAD, all my prices showed zero. I thought it was because the currency wasn't updating properly. However, i cleared my cache and everything showed up again, which is weird because i thought a dynamically generated site wouldn't have anything to do with cache. Of course i didnt discover this until after i posted. .D'oh.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.