VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: Ronal on February 01, 2008, 00:19:55 AM

Title: [UNDER REVIEW] Error with Currency (non USD)
Post by: Ronal on February 01, 2008, 00:19:55 AM
Install Joomla 1.5 final.
Install the latest build of VM.
Go VM Admin -> Store -> Edit Store set Currency=Russian Ruble.
Go http://mysite/index.php?option=com_virtuemart&Itemid=53
and get:
QuoteWarning: fopen(http://www.ecb.int:80/stats/eurofxref/eurofxref-daily.xml) [function.fopen]: failed to open stream: Bad file descriptor in z:\home\mera.by\www\administrator\components\com_virtuemart\classes\connectionTools.class.php on line 168

Notice: Undefined variable: errstr in z:\home\mera.by\www\administrator\components\com_virtuemart\classes\connectionTools.class.php on line 173
If Set Currency=USD - all OK.
Title: Re: Error with Currency (non USD)
Post by: aravot on February 01, 2008, 00:27:05 AM
That is the only thing you changed? I changed it but don't get any error.
Title: Re: Error with Currency (non USD)
Post by: Ronal on February 01, 2008, 00:37:34 AM
Yes, don't any change.

I use Apache/1.3.33 (Win32) PHP/4.4.4
May be problem in this.
Title: Re: Error with Currency (non USD)
Post by: aravot on February 01, 2008, 00:41:58 AM
Could someone with php4 check this, thank you.
Title: Re: Error with Currency (non USD)
Post by: Ronal on February 01, 2008, 00:44:40 AM
Try now on
Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.2.4
and get fatal error:
QuoteWarning: fopen(http://www.ecb.int:80/stats/eurofxref/eurofxref-daily.xml) [function.fopen]: failed to open stream: in Z:\home\mera.by\www\administrator\components\com_virtuemart\classes\connectionTools.class.php on line 168

Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\mera.by\www\administrator\components\com_virtuemart\classes\connectionTools.class.php on line 168

Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\mera.by\www\administrator\components\com_virtuemart\PEAR.php on line 686

Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\mera.by\www\libraries\joomla\session\storage\database.php on line 83

Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\mera.by\www\libraries\joomla\session\storage\database.php on line 52
But then VM Admin -> Store -> Edit Store set Set Currency=USD , click Refresh and have not any errors.

ps: I installed VM with Simple Data. And I think so in an example data all price lists in USD and when I change the currency, VM tries to lead conversion, connecting to internet, but at it nothing turns out except for a mistake.
Title: Re: Error with Currency (non USD)
Post by: aravot on February 01, 2008, 00:49:08 AM
Are you on localhost? if so can you try it on remote server.
Title: Re: Error with Currency (non USD)
Post by: Ronal on February 01, 2008, 00:56:34 AM
Yes, on localhost
On remote server I can try only in couple of days.

Please, try you in localhost.
Title: Re: [UNDER REVIEW] Error with Currency (non USD)
Post by: Ronal on February 03, 2008, 16:57:21 PM
I try on the remote server. All OK.
Errors appear only on localhost.
Title: Re: [UNDER REVIEW] Error with Currency (non USD)
Post by: jenkinhill on February 03, 2008, 18:18:54 PM
If you change currency when there are already products in another currency then VM checks the current exchange rate at www.ecb.int  - that can't work on localhost.
Title: Re: [UNDER REVIEW] Error with Currency (non USD)
Post by: Ronal on February 04, 2008, 08:10:05 AM
Can I off this option (VM checks the current exchange rate at www.ecb.int) from admin panel because many currencies there are not present at www.ecb.int ?

Also in the list of curreces in VM there is no BYR (Belorussian Rouble). Could you add it.