News:

Looking for documentation? Take a look on our wiki

Main Menu

[UNDER REVIEW] Error with Currency (non USD)

Started by Ronal, February 01, 2008, 00:19:55 AM

Previous topic - Next topic

Ronal

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.


Ronal

Yes, don't any change.

I use Apache/1.3.33 (Win32) PHP/4.4.4
May be problem in this.


Ronal

#4
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.


Ronal

#6
Yes, on localhost
On remote server I can try only in couple of days.

Please, try you in localhost.

Ronal

I try on the remote server. All OK.
Errors appear only on localhost.

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Ronal

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.